dakota_man All American 26584 Posts user info edit post |
Was getting pissed off that the easylist whitelists were #1 letting ads through #2 not letting me block wikimedia pics posted by EUPHALO
Gonna have this run daily, and subscribe to my local copy
Seems to work fine, though I don't know much about python, so if you can suggest improvements, please go ahead.
import urllib import re
sock = urllib.urlopen("http://easylist.adblockplus.org/adblock_rick752.txt") whitelist = re.compile('@@')
sitelines = sock.readlines() sock.close() filelines = []
for line in sitelines: if not whitelist.match(line): filelines.append(line)
FILE = open("C:\\adblock.txt", 'w') FILE.writelines(filelines) FILE.close 3/16/2008 5:32:14 PM |
gs7 All American 2354 Posts user info edit post |
Say what?
You know you can add your own filters, you're not limited to subscriptions. 3/16/2008 5:43:22 PM |
dakota_man All American 26584 Posts user info edit post |
yeah no shit
I also want the easylist w/o the whitelist
FOR EXAMPLE
if you have adblock plus and are subscribed to easylist: message_topic.aspx?topic=518643
try to block the giant john mccain pic.
YOU CAN'T
because it's whitelisted on easylist.
[Edited on March 16, 2008 at 5:57 PM. Reason : example:] 3/16/2008 5:46:22 PM |
gs7 All American 2354 Posts user info edit post |
Ah I see now what you mean. Now I remember why I got rid of that EasyList sub and just manually block everything myself.
I like your solution though, good idea. 3/16/2008 6:03:18 PM |
dakota_man All American 26584 Posts user info edit post |
I didn't even realize it was because of the whitelists until today. I thought it was some bug in adblock and the url format of wikimedia pics. I guess that whitelist is how adblock plus gets money. 3/16/2008 6:19:49 PM |