]> git.rmz.io Git - dotfiles.git/commitdiff
dwb: set color for about:blank
authorSamir Benmendil <samir.benmendil@gmail.com>
Mon, 22 Sep 2014 06:32:27 +0000 (07:32 +0100)
committerSamir Benmendil <samir.benmendil@gmail.com>
Mon, 22 Sep 2014 06:32:27 +0000 (07:32 +0100)
dwb/userscripts/blank.js [new file with mode: 0755]

diff --git a/dwb/userscripts/blank.js b/dwb/userscripts/blank.js
new file mode 100755 (executable)
index 0000000..4028ef1
--- /dev/null
@@ -0,0 +1,7 @@
+#!javascript
+
+Signal.connect("documentLoaded", function (wv) {
+  if (wv.uri == "about:blank") {
+    wv.inject("document.body.style.background = '#222';");
+  }
+});