Created
May 7, 2013 08:33
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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