Filter for SBNation

Everything about using Adblock Plus on Google Chrome

Filter for SBNation

Postby Tarkus » Sun Mar 27, 2011 10:07 pm

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

Re: Filter for SBNation

Postby ttjoseph » Sun Mar 27, 2011 11:01 pm

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/adblockpluschrome/rev/fa5904deef0d
ttjoseph
 
Posts: 79
Joined: Sat Dec 04, 2010 5:12 am

Re: Filter for SBNation

Postby Tarkus » Mon Mar 28, 2011 12:17 am

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

Re: Filter for SBNation

Postby fanboy » Mon Mar 28, 2011 12:46 am

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

http://code.google.com/p/fanboy-adblock ... 91c98ae578
User avatar
fanboy
 
Posts: 3446
Joined: Sun Jun 17, 2007 4:45 am

Re: Filter for SBNation

Postby Ares2 » Mon Mar 28, 2011 1:33 am

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

Re: Filter for SBNation

Postby Tarkus » Mon Mar 28, 2011 2:01 am

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

Re: Filter for SBNation

Postby Ares2 » Mon Mar 28, 2011 5:48 pm

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

Re: Filter for SBNation

Postby Tarkus » Mon Mar 28, 2011 9:47 pm

Thanks for the explanation, Ares2.
User avatar
Tarkus
 
Posts: 5
Joined: Sun Mar 27, 2011 9:27 pm

Re: Filter for SBNation

Postby lewisje » Tue Mar 29, 2011 12:03 am

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.
lewisje
 
Posts: 2744
Joined: Mon Jun 14, 2010 12:07 pm


Return to Adblock Plus for Chrome support

Who is online

Users browsing this forum: No registered users and 7 guests