]> git.rmz.io Git - dotfiles.git/blobdiff - dwb/userscripts/extension_loader.js
dwb: use perdomainsettings to set user-stylsheet
[dotfiles.git] / dwb / userscripts / extension_loader.js
index 74fa41fcebb64920277ac6228697a154e633b4ef..bd8e413d40e820b5469fe93ba18a98e57d6452fe 100644 (file)
@@ -1,4 +1,9 @@
 //!javascript
+
+//extensions.load("userstyles", {
+//  scripts : []
+//});
+
 //<formfiller___SCRIPT
 extensions.load("formfiller", {
 //<formfiller___CONFIG
@@ -74,3 +79,46 @@ filterListDir : data.configDir + "/adblock_lists"
 //>adblock_subscriptions___CONFIG
 });
 //>adblock_subscriptions___SCRIPT
+//<perdomainsettings___SCRIPT
+extensions.load("perdomainsettings", {
+//<perdomainsettings___CONFIG
+// Only webkit builtin settings can be set, for a list of settings see 
+// http://webkitgtk.org/reference/webkitgtk/unstable/WebKitWebSettings.html
+// All settings can also be used in camelcase, otherwise they must be quoted.
+// 
+// The special domain suffix .tld matches all top level domains, e.g. 
+// example.tld matches example.com, example.co.uk, example.it ... 
+//
+// Settings based on uri will override host based settings and host based
+// settings will override domain based settings. Settings for domains/hosts/uris
+// with without tld suffix will override settings for
+// domains/hosts/uris with tld suffix respectively, e.g. 
+//      "example.com" : { enableScripts : true }, 
+//      "example.tld" : { enableScripts : false } 
+// will enable scripts on example.com but not on example.co.uk, example.it, ... 
+
+
+// Settings applied based on the second level domain
+domains : {
+//      "example.com" : { "auto-load-images" : false }, 
+//      "google.tld" : { enableScripts : false, autoLoadImages : false }, 
+        "chakra-project.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/chakra-project.org.css" }
+},
+
+defaults: {
+    "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/default.css"
+},
+
+//Settings applied based on the hostname
+hosts : {
+//    "www.example.com" : { autoLoadImages : true } 
+},
+
+// Settings applied based on the uri
+uris : {
+//  "http://www.example.com/foo/" : { autoLoadImages : true } }, 
+},
+
+//>perdomainsettings___CONFIG
+});
+//>perdomainsettings___SCRIPT