// ==UserScript== // @name Remove job adverts from HackerNews // @namespace _.pxeger.com // @version 1.1 // @downloadURL https://gist.githubusercontent.com/pxeger/4aed4baaa87028a2ecc6441a84a1fbc2/raw // @author Patrick Reader <_@pxeger.com> // @grant none // @match *://news.ycombinator.com/* // ==/UserScript== // licence: GPL v3 (https://www.gnu.org/licenses/gpl-3.0.en.html) (() => { if (!document.getElementById("me")) { // not logged in return; } document.querySelectorAll(".athing").forEach(athing => { if (athing.querySelector(".votelinks") === null) { athing.nextSibling.querySelector("a[href^=hide]").click(); } }); })();