Page 1 of 1

Filter for SBNation

Posted: Sun Mar 27, 2011 10:07 pm
by Tarkus
Can someone please help me create a filter for the background ad here, if possible? I managed to block the image in Firefox, using this filter:

Code: Select all

||sbnation.com/campaigns_images/*
However, that doesn't work in Chrome. Even if Firefox, that only catches the image, not the popup, but Firefox (or at least the Adblock Plus Pop-up extension) does. In Chrome, I can't figure out how to get rid of either one.

Thanks.

Re: Filter for SBNation

Posted: Sun Mar 27, 2011 11:01 pm
by ttjoseph
Your rule didn't work because of a bug in Adblock Plus for Chrome - body background images were not being removed in the most complete manner possible. I committed a fix - could you try the development build in about half an hour?

https://hg.adblockplus.org/adblockplusc ... 5904deef0d

Re: Filter for SBNation

Posted: Mon Mar 28, 2011 12:17 am
by Tarkus
Thanks, the new build works!

Is there any way to also get rid of the background link? I would think http://ad.sbnation.com/* would do the trick, but it doesn't. I probably need to have an element rule, but I can't figure it out.

Thanks again.

Re: Filter for SBNation

Posted: Mon Mar 28, 2011 12:46 am
by fanboy
Looks like some funky javascript is doing it.. Added the background image anyways.

http://code.google.com/p/fanboy-adblock ... 91c98ae578

Re: Filter for SBNation

Posted: Mon Mar 28, 2011 1:33 am
by Ares2
Added to EasyList as well: https://hg.adblockplus.org/easylist/rev/d7ce71be2cdf
Tarkus wrote:Is there any way to also get rid of the background link?
Not with Adblock Plus I'm afraid, the javascript that adds the link is embedded in the source code of the page.

Re: Filter for SBNation

Posted: Mon Mar 28, 2011 2:01 am
by Tarkus
Thanks, I just discovered Better Pop Up Blocker, and that does the trick. It can be annoying when you click on the page to give it focus and accidentally click on a hidden link.

Regarding the image filter, is it redundant to put an asterisk (*) at the end of the filter? I noticed that it's not included on the EasyList change log.

Re: Filter for SBNation

Posted: Mon Mar 28, 2011 5:48 pm
by Ares2
Tarkus wrote:Regarding the image filter, is it redundant to put an asterisk (*) at the end of the filter? I noticed that it's not included on the EasyList change log.
Yes it is, everything that does not have a | either in the beginning or at the end will be treated as if there was a wildcard.

There is one case where you have to use a * though, it's when your filter begins and ends with a forward slash, e.g. /superads/ will not work (as it should), while /superads/* will.

Re: Filter for SBNation

Posted: Mon Mar 28, 2011 9:47 pm
by Tarkus
Thanks for the explanation, Ares2.

Re: Filter for SBNation

Posted: Tue Mar 29, 2011 12:03 am
by lewisje
It would be nice if the OptimalCycling people were able to make Better Popup Blocker integrate with ABP or AdBlock, but maybe the Chrome extension system simply doesn't allow that (nor the Safari or Opera systems BTW).