X-O__O-X's blog

By X-O__O-X, 3 months ago, In English

Hi Codeforces,

A lot of posts have an interesting comment section. I usually need to revisit the post and its comment section several times. The issue is I just hate reading though all not-useful not-funny comments over and over again. If there is a way to hide comments you don't like, I think a lot of people will like it.

I don't know the effort needed for this change but idea is simple, Just an extra option for each comment to hide it when needed.

Thank you

  • Vote: I like it
  • +23
  • Vote: I do not like it

3 months ago, # |
Rev. 2   Vote: I like it +40 Vote: I do not like it

I thought this was a neat feature, so I wrote a userscript for it.

You'll need the Tampermonkey extension which you can install for Firefox or Chrome.

Once you're done with that, you can get my script here.

What this script does: Adds a hide/hide tree button that hides the comment or comment tree. Stores this preference and also hides the comment on your next visit to the page.

UPD: Added version 2 that now stores hidden comments. If you do not require this feature, find version 1 here.

  • »
    3 months ago, # ^ |
    Rev. 3   Vote: I like it 0 Vote: I do not like it

    That's amazing. Thank you! It's very good if the changes remain after refresh. Please complete it

    Could you suggest resources to learn how make such userscripts?

    • »
      3 months ago, # ^ |
        Vote: I like it +9 Vote: I do not like it

      I've updated the script to store the hidden comments.

      To create userscripts, all you need to know is the basics of HTML and JavaScript. Some CSS will also be handy.