Adblock Plus Element Hiding Helper extension:
https://addons.mozilla.org/firefox/4364/
------------------------------------------------------------
Hiding an element is much harder and trickier than blocking an ad. A basic knowledge of html coding is helpful, but not necessary if you use EHH. Lets say we are at a site called
Code: Select all
somesite.com
Let's say you have isolated a <table> that you want to remove:
The entire code line is:
Code: Select all
<table width="100" height="95" class="crappyad">
Unlike the html coding, in ABP the 'tag' ('TABLE' is the tag) must be preceded by a "#" to designate this string as an element-hide string .... <brackets> and "quotes" must be removed ... EACH descriptor must be enclosed with their own (parenthesis) .... and all spaces must be removed.
You should have a string that looks like this:
Code: Select all
#table(width=100)(height=95)(class=crappyad)
But to prevent false positives (especially at first), you should designate the hide just to the site you are trying to block. You can do that by simply adding that domain to the beginning of the string MINUS the "http://" stuff.
So now you have:
Code: Select all
somesite.com#table(width=100)(height=95)(class=crappyad)
Code: Select all
somesite.com#table(class=crappyad)
Code: Select all
somesite.com#table(class=crappyad) - hides a class containing EXACTLY "crappyad"
somesite.com#table(class^=crappyad) - hides a class that BEGINS WITH "crappyad"
somesite.com#table(class$=crappyad) - hides a class that ENDS WITH "crappyad"
somesite.com#table(class*=crappyad) - hides a class containing "crappyad" ANYWHERE in the class
All code lines are case-sensitive .... whitelisting will NOT override an element hide. ( Also, you must take a good look to ensure that you did not create false-positives as the same elements can be used on other parts of the page or site.
Using the Element Hiding Helper for ABP extension can select, create the string, and it will enter directly into your ABP filters. Just use the "W" and ""N" keys to 'zero-in' on the element your want to hide. It takes a little practice but works quite well. Get it here:
https://addons.mozilla.org/en-US/firefox/addon/4364
Some more element hiding documentation info here:
http://adblockplus.org/en/filters#elemhide_basic