]> git.rmz.io Git - dotfiles.git/blobdiff - dwb/greasemonkey/darken.user.js
use darken instead of ponyhoof
[dotfiles.git] / dwb / greasemonkey / darken.user.js
diff --git a/dwb/greasemonkey/darken.user.js b/dwb/greasemonkey/darken.user.js
new file mode 100644 (file)
index 0000000..79bdbbc
--- /dev/null
@@ -0,0 +1,35 @@
+// Darken\r
+// version 0.1\r
+// Gina Trapani\r
+// 2007-05-10\r
+// Released to the public domain.\r
+//\r
+// ==UserScript==\r
+// @name          Darken\r
+// @description   Turns a web pages' background Grey and text White for readability.\r
+// @include       *\r
+// @exclude       https://plus.google.com/hangouts/*\r
+// @exclude       https://www.humblebundle.com/*\r
+// @exclude       https?://steamcommunity.com/*\r
+// @exclude       https?://imgur.com/*\r
+// ==/UserScript==\r
+//\r
+// ==RevisionHistory==\r
+// Version 0.1:\r
+// Released: 2007-05-10.\r
+// Initial release.\r
+// ==/RevisionHistory==\r
+\r
+(function(){\r
+    var newSS;\r
+    var styles=':not(img) { background-color: #201F1F ! important; color: #D4D2CF ! important; } :link, :link * { color: #719696 !important; } :visited, :visited * { color: #666665 !important; } .tagContainer { display: none }';\r
+    if(document.createStyleSheet) { \r
+        document.createStyleSheet("javascript:'"+styles+"'");\r
+    } else { \r
+        newSS=document.createElement('link');\r
+        newSS.rel='stylesheet';\r
+        newSS.href='data:text/css,'+escape(styles);\r
+        document.getElementsByTagName("head")[0].appendChild(newSS);\r
+    } \r
+})();\r
+//.user.js\r