// ==UserScript== // @name Don't Read Below the Line // @namespace http://xyxyx.org/ // @include http://www.theguardian.com/* // @include http://www.dailymail.co.uk/* // @version 0.2 // @grant none // @description Script intended to reduce misanthropic feelings, by hiding the comments section on some UK newspapers. // @downloadURL none // ==/UserScript== console.log("Trying to hide comments"); var hideIfFound = function(element) { if (!element) { console.log("Not found"); } else { console.log("Hiding"); element.style.visibility = 'hidden'; } } // Gaurdian hideIfFound(document.getElementById("comments")); hideIfFound(document.getElementById("top-comments")); hideIfFound(document.getElementById("d2-root")); // Daily Mail hideIfFound(document.getElementById("reader-comments"));