]> git.rmz.io Git - dotfiles.git/blob - dwb/userscripts/extension_loader.js
55056006aa0a09dd6000ddc66d41822a881a428e
[dotfiles.git] / dwb / userscripts / extension_loader.js
1 //!javascript
2
3 //extensions.load("userstyles", {
4 // scripts : []
5 //});
6
7 //<formfiller___SCRIPT
8 extensions.load("formfiller", {
9 //<formfiller___CONFIG
10 // shortcut that gets and saves formdata
11 scGetForm : "efg",
12
13 // shortcut that fills a form
14 scFillForm : "eff",
15
16 // path to the formdata file
17 formData : data.configDir + "/forms",
18
19 // whether to use a gpg-encrypted file
20 useGPG : true,
21
22 // your GPG key ID (leave empty to use a symmetric cipher)
23 GPGKeyID : "EBC85A93",
24
25 // whether to use a GPG agent (requires non-empty GPGKeyID to work)
26 GPGAgent : true,
27
28 // additional arguments passed to gpg2 when encrypting the formdata
29 GPGOptEncrypt : "",
30
31 // additional arguments passed to gpg2 when decrypting the formdata
32 GPGOptDecrypt : "",
33
34 // whether to save the password in memory when gpg is used
35 keepPassword : true,
36
37 // whether to save the whole formdata in memory when gpg is used
38 keepFormdata : false
39
40 //>formfiller___CONFIG
41 });
42 //>formfiller___SCRIPT
43
44 //<userscripts___SCRIPT
45 extensions.load("userscripts", {
46 //<userscripts___CONFIG
47 // paths to userscripts, this extension will also load all scripts in
48 // $XDG_CONFIG_HOME/dwb/greasemonkey, it will also load all scripts in
49 // $XDG_CONFIG_HOME/dwb/scripts but this is deprecated and will be
50 // disabled in future versions.
51 scripts : []
52 //>userscripts___CONFIG
53 });
54 //>userscripts___SCRIPT
55
56 //<adblock_subscriptions___SCRIPT
57 extensions.load("adblock_subscriptions", {
58 //<adblock_subscriptions___CONFIG
59
60 // Shortcut to subscribe to a filterlist
61 scSubscribe : null,
62 // Command to subscribe to a filterlist
63 cmdSubscribe : "adblock_subscribe",
64
65 // Shortcut to unsubscribe from a filterlist
66 scUnsubscribe : null,
67
68 // Command to unsubscribe from a filterlist
69 cmdUnsubscribe : "adblock_unsubscribe",
70
71 // Shortcut to update subscriptions and reload filter rules
72 // Note that dwb will also update all subscriptions on startup
73 scUpdate : null,
74
75 // Command to update subscriptions and reload filter rules
76 // Note that dwb will also update all subscriptions on startup
77 cmdUpdate : "adblock_update",
78
79 // Path to the filterlist directory, will be created if it doesn't exist.
80 filterListDir : data.configDir + "/adblock_lists"
81 //>adblock_subscriptions___CONFIG
82 });
83 //>adblock_subscriptions___SCRIPT
84
85 //<perdomainsettings___SCRIPT
86 extensions.load("perdomainsettings", {
87 //<perdomainsettings___CONFIG
88 // Only webkit builtin settings can be set, for a list of settings see
89 // http://webkitgtk.org/reference/webkitgtk/unstable/WebKitWebSettings.html
90 // All settings can also be used in camelcase, otherwise they must be quoted.
91 //
92 // The special domain suffix .tld matches all top level domains, e.g.
93 // example.tld matches example.com, example.co.uk, example.it ...
94 //
95 // Settings based on uri will override host based settings and host based
96 // settings will override domain based settings. Settings for domains/hosts/uris
97 // with without tld suffix will override settings for
98 // domains/hosts/uris with tld suffix respectively, e.g.
99 // "example.com" : { enableScripts : true },
100 // "example.tld" : { enableScripts : false }
101 // will enable scripts on example.com but not on example.co.uk, example.it, ...
102
103 defaults: {
104 "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/default.css"
105 },
106 // Settings applied based on the second level domain
107 domains : {
108 "duckduckgo.com" : { "user-stylesheet-uri" : "" },
109 "facebook.com" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/facebook.com.css" },
110 "github.com" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/github.com.css" },
111 "humblebundle.com" : { "user-stylesheet-uri" : "" },
112 "reddit.com" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/reddit.com.css" },
113 "stackexchange.com" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/stackoverflow.com.css" },
114 "stackoverflow.com" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/stackoverflow.com.css" },
115 "steamcommunity.com": { "user-stylesheet-uri" : "" },
116 "superuser.com" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/stackoverflow.com.css" },
117 "tardis" : { "user-stylesheet-uri" : "" },
118 "tardis.uni.cx" : { "user-stylesheet-uri" : "" },
119 "thetvdb.com" : { "user-stylesheet-uri" : "" },
120 "usenet-crawler.com" : { "user-stylesheet-uri" : "" },
121 },
122 //Settings applied based on the hostname
123 hosts : {
124 "chakraos.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/chakra-project.org.css" },
125 "docs.pointclouds.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/doxygen.css" },
126 "docs.ros.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/doxygen.css" },
127 "maps.google.com" : { "user-stylesheet-uri" : "" },
128 "paste.chakraos.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/paste.chakra-project.org.css" },
129 "plus.google.com" : { "user-stylesheet-uri" : "" },
130 "www.chakraos.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/chakra-project.org.css" },
131 },
132 // Settings applied based on the uri
133 uris : {
134 "http://chakraos.org/reviewboard/" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/reviewboard.chakra-project.org.css" },
135 ".*www.google.com/maps/.*" : { "user-stylesheet-uri" : "" },
136 // "http://www.example.com/foo/" : { autoLoadImages : true } },
137 },
138 //>perdomainsettings___CONFIG
139 });
140 //>perdomainsettings___SCRIPT
141
142 //<simplyread___SCRIPT
143 extensions.load("simplyread", {
144 //<simplyread___CONFIG
145 // Shortcut to toggle simplyread
146 shortcut : "SR",
147
148 // Command to toggle simplyread
149 command : "simplyread",
150
151 // Whether to use a stylesheet
152 nostyle : false,
153
154 // Whether to show links
155 nolinks : false
156
157 //>simplyread___CONFIG
158 });
159 //>simplyread___SCRIPT