#div(name) new function
#div(name) new function
i'd like a new funciont
that block DIV not only by name, but also for matching content
example:
<div id="g"> Sponsor Text </div>
<div id="g"> Normal Text </div>
so if you block all G div you block also Normal Text.
so can you add a new function like #div(g):text=*sponsor*
thanks
that block DIV not only by name, but also for matching content
example:
<div id="g"> Sponsor Text </div>
<div id="g"> Normal Text </div>
so if you block all G div you block also Normal Text.
so can you add a new function like #div(g):text=*sponsor*
thanks
i think you do not understand, sorry for my bad english:
with the current adblockplus this command
#div(g)
hide all DIV element with ID="g"
it's ok?
if my html page contain 2 or more DIV element with ID="g" but only someones are ADS
like first post example.
so it would be great an other commands that filters only some DIV ID="g" by matching internal HTML text
like this
#div(g):BUT_ONLY_IF_INTERNAL_HTML_CONTAINS(*sponsor*)
understand now?
with the current adblockplus this command
#div(g)
hide all DIV element with ID="g"
it's ok?
if my html page contain 2 or more DIV element with ID="g" but only someones are ADS
like first post example.
so it would be great an other commands that filters only some DIV ID="g" by matching internal HTML text
like this
#div(g):BUT_ONLY_IF_INTERNAL_HTML_CONTAINS(*sponsor*)
understand now?
You CANNOT use plain html text at all to define anything .... you MUST define elements by themselves.
You can xpath to it from an element BEFORE that one using regular css rules. Eg:
This will block div:id=g that comes after div:id=IdBefore .
or
This will block div:id=g that is a child of div:id=IdBefore .
You can xpath to it from an element BEFORE that one using regular css rules. Eg:
Code: Select all
##div[id="IdBefore"] + div[id="g"]
or
Code: Select all
##div[id="IdBefore"] > div[id="g"]
this does not work if the page have many consecutive Div:id=g some with sponsor and some not.rick752 wrote:You CANNOT use plain html text at all to define anything .... you MUST define elements by themselves.
You can xpath to it from an element BEFORE that one using regular css rules. Eg:This will block div:id=g that comes after div:id=IdBefore .Code: Select all
##div[id="IdBefore"] + div[id="g"]
or
This will block div:id=g that is a child of div:id=IdBefore .Code: Select all
##div[id="IdBefore"] > div[id="g"]
#div(g):BUT_ONLY_IF_INTERNAL_HTML_CONTAINS(*sponsor*)
1) find element div(g)
2) check innerHTML of element, if contains *sponsor* than hide else go on.
where is the impossibility to implement?
What about using XPath to either just rip out the designated DOM nodes or to at least add a special attribute to them which makes the nodes hidable through CSS? Then all you'd have to do would be evaluating the XPath expression on DOMContentLoaded and iterate through the results...
Bonus points for allowing the user to manually enter XPath expression as well.
Bonus points for allowing the user to manually enter XPath expression as well.

hi
sory, please help me.
how i can make #div(tobar) on one site
http://example.com#div(tobar) it not worked
sory, please help me.
how i can make #div(tobar) on one site
http://example.com#div(tobar) it not worked

This will work:
example.com#div(tobar)
You can install the Element Hiding Helper extension - it makes building element hiding rules much easier.
example.com#div(tobar)
You can install the Element Hiding Helper extension - it makes building element hiding rules much easier.
thanks, i'am make http://example.com#div(tobar)
and it not worked
and example.com#div(tobar) is worked
and it not worked
and example.com#div(tobar) is worked
