Skip to content

Instantly share code, notes, and snippets.

@lucgiffon
Last active December 22, 2021 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucgiffon/4ae8f508a20210e73fdecaff09fd2a4d to your computer and use it in GitHub Desktop.
Save lucgiffon/4ae8f508a20210e73fdecaff09fd2a4d to your computer and use it in GitHub Desktop.
Tampermonkey script to disable comments on various websites
// ==UserScript==
// @name Disable comments
// @description Make reddit comments invisible.
// @version 0.1
// @author You
// @grant GM_addStyle
// @match https://*.reddit.com/*
// @match https://*.youtube.com/*
// @match https://www.lefigaro.fr/*
// @match https://www.linkedin.com/*
// ==/UserScript==
GM_addStyle(".commentarea { display: none; }"); //reddit
GM_addStyle("#comments { display: none; }"); // youtube
GM_addStyle(".fig-comments { display: none; }"); // figaro
GM_addStyle(".social-details-social-activity, .update-v2-social-activity { display: none; }"); // linkedin
console.log('Disabling comments done.');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment