Page 1 of 1

Can't block CSS files in Chrome?

Posted: Wed Jan 12, 2011 8:26 pm
by telemetry
Hi there - since AdThwart switched over to AdBlock+ on the Chrome browser, my user filters to block CSS files don't seem to do anything at all. If I add

Code: Select all

adblockplus.org/forum/styles/prosilver/theme/stylesheet_merged.css
to my user filters, nothing happens - this forum renders as usual. The same thing happens with the full URL, wildcards like '*.css' or even just 'css'. Am I missing something, shouldn't the full URL be enough to block it? It worked perfectly in AdThwart so I'm not sure what's happening now

Re: Can't block CSS files in Chrome?

Posted: Wed Jan 12, 2011 11:12 pm
by telemetry
Sorry I should have specified, I'm on the beta channel of Chrome (9.0.597.47) and I'm currently using version 1.0.25 of ABP

Re: Can't block CSS files in Chrome?

Posted: Thu Jan 13, 2011 3:55 am
by ttjoseph
This is because AdThwart actually removed page elements while ABPC only disables them. The problem with AdThwart's approach was that it broke some pages. To fix this problem in ABPC, I added a little code to actually disable LINK tags when the (presumably stylesheet) URL matches a filter:

https://hg.adblockplus.org/adblockplusc ... 24f2912dfb

Re: Can't block CSS files in Chrome?

Posted: Thu Jan 13, 2011 3:29 pm
by telemetry
Ahh great, that works perfectly - thanks! I know a few people who've had this issue so they'll be happy too :) And thanks for the quick response

Re: Can't block CSS files in Chrome?

Posted: Sun Jan 16, 2011 4:11 pm
by Sleepy
Thanks, had the same issue.