Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Do Not Feed the Trolls!!!

by shmem (Canon)
on Dec 21, 2007 at 21:45 UTC ( #658548=note: print w/ replies, xml ) Need Help??


in reply to Do Not Feed the Trolls!!!

To hide the troll everywhere:

[class$="<userid>"], [class$="<userid>"] *, [class$="<userid>"] :link +, [class$="<userid>"] :visited, a[href$="=<userid>"] { display: non +e; }

This css rule occasionaly hides responses to the troll, too (e.g. in Recently Active Threads).

update: to mark troll posts as such in threads

[class$="<userid>"], [class$="<userid>"] *, [class$="<userid>"] :link +, [class$="<userid>"] :visited { display: none; } a[href$="=<userid>"]:before { content: "a Troll: "; }
I can't get rid of the troll post header with css, because there's no way to select a parent node matching a child.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}


Comment on Re: Do Not Feed the Trolls!!!
Select or Download Code
Re^2: Do Not Feed the Trolls!!!
by FunkyMonk (Canon) on Dec 21, 2007 at 23:20 UTC
    This css rule occasionaly hides responses to the troll, too
    It's a loss I'm prepared to live with. Any topic s?he participates in loses any worth it had :(

    It will just do mechanically what I've been doing manually.

      Any topic s?he participates in loses any worth it had
      No - just the part starting with the troll's answer (i.e taking the troll post as root). The rest is OK and not affected.
Re^2: Do Not Feed the Trolls!!!
by CountZero (Bishop) on Dec 22, 2007 at 20:48 UTC
    And calmness and peace descended once more upon the Monastery and the Monks rejoiced mightily and saw that it was good!

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://658548]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (12)
As of 2014-07-25 14:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (172 votes), past polls