Hide Comments Everywhere

Hide Comments Everywhere

The comments sections on most major news outlets and social media sites are full of vitriol. I just wanted the content, so I wrote an extension that hides various commenting systems across the web, including (but not limited to) Disqus, YouTube, Instagram, replies on Reddit and Twitter, etc.

Available for Firefox and Chrome, and works on Brave (natively) and Opera (requires an additional extension) too.

How's it work?

The extension checks whether the loaded URL should block comments, then unblocks those URLs that match any regex patterns you've specified on the "options" page.

You can also specify a list of URLs as regex patterns, one per line, that should display comments all the time (the extension is effectively disabled for those URLs). Your list of excluded sites uses synchronized storage, so it should be available on any machine you've installed the extension on.

Quickly add the URL of the current page by opening the extension popup (by clicking the icon in the toolbar), and then selecting a URL (or entering a custom one) and pressing the "Allow" button. Note that, unlike the "options" page, these URLs are entered normally and not as regular expressions.

Click on the icon in the toolbar and press the large "toggle" button to temporarily toggle enabling/disabling the extension for a single tab.

It's triggered when the page is first loaded, or the URL changes (you click a link), or the comments are injected into the page (Disqus and YouTube delay loading comments), or when you open the popup (via the extension icon in the toolbar) and choose to toggle a page or whitelist (allow) a new URL.

If you're interested, check out the source code.

Permissions

You'll be notified that it can "read and change all your data on the websites you visit" because that's how it works - it hides certain comment-related elements on the page so you don't see them.

It also uses storage to save its state, but it shouldn't prompt you for that.

Contributions / Questions

If you notice a commenting system that could be blocked by default, open an issue. Include the website where you noticed it, and I'll try to tackle it as time permits.

If you're comfortable with RegEx and HTML/CSS, you could just create a pull request against the file that defines which sites and html elements are blocked.

Have a question, comment or request? Open a new issue with as many details as possible. The more you let me know upfront, the less I'll have to ask later. I'll get to it as time permits.


Author

Grant Winney

I write when I've got something to share - a personal project, a solution to a difficult problem, or just an idea. We learn by doing and sharing. We've all got something to contribute.

Comments