Skip to content

Instantly share code, notes, and snippets.

@perploug
Created May 7, 2013 08:33
Show Gist options
  • Save perploug/5531117 to your computer and use it in GitHub Desktop.
Save perploug/5531117 to your computer and use it in GitHub Desktop.
Userscript for hiding eb.dk/nationen and fb comments, use tampermonkey in chrome to load
// ==UserScript==
// @name AntiStupidity
// @description Hides facebook and EB nationent comments on all sites
// @author pph
// @include http://*
// @include https://*
// ==/UserScript==
(function() {
var css = "#comments.widget-container, .fb_ltr, .fbComments, .fbTimelineUFI{ display: none !important; }";
if (typeof GM_addStyle != "undefined") {
GM_addStyle(css);
} else if (typeof PRO_addStyle != "undefined") {
PRO_addStyle(css);
} else if (typeof addStyle != "undefined") {
addStyle(css);
} else {
var heads = document.getElementsByTagName("head");
if (heads.length > 0) {
var node = document.createElement("style");
node.type = "text/css";
node.appendChild(document.createTextNode(css));
heads[0].appendChild(node);
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment