]> git.rmz.io Git - dotfiles.git/blobdiff - dwb/userscripts/extension_loader.js
vim: add GoldenView bundle
[dotfiles.git] / dwb / userscripts / extension_loader.js
index 0cbed084aafe5f83f094c89b037d5cd2072637e2..0e84349ccc2a0072c541d0c737d430fe674a3c3b 100644 (file)
@@ -1,4 +1,9 @@
 //!javascript
+
+//extensions.load("userstyles", {
+//  scripts : []
+//});
+
 //<formfiller___SCRIPT
 extensions.load("formfiller", {
 //<formfiller___CONFIG
@@ -12,13 +17,13 @@ scFillForm : "eff",
 formData : data.configDir + "/forms",
 
 // whether to use a gpg-encrypted file
-useGPG : false,
+useGPG : true,
 
 // your GPG key ID (leave empty to use a symmetric cipher)
-GPGKeyID : "",
+GPGKeyID : "EBC85A93",
 
 // whether to use a GPG agent (requires non-empty GPGKeyID to work)
-GPGAgent : false,
+GPGAgent : true,
 
 // additional arguments passed to gpg2 when encrypting the formdata
 GPGOptEncrypt : "",
@@ -74,3 +79,65 @@ 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, ... 
+
+defaults: {
+    "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/default.css"
+},
+// Settings applied based on the second level domain
+domains : {
+    "humblebundle.com" :   { "user-stylesheet-uri" : "" },
+    "github.com" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/github.com.css" },
+    "stackoverflow.com" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/stackoverflow.com.css" },
+    "superuser.com" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/stackoverflow.com.css" },
+},
+//Settings applied based on the hostname
+hosts : {
+    "plus.google.com" : { "user-stylesheet-uri" : "" },
+    "chakra-project.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/chakra-project.org.css" },
+    "www.chakra-project.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/chakra-project.org.css" },
+    "reviewboard.chakra-project.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/reviewboard.chakra-project.org.css" },
+    "paste.chakra-project.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/paste.chakra-project.org.css" },
+},
+// Settings applied based on the uri
+uris : {
+//  "http://www.example.com/foo/" : { autoLoadImages : true } }, 
+},
+//>perdomainsettings___CONFIG
+});
+//>perdomainsettings___SCRIPT
+//<simplyread___SCRIPT
+extensions.load("simplyread", {
+//<simplyread___CONFIG
+// Shortcut to toggle simplyread
+shortcut : "SR", 
+
+// Command to toggle simplyread
+command : "simplyread",
+
+// Whether to use a stylesheet
+nostyle : false, 
+
+// Whether to show links
+nolinks : false 
+
+//>simplyread___CONFIG
+});
+//>simplyread___SCRIPT