📜 ⬆️ ⬇️

Hide the trolls comments

In the topic about <a href= "a habrahabr .
only GreaseMonkey and a small script on it will help here, if only it were not too lazy and night I would have sketched it. and so everything is asleep, and then that karma to night has become too negative, although it is for the better.


JavaScript'er from me is mediocre, but in the morning I had to warm up a little ...


I added a small reference "(X hidden messages)", clicking on which shows all hidden comments. Pressing it again will hide it.
It looks like this:
')


you can install from here , you need Greasemonkey to work.

. .: the list can be corrected by "pens" in the script code;) the list is edited by clicking the [- / +] button near the author's nickname.

UPD: corrected the script, now we clean the trolls immediately after the page loads, without additional gestures. Well, I replaced ONOTOLEY with troll, and then too much honor;)

UPD2: now Troll comments are not visible at all, and near the button "Kill the troll" a counter of hidden comments has appeared.

UPD3: just in case, hide and "this inscription"

UPD4: hide the inscriptions badly, so we fold them into a thin gray strip ... the thickness of the stripes can be guessed about how hard the troll tried: ")



UPD5 (and hopefully the last one):

added troll / non_troll buttons

clicking on [-] immediately buries all comments of the author and continues to bury in the future.
clicking on [+] removes the troll mark from the author. [+] is available only when the author is “buried”. therefore, in order to “resurrect” the author, you must first expand all the buried comments (poke at "(X hidden messages)"), and then press the author on [+].

I understand that the scheme is not perfect, but it’s better not yet be obtained ...

Source: https://habr.com/ru/post/19081/


All Articles