Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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.
- // ==UserScript==
- // @name Drudge color change
- // @namespace https://pastebin.com/YBN1yg8e
- // @description Change the background color of a page, from a post I lost the link to on superuser and fussed with the CSS
- // @include https://www.drudgereport.com/
- // ==/UserScript==
- function addGlobalStyle(css) {
- var head, style;
- head = document.getElementsByTagName('head')[0];
- if (!head) { return; }
- style = document.createElement('style');
- style.type = 'text/css';
- style.innerHTML = css.replace(/;/g, ' !important;');
- head.appendChild(style);
- }
- addGlobalStyle('body {color: white; background-color: black; }');
- addGlobalStyle('a { color: white; }' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement