Hiding elements whit exeptions

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey
Post Reply
hecho
Posts: 4
Joined: Sat Oct 28, 2017 10:45 am

Hiding elements whit exeptions

Post by hecho »

Hi,

in a vBullettin forum I want hide the threads I read, but not the "unreads". Unread threads have the "iwt_unreadthread" class!

I want hide
I don't want hide

<ol id="threads" class="threads">
<li id="thread_141353" class="threadbit new iwt_unreadthread">
<li id="thread_139458" class="threadbit">
<li id="thread_132802" class="threadbit">
<li id="thread_136025" class="threadbit hot iwt_unreadthread">
<li id="thread_136359" class="threadbit lock iwt_unreadthread">
<li id="thread_28663" class="threadbit iwt_unreadthread">
<li id="thread_136780" class="threadbit lock ">
<li id="thread_136617" class="threadbit ">
<li id="thread_19237" class="threadbit hot lock iwt_unreadthread">
etc....
</ol>

I have created a general rule:

Code: Select all

http://www.anysite.com##li.threadbit
this works but hide all threads. I don't know how to create the exception for the threads whit the "iwt_unreadthread" tags

Is it possible?

thanks
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Hiding elements whit exeptions

Post by mapx »

Provide a real page / site / forum to test
hecho
Posts: 4
Joined: Sat Oct 28, 2017 10:45 am

Re: Hiding elements whit exeptions

Post by hecho »

at this time the forum is private, sorry
hecho
Posts: 4
Joined: Sat Oct 28, 2017 10:45 am

Re: Hiding elements whit exeptions

Post by hecho »

resolved with greasemonkey, thx
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Hiding elements whit exeptions

Post by mapx »

you could try

Code: Select all

anysite.com##li.threadbit:not(.iwt_unreadthread)
hecho
Posts: 4
Joined: Sat Oct 28, 2017 10:45 am

Re: Hiding elements whit exeptions

Post by hecho »

mapx wrote:you could try

Code: Select all

anysite.com##li.threadbit:not(.iwt_unreadthread)
yes, works! ;-)
Post Reply