How to block this webpage element?

Post any interesting custom filters here.

Moderators: Murray, Jeff

How to block this webpage element?

Postby Audioboxer » Mon May 23, 2011 9:47 pm

Hello,

As you can see admuncher removes the adverts on N4G.com but leaves the empty elements.

Image

How do I go about removing these? When using Adblock Plus/Adblock Element Hider addon it's quite easy, or if I use CustomizeYourWeb firefox extension. However figuring out how to do it in Admuncher is giving me a headache.

Within CustomizeYourWeb it's giving me the coding,

//div[@id="ad-top-wrap"]


Is that something that can be put into the Admuncher myfilters? If so how do you go about doing such a thing? I've entered it as the keyword and tried every kind of filtering, but to no avail. The custom filter Adblock Plus uses seems to simple

Sorry for my ignorance, but I'm used to hiding elements by just clicking them and hitting remove with one of the above Firefox extensions.
Audioboxer
New User
 
Posts: 8
Joined: Mon Oct 19, 2009 3:18 pm

Re: How to block this webpage element?

Postby Audioboxer » Mon May 23, 2011 9:58 pm

I found that adding "ad-top-wrap" to my filters and putting the category "remove divs/spans" works, however it affects all websites as it stands (even stops these forums working properly :cry: ).

How can I tell admuncher to only apply that rule to n4g.com?

Thanks
Audioboxer
New User
 
Posts: 8
Joined: Mon Oct 19, 2009 3:18 pm

Re: How to block this webpage element?

Postby Jeff » Mon May 23, 2011 10:49 pm

Add javascript to all pages:
if(__amscript_cd("n4g.com")){__amscript_wc('#ad-top-wrap {display:none;}');};
That's not an ad blocker... THIS is an ad blocker.
---
No bovines were harmed in the making of this program.
---
My first popup stopper blocked too much.
My second popup stopper didn't block enough.
Ad Muncher was juuuuust right.
User avatar
Jeff
Ad Muncher Developer
 
Posts: 6119
Joined: Thu Mar 10, 2005 5:16 am
Location: California, United States

Re: How to block this webpage element?

Postby Audioboxer » Mon May 23, 2011 11:20 pm

Jeff wrote:Add javascript to all pages:
if(__amscript_cd("n4g.com")){__amscript_wc('#ad-top-wrap {display:none;}');};


Thank you! :)

A firefox element hiding extension would be awesome for Admuncher 5.0. Couldn't the current Admuncher firefox extension be further developed?
Audioboxer
New User
 
Posts: 8
Joined: Mon Oct 19, 2009 3:18 pm


Return to Custom Filters

Who is online

Users browsing this forum: No registered users and 9 guests

cron