// ==UserScript== // @name INFOWARS on DRUDGE // @description Highlights all infowars links on drudge // @homepageURL https://google.com // @author Lol // @version 1.3 // @date 2015-10-06 // @namespace http://google.com // @include http://*.drudgereport.com/* // @include http://drudgereport.com/* // @match http://*.drudgereport.com/* // @match http://drudgereport.com/* // @grant GM_xmlhttpRequest // @grant GM_getValue // @grant GM_setValue // @run-at document-end // @license MIT License // @require https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js // @downloadURL https://update.greasyfork.cloud/scripts/11253/INFOWARS%20on%20DRUDGE.user.js // @updateURL https://update.greasyfork.cloud/scripts/11253/INFOWARS%20on%20DRUDGE.meta.js // ==/UserScript== $("document").ready(function () { $("a").each(function() { if ($(this).attr("href").indexOf("infowars") > -1 || ($(this).attr("href").indexOf("prisonplanet") > -1)) { $(this).css("background-color","#C30000").css("color","white").css("text-decoration","none").css("padding","4px 10px").css("display","inline-block").css("margin","7px 0"); $(this).prepend(""); } }); });