Advertisement
mrmeval

Drudge change background and link color.

Feb 11th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. This is a Greasemonkey script. You'll need to install it to use this. 8MAR2019 dick bags at drudge force https now. I changed that and it works.
  2.  
  3. // ==UserScript==
  4. // @name Drudge color change
  5. // @namespace https://pastebin.com/YBN1yg8e
  6. // @description Change the background color of a page, from a post I lost the link to on superuser and fussed with the CSS
  7. // @include https://www.drudgereport.com/
  8. // ==/UserScript==
  9.  
  10. function addGlobalStyle(css) {
  11.    var head, style;
  12.    head = document.getElementsByTagName('head')[0];
  13.    if (!head) { return; }
  14.    style = document.createElement('style');
  15.    style.type = 'text/css';
  16.    style.innerHTML = css.replace(/;/g, ' !important;');
  17.    head.appendChild(style);
  18. }
  19.  
  20. addGlobalStyle('body {color: white; background-color: black; }');
  21. addGlobalStyle('a { color: white; }' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement