]>
git.rmz.io Git - dotfiles.git/blob - dwb/userscripts/extension_loader.js
897d72d9afd7ee45da4d8826415cfb8ade30d149
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
83 //<perdomainsettings___SCRIPT
84 extensions
.load("perdomainsettings", {
85 //<perdomainsettings___CONFIG
86 // Only webkit builtin settings can be set, for a list of settings see
87 // http://webkitgtk.org/reference/webkitgtk/unstable/WebKitWebSettings.html
88 // All settings can also be used in camelcase, otherwise they must be quoted.
90 // The special domain suffix .tld matches all top level domains, e.g.
91 // example.tld matches example.com, example.co.uk, example.it ...
93 // Settings based on uri will override host based settings and host based
94 // settings will override domain based settings. Settings for domains/hosts/uris
95 // with without tld suffix will override settings for
96 // domains/hosts/uris with tld suffix respectively, e.g.
97 // "example.com" : { enableScripts : true },
98 // "example.tld" : { enableScripts : false }
99 // will enable scripts on example.com but not on example.co.uk, example.it, ...
102 "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/default.css"
104 // Settings applied based on the second level domain
106 "humblebundle.com" : { "user-stylesheet-uri" : "" },
107 "github.com" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/github.com.css" },
108 "stackoverflow.com" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/stackoverflow.com.css" },
110 //Settings applied based on the hostname
112 "plus.google.com" : { "user-stylesheet-uri" : "" },
113 "chakra-project.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/chakra-project.org.css" },
114 "www.chakra-project.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/chakra-project.org.css" },
115 "reviewboard.chakra-project.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/reviewboard.chakra-project.org.css" },
116 "paste.chakra-project.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/paste.chakra-project.org.css" },
118 // Settings applied based on the uri
120 // "http://www.example.com/foo/" : { autoLoadImages : true } },
122 //>perdomainsettings___CONFIG
124 //>perdomainsettings___SCRIPT
125 //<simplyread___SCRIPT
126 extensions
.load("simplyread", {
127 //<simplyread___CONFIG
128 // Shortcut to toggle simplyread
131 // Command to toggle simplyread
132 command : "simplyread",
134 // Whether to use a stylesheet
137 // Whether to show links
140 //>simplyread___CONFIG
142 //>simplyread___SCRIPT