Filter for SBNation

Everything about using Adblock Plus on Google Chrome
Post Reply
User avatar
Tarkus
Posts: 5
Joined: Sun Mar 27, 2011 9:27 pm

Filter for SBNation

Post 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.
ttjoseph
Posts: 79
Joined: Sat Dec 04, 2010 4:12 am

Re: Filter for SBNation

Post 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
User avatar
Tarkus
Posts: 5
Joined: Sun Mar 27, 2011 9:27 pm

Re: Filter for SBNation

Post 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.
User avatar
fanboy
Posts: 3446
Joined: Sun Jun 17, 2007 4:45 am
Contact:

Re: Filter for SBNation

Post by fanboy »

Looks like some funky javascript is doing it.. Added the background image anyways.

http://code.google.com/p/fanboy-adblock ... 91c98ae578
Ares2
Posts: 1275
Joined: Fri Feb 15, 2008 12:47 pm

Re: Filter for SBNation

Post 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.
User avatar
Tarkus
Posts: 5
Joined: Sun Mar 27, 2011 9:27 pm

Re: Filter for SBNation

Post 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.
Ares2
Posts: 1275
Joined: Fri Feb 15, 2008 12:47 pm

Re: Filter for SBNation

Post 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.
User avatar
Tarkus
Posts: 5
Joined: Sun Mar 27, 2011 9:27 pm

Re: Filter for SBNation

Post by Tarkus »

Thanks for the explanation, Ares2.
lewisje
Posts: 2743
Joined: Mon Jun 14, 2010 12:07 pm

Re: Filter for SBNation

Post 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).
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.
Post Reply