]>
git.rmz.io Git - dotfiles.git/blob - dwb/userscripts/extension_loader.js
3 //extensions.load("userstyles", {
8 extensions
.load("formfiller", {
10 // shortcut that gets and saves formdata
13 // shortcut that fills a form
16 // path to the formdata file
17 formData : data
.configDir
+ "/forms",
19 // whether to use a gpg-encrypted file
22 // your GPG key ID (leave empty to use a symmetric cipher)
23 GPGKeyID : "EBC85A93",
25 // whether to use a GPG agent (requires non-empty GPGKeyID to work)
28 // additional arguments passed to gpg2 when encrypting the formdata
31 // additional arguments passed to gpg2 when decrypting the formdata
34 // whether to save the password in memory when gpg is used
37 // whether to save the whole formdata in memory when gpg is used
40 //>formfiller___CONFIG
42 //>formfiller___SCRIPT
43 //<userscripts___SCRIPT
44 extensions
.load("userscripts", {
45 //<userscripts___CONFIG
46 // paths to userscripts, this extension will also load all scripts in
47 // $XDG_CONFIG_HOME/dwb/greasemonkey, it will also load all scripts in
48 // $XDG_CONFIG_HOME/dwb/scripts but this is deprecated and will be
49 // disabled in future versions.
51 //>userscripts___CONFIG
53 //>userscripts___SCRIPT
54 //<adblock_subscriptions___SCRIPT
55 extensions
.load("adblock_subscriptions", {
56 //<adblock_subscriptions___CONFIG
58 // Shortcut to subscribe to a filterlist
60 // Command to subscribe to a filterlist
61 cmdSubscribe : "adblock_subscribe",
63 // Shortcut to unsubscribe from a filterlist
66 // Command to unsubscribe from a filterlist
67 cmdUnsubscribe : "adblock_unsubscribe",
69 // Shortcut to update subscriptions and reload filter rules
70 // Note that dwb will also update all subscriptions on startup
73 // Command to update subscriptions and reload filter rules
74 // Note that dwb will also update all subscriptions on startup
75 cmdUpdate : "adblock_update",
77 // Path to the filterlist directory, will be created if it doesn't exist.
78 filterListDir : data
.configDir
+ "/adblock_lists"
79 //>adblock_subscriptions___CONFIG
81 //>adblock_subscriptions___SCRIPT
82 //<perdomainsettings___SCRIPT
83 extensions
.load("perdomainsettings", {
84 //<perdomainsettings___CONFIG
85 // Only webkit builtin settings can be set, for a list of settings see
86 // http://webkitgtk.org/reference/webkitgtk/unstable/WebKitWebSettings.html
87 // All settings can also be used in camelcase, otherwise they must be quoted.
89 // The special domain suffix .tld matches all top level domains, e.g.
90 // example.tld matches example.com, example.co.uk, example.it ...
92 // Settings based on uri will override host based settings and host based
93 // settings will override domain based settings. Settings for domains/hosts/uris
94 // with without tld suffix will override settings for
95 // domains/hosts/uris with tld suffix respectively, e.g.
96 // "example.com" : { enableScripts : true },
97 // "example.tld" : { enableScripts : false }
98 // will enable scripts on example.com but not on example.co.uk, example.it, ...
101 // Settings applied based on the second level domain
103 // "example.com" : { "auto-load-images" : false },
104 // "google.tld" : { enableScripts : false, autoLoadImages : false },
105 "chakra-project.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/chakra-project.org.css" },
106 "humblebundle.com" : { "user-stylesheet-uri" : "" }
110 "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/default.css"
113 //Settings applied based on the hostname
115 // "www.example.com" : { autoLoadImages : true }
118 // Settings applied based on the uri
120 // "http://www.example.com/foo/" : { autoLoadImages : true } },
123 //>perdomainsettings___CONFIG
125 //>perdomainsettings___SCRIPT
126 //<simplyread___SCRIPT
127 extensions
.load("simplyread", {
128 //<simplyread___CONFIG
129 // Shortcut to toggle simplyread
132 // Command to toggle simplyread
133 command : "simplyread",
135 // Whether to use a stylesheet
138 // Whether to show links
141 //>simplyread___CONFIG
143 //>simplyread___SCRIPT