visited link isn't hidden
This code snippet does something weird.
It should block links with "2001 Maniacs" in the title. But if I've already visited a link - the link is visible.
Example (it's a search)
http://thepiratebay.org/search/2001 Maniacs/0/99/200
There are 3 hits. 2 are blocked, but I visted...
2001 Maniacs[2005]Eng.DvDrip.Swesub NeRoZ (download torrent) - TPB
http://thepiratebay.org/tor/4043314/2001_Maniacs[2005]Eng.DvDrip.Swesub__NeRoZ
...and it is visible in the search output.
I'm totally lost.
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain(thepiratebay.org) {
a:link[href*='2001_Maniacs'],
a:link[href*='2001.Maniacs'],
a:link[href*='2001-Maniacs'],
a:link[href*='2001+Maniacs'],
a:link[href*='thisisheretoavoidannoyance']
{ display: none !important; }
}
It should block links with "2001 Maniacs" in the title. But if I've already visited a link - the link is visible.
Example (it's a search)
http://thepiratebay.org/search/2001 Maniacs/0/99/200
There are 3 hits. 2 are blocked, but I visted...
2001 Maniacs[2005]Eng.DvDrip.Swesub NeRoZ (download torrent) - TPB
http://thepiratebay.org/tor/4043314/2001_Maniacs[2005]Eng.DvDrip.Swesub__NeRoZ
...and it is visible in the search output.
I'm totally lost.
Comments
@namespace url(http://www.w3.org/1999/xhtml); @-moz-document domain(thepiratebay.org) { a:link[href*='2001_Maniacs'], a:visited[href*='2001_Maniacs'], a:link[href*='2001.Maniacs'], a:visited[href*='2001.Maniacs'], a:link[href*='2001-Maniacs'], a:visited[href*='2001-Maniacs'], a:link[href*='2001+Maniacs'], a:visited[href*='2001+Maniacs'], a:link[href*='thisisheretoavoidannoyance'], a:visited[href*='thisisheretoavoidannoyance'] { display: none !important; } }
Or to simplify it, use :-moz-any-link To select all links regardless if they're visited or not:
@namespace url(http://www.w3.org/1999/xhtml); @-moz-document domain(thepiratebay.org) { a:-moz-any-link[href*='2001_Maniacs'], a:-moz-any-link[href*='2001.Maniacs'], a:-moz-any-link[href*='2001-Maniacs'], a:-moz-any-link[href*='2001+Maniacs'], a:-moz-any-link[href*='thisisheretoavoidannoyance'] { display: none !important; } }
@namespace url(http://www.w3.org/1999/xhtml); @-moz-document domain(thepiratebay.org) { a[href*='2001_Maniacs'], a[href*='2001.Maniacs'], a[href*='2001-Maniacs'], a[href*='2001+Maniacs'], a[href*='thisisheretoavoidannoyance'] { display: none !important; } }
_____________________________________1_
a[href*= ...
Sheesh. I have to laugh at myself. I learned and forgot that!
_____________________________________2_
How can I block a link via the link label? It would improve my style - so to speak.
I asked before - and was shown a lot of other useful stuff ...
userstyles.org - link text question
http://userstyles.org/forum/comments.php?DiscussionID=860
... but I don't think I ever got an answer about how to block via the link label.
example
<a title="/c57952c70ab0e8eec2492421ed0a9160edaaab35" href="/c57952c70ab0e8eec2492421ed0a9160edaaab35">The Departed KLAXXON</a>
Is it possible?
Code to block the link label would work at every torrent site I use. And as you can see the title and href can't be used to hide/delete the link via the movie's title.