2014-06-23 16:42:43 -06:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# This script assumes a linux environment
|
|
|
|
|
|
|
|
TEMPFILE=/tmp/httpsb-asset
|
|
|
|
|
2014-06-23 17:36:45 -06:00
|
|
|
echo "*** uBlock: updating remote assets..."
|
2014-06-23 16:42:43 -06:00
|
|
|
|
|
|
|
THIRDPARTY_REMOTEURLS=(
|
|
|
|
'http://mirror1.malwaredomains.com/files/immortal_domains.txt'
|
|
|
|
'http://mirror1.malwaredomains.com/files/justdomains'
|
|
|
|
'http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=1&startdate%5Bday%5D=&startdate%5Bmonth%5D=&startdate%5Byear%5D=&mimetype=plaintext'
|
|
|
|
'http://www.malwaredomainlist.com/hostslist/hosts.txt'
|
|
|
|
'http://hosts-file.net/.%5Cad_servers.txt'
|
|
|
|
'http://someonewhocares.org/hosts/hosts'
|
|
|
|
'http://winhelp2002.mvps.org/hosts.txt'
|
|
|
|
'http://spam404bl.com/spam404scamlist.txt'
|
2014-07-12 18:31:30 -06:00
|
|
|
'https://publicsuffix.org/list/effective_tld_names.dat'
|
2014-06-23 16:42:43 -06:00
|
|
|
'https://easylist-downloads.adblockplus.org/easylist.txt'
|
|
|
|
'https://easylist-downloads.adblockplus.org/easylist_noelemhide.txt'
|
|
|
|
'https://easylist-downloads.adblockplus.org/easyprivacy.txt'
|
|
|
|
'https://easylist-downloads.adblockplus.org/fanboy-annoyance.txt'
|
2014-07-15 18:32:33 -06:00
|
|
|
'https://easylist-downloads.adblockplus.org/fanboy-social.txt'
|
2014-07-16 09:03:14 -06:00
|
|
|
'https://www.fanboy.co.nz/r/fanboy-ultimate.txt'
|
2014-07-12 18:31:30 -06:00
|
|
|
'https://www.fanboy.co.nz/enhancedstats.txt'
|
|
|
|
'https://www.fanboy.co.nz/fanboy-antifacebook.txt'
|
2014-08-20 08:25:13 -06:00
|
|
|
'https://www.fanboy.co.nz/fanboy-swedish.txt'
|
|
|
|
'https://www.fanboy.co.nz/fanboy-vietnam.txt'
|
2014-07-09 07:41:18 -06:00
|
|
|
'https://raw.githubusercontent.com/reek/anti-adblock-killer/master/anti-adblock-killer-filters.txt'
|
2014-06-23 16:42:43 -06:00
|
|
|
'https://easylist-downloads.adblockplus.org/easylistgermany.txt'
|
2014-07-05 09:00:09 -06:00
|
|
|
'http://www.hufilter.hu/hufilter.txt'
|
2014-06-23 16:42:43 -06:00
|
|
|
'https://easylist-downloads.adblockplus.org/easylistitaly.txt'
|
2014-07-05 09:00:09 -06:00
|
|
|
'https://dl.dropboxusercontent.com/u/1289327/abpxfiles/filtri.txt'
|
2014-06-23 16:42:43 -06:00
|
|
|
'https://easylist-downloads.adblockplus.org/easylistdutch.txt'
|
|
|
|
'https://easylist-downloads.adblockplus.org/liste_fr.txt'
|
|
|
|
'https://easylist-downloads.adblockplus.org/advblock.txt'
|
2014-07-12 18:31:30 -06:00
|
|
|
'https://easylist-downloads.adblockplus.org/bitblock.txt'
|
2014-06-23 16:42:43 -06:00
|
|
|
'https://easylist-downloads.adblockplus.org/easylistchina.txt'
|
2014-06-30 10:11:03 -06:00
|
|
|
'https://cjxlist1.googlecode.com/svn/cjxlist.txt'
|
2014-06-23 16:42:43 -06:00
|
|
|
'http://adblock-chinalist.googlecode.com/svn/trunk/adblock.txt'
|
|
|
|
'https://adblock-plus-japanese-filter.googlecode.com/hg/abp_jp.txt'
|
2014-08-23 08:22:21 -06:00
|
|
|
'http://margevicius.lt/easylistlithuania.txt'
|
2014-06-23 16:42:43 -06:00
|
|
|
'http://stanev.org/abp/adblock_bg.txt'
|
2014-07-12 18:31:30 -06:00
|
|
|
'https://indonesianadblockrules.googlecode.com/hg/subscriptions/abpindo.txt'
|
|
|
|
'https://liste-ar-adblock.googlecode.com/hg/Liste_AR.txt'
|
2014-07-04 10:32:18 -06:00
|
|
|
'https://raw.githubusercontent.com/tomasko126/easylistczechandslovak/master/filters.txt'
|
2014-06-23 16:42:43 -06:00
|
|
|
'https://raw.githubusercontent.com/adblockpolska/Adblock_PL_List/master/adblock_polska.txt'
|
2014-06-23 17:36:45 -06:00
|
|
|
'https://raw.githubusercontent.com/AdBlockPlusIsrael/EasyListHebrew/master/EasyListHebrew.txt'
|
2014-07-20 15:57:22 -06:00
|
|
|
'https://raw.githubusercontent.com/wiltteri/wiltteri.txt/master/wiltteri.txt'
|
2014-07-05 09:00:09 -06:00
|
|
|
'http://home.fredfiber.no/langsholt/adblock.txt'
|
|
|
|
'http://adblock.schack.dk/block.txt'
|
2014-06-23 16:42:43 -06:00
|
|
|
'http://adblock.gardar.net/is.abp.txt'
|
2014-07-12 18:31:30 -06:00
|
|
|
'https://www.void.gr/kargig/void-gr-filters.txt'
|
2014-06-23 16:42:43 -06:00
|
|
|
'http://abp.mozilla-hispano.org/nauscopio/filtros.txt'
|
2014-07-19 07:28:05 -06:00
|
|
|
'https://gitorious.org/adblock-latvian/adblock-latvian/raw/master%3Alists/latvian-list.txt'
|
2014-06-23 16:42:43 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
THIRDPARTY_LOCALURLS=(
|
|
|
|
'thirdparties/mirror1.malwaredomains.com/files/immortal_domains.txt'
|
|
|
|
'thirdparties/mirror1.malwaredomains.com/files/justdomains'
|
|
|
|
'thirdparties/pgl.yoyo.org/as/serverlist'
|
|
|
|
'thirdparties/www.malwaredomainlist.com/hostslist/hosts.txt'
|
|
|
|
'thirdparties/hosts-file.net/ad-servers'
|
|
|
|
'thirdparties/someonewhocares.org/hosts/hosts'
|
|
|
|
'thirdparties/winhelp2002.mvps.org/hosts.txt'
|
|
|
|
'thirdparties/spam404bl.com/spam404scamlist.txt'
|
|
|
|
'thirdparties/publicsuffix.org/list/effective_tld_names.dat'
|
|
|
|
'thirdparties/easylist-downloads.adblockplus.org/easylist.txt'
|
|
|
|
'thirdparties/easylist-downloads.adblockplus.org/easylist_noelemhide.txt'
|
|
|
|
'thirdparties/easylist-downloads.adblockplus.org/easyprivacy.txt'
|
|
|
|
'thirdparties/easylist-downloads.adblockplus.org/fanboy-annoyance.txt'
|
2014-07-15 18:32:33 -06:00
|
|
|
'thirdparties/easylist-downloads.adblockplus.org/fanboy-social.txt'
|
2014-07-26 08:54:16 -06:00
|
|
|
'thirdparties/www.fanboy.co.nz/fanboy-ultimate.txt'
|
2014-06-23 16:42:43 -06:00
|
|
|
'thirdparties/www.fanboy.co.nz/enhancedstats.txt'
|
2014-07-05 07:37:54 -06:00
|
|
|
'thirdparties/www.fanboy.co.nz/fanboy-antifacebook.txt'
|
2014-08-20 08:25:13 -06:00
|
|
|
'thirdparties/www.fanboy.co.nz/fanboy-swedish.txt'
|
|
|
|
'thirdparties/www.fanboy.co.nz/fanboy-vietnam.txt'
|
2014-07-09 07:41:18 -06:00
|
|
|
'thirdparties/raw.githubusercontent.com/reek/anti-adblock-killer/master/anti-adblock-killer-filters.txt'
|
2014-06-23 16:42:43 -06:00
|
|
|
'thirdparties/easylist-downloads.adblockplus.org/easylistgermany.txt'
|
2014-07-05 09:00:09 -06:00
|
|
|
'thirdparties/www.hufilter.hu/hufilter.txt'
|
2014-06-23 16:42:43 -06:00
|
|
|
'thirdparties/easylist-downloads.adblockplus.org/easylistitaly.txt'
|
2014-07-05 09:00:09 -06:00
|
|
|
'thirdparties/dl.dropboxusercontent.com/u/1289327/abpxfiles/filtri.txt'
|
2014-06-23 16:42:43 -06:00
|
|
|
'thirdparties/easylist-downloads.adblockplus.org/easylistdutch.txt'
|
|
|
|
'thirdparties/easylist-downloads.adblockplus.org/liste_fr.txt'
|
|
|
|
'thirdparties/easylist-downloads.adblockplus.org/advblock.txt'
|
2014-07-12 18:31:30 -06:00
|
|
|
'thirdparties/easylist-downloads.adblockplus.org/bitblock.txt'
|
2014-06-23 16:42:43 -06:00
|
|
|
'thirdparties/easylist-downloads.adblockplus.org/easylistchina.txt'
|
2014-06-30 10:11:03 -06:00
|
|
|
'thirdparties/cjxlist1.googlecode.com/svn/cjxlist.txt'
|
2014-06-23 16:42:43 -06:00
|
|
|
'thirdparties/adblock-chinalist.googlecode.com/svn/trunk/adblock.txt'
|
|
|
|
'thirdparties/adblock-plus-japanese-filter.googlecode.com/hg/abp_jp.txt'
|
2014-08-24 18:52:34 -06:00
|
|
|
'thirdparties/margevicius.lt/easylistlithuania.txt'
|
2014-06-23 16:42:43 -06:00
|
|
|
'thirdparties/stanev.org/abp/adblock_bg.txt'
|
|
|
|
'thirdparties/indonesianadblockrules.googlecode.com/hg/subscriptions/abpindo.txt'
|
|
|
|
'thirdparties/liste-ar-adblock.googlecode.com/hg/Liste_AR.txt'
|
2014-07-04 10:32:18 -06:00
|
|
|
'thirdparties/raw.githubusercontent.com/tomasko126/easylistczechandslovak/master/filters.txt'
|
2014-06-23 16:42:43 -06:00
|
|
|
'thirdparties/raw.githubusercontent.com/adblockpolska/Adblock_PL_List/master/adblock_polska.txt'
|
2014-06-23 17:36:45 -06:00
|
|
|
'thirdparties/raw.githubusercontent.com/AdBlockPlusIsrael/EasyListHebrew/master/EasyListHebrew.txt'
|
2014-07-20 15:57:22 -06:00
|
|
|
'thirdparties/raw.githubusercontent.com/wiltteri/wiltteri.txt/master/wiltteri.txt'
|
2014-07-05 09:00:09 -06:00
|
|
|
'thirdparties/home.fredfiber.no/langsholt/adblock.txt'
|
|
|
|
'thirdparties/adblock.schack.dk/block.txt'
|
2014-06-23 16:42:43 -06:00
|
|
|
'thirdparties/adblock.gardar.net/is.abp.txt'
|
|
|
|
'thirdparties/www.void.gr/kargig/void-gr-filters.txt'
|
|
|
|
'thirdparties/abp.mozilla-hispano.org/nauscopio/filtros.txt'
|
2014-07-19 07:28:05 -06:00
|
|
|
'thirdparties/gitorious.org/adblock-latvian/adblock-latvian/raw/master_lists/latvian-list.txt'
|
2014-06-23 16:42:43 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
ENTRY_INDEX=0
|
|
|
|
for THIRDPARTY_REMOTEURL in ${THIRDPARTY_REMOTEURLS[@]}; do
|
|
|
|
THIRDPARTY_LOCALURL=${THIRDPARTY_LOCALURLS[ENTRY_INDEX]}
|
|
|
|
echo "*** Downloading" $THIRDPARTY_REMOTEURL
|
|
|
|
if wget -q -T 30 -O $TEMPFILE -- $THIRDPARTY_REMOTEURL; then
|
|
|
|
if [ -s $TEMPFILE ]; then
|
|
|
|
if ! cmp -s $TEMPFILE $THIRDPARTY_LOCALURL; then
|
|
|
|
echo " New version found: $THIRDPARTY_LOCALURL"
|
|
|
|
if [ "$1" != "dry" ]; then
|
|
|
|
mv $TEMPFILE $THIRDPARTY_LOCALURL
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
let ENTRY_INDEX+=1
|
|
|
|
done
|
|
|
|
|