SHARE
TWEET

Untitled

a guest Mar 31st, 2013 161 Never
  1. #!/bin/sh
  2. #
  3. OPERADIR="/BOX/Dropbox/Linux/Opera"
  4. FANBOYINI="http://www.fanboy.co.nz/adblock/opera/complete/urlfilter.ini"
  5. FANBOYCSS="http://www.fanboy.co.nz/adblock/opera/fanboy-adblocklist-elements-v4.css"
  6. ADFILTERDIR="/home/westmin/Build/adfiltering-rules-read-only"
  7. PRIVOXYDIR="/etc/privoxy"
  8.  
  9. wget -c -P ${OPERADIR} ${FANBOYINI}
  10. wget -c -P ${OPERADIR} ${FANBOYCSS}
  11. svn cleanup ${ADFILTERDIR}
  12. svn update ${ADFILTERDIR}
  13.  
  14. blocklist-to-privoxy -o ${PRIVOXYDIR}/urlfilter.action ${OPERADIR}/urlfilter.ini
  15. blocklist-to-privoxy -o ${PRIVOXYDIR}/urlfilter-chn.action ${ADFILTERDIR}/trunk/lastest/urlfilter.ini
  16. cat ${OPERADIR}/fanboy-adblocklist-elements-v4.css ${ADFILTERDIR}/trunk/lastest/Custom.css > ${OPERADIR}/custom.css
RAW Paste Data
Top