]>
git.rmz.io Git - dotfiles.git/blob - dwb/greasemonkey/darken.user.js
5 // Released to the public domain.
9 // @description Turns a web pages' background Grey and text White for readability.
11 // @exclude https?://plus.google.com/hangouts/*
12 // @exclude https?://www.humblebundle.com/*
13 // @exclude https?://steamcommunity.com/*
14 // @exclude https?://*steampowered.com/*
15 // @exclude https?://imgur.com/*
16 // @exclude https?://*playstarbound.com/*
19 // ==RevisionHistory==
21 // Released: 2007-05-10.
23 // ==/RevisionHistory==
27 var styles
=':not(img) { background-color: #201F1F ! important; color: #D4D2CF ! important; } :link, :link * { color: #719696 !important; } :visited, :visited * { color: #666665 !important; } .tagContainer { display: none }';
28 if(document
.createStyleSheet
) {
29 document
.createStyleSheet("javascript:'"+styles
+"'");
31 newSS
=document
.createElement('link');
32 newSS
.rel
='stylesheet';
33 newSS
.href
='data:text/css,'+escape(styles
);
34 document
.getElementsByTagName("head")[0].appendChild(newSS
);