Page 1 of 1

Element Hidding plus Regular Expressions?

Posted: Sun Jun 19, 2011 4:53 pm
by elguaxo
I want to filter something on a site and I think I need to combine Element Hidding with some Regular Expression. Using the Element Hidding Helper I get for example: somesite.com##DIV[id^="sq"][style="display: block;"]

The problem is that this site changes the ID randomly on each reload but I can't leave the ID out of the rule, because there is another element using just style="display: block;" without an ID that I shouldn't block.

So I need something like somesite.com##DIV[id^="*"][style="display: block;"] The problem is that [id^="*"] doesn't work as I expected :P . So my question is how to specify that I want the rule to work only on elements that have an ID?

Thanks in advance! :)


edit: and I can't use nth-child(x) because it also changes its position randomly

Re: Element Hidding plus Regular Expressions?

Posted: Sun Jun 19, 2011 5:30 pm
by Michael
Does example.com##div[id][style="display: block;"] work?

Re: Element Hidding plus Regular Expressions?

Posted: Sun Jun 19, 2011 5:48 pm
by elguaxo
Nope. That one blocks the element with ID, but it also blocks the element without an ID.

Re: Element Hidding plus Regular Expressions?

Posted: Sun Jun 19, 2011 9:09 pm
by Michael
If you would provide a link to the page on which the unwanted elements are located it might be easier to suggest rules; my filter should work if the required element does not possess an id.

Re: Element Hidding plus Regular Expressions?

Posted: Sun Jun 19, 2011 11:31 pm
by elguaxo
You are right, it was working, but there was another unwanted element that also got deleted by this rule. The site is imagebam and they changed everything just a few minutes ago. :lol:

I could figure out a new set of rules that works for me right now. Thanks for your quick answer. :)