Element Hidding plus Regular Expressions?

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
elguaxo
Posts: 3
Joined: Sun Jun 19, 2011 4:36 pm

Element Hidding plus Regular Expressions?

Post 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
Michael
Posts: 1361
Joined: Sat Dec 19, 2009 12:29 pm

Re: Element Hidding plus Regular Expressions?

Post by Michael »

Does example.com##div[id][style="display: block;"] work?
elguaxo
Posts: 3
Joined: Sun Jun 19, 2011 4:36 pm

Re: Element Hidding plus Regular Expressions?

Post by elguaxo »

Nope. That one blocks the element with ID, but it also blocks the element without an ID.
Michael
Posts: 1361
Joined: Sat Dec 19, 2009 12:29 pm

Re: Element Hidding plus Regular Expressions?

Post 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.
elguaxo
Posts: 3
Joined: Sun Jun 19, 2011 4:36 pm

Re: Element Hidding plus Regular Expressions?

Post 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. :)
Locked