]> git.rmz.io Git - dotfiles.git/blob - dwb/userscripts/extension_loader.js
897d72d9afd7ee45da4d8826415cfb8ade30d149
[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 //<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.
50 scripts : []
51 //>userscripts___CONFIG
52 });
53 //>userscripts___SCRIPT
54 //<adblock_subscriptions___SCRIPT
55 extensions.load("adblock_subscriptions", {
56 //<adblock_subscriptions___CONFIG
57
58 // Shortcut to subscribe to a filterlist
59 scSubscribe : null,
60 // Command to subscribe to a filterlist
61 cmdSubscribe : "adblock_subscribe",
62
63 // Shortcut to unsubscribe from a filterlist
64 scUnsubscribe : null,
65
66 // Command to unsubscribe from a filterlist
67 cmdUnsubscribe : "adblock_unsubscribe",
68
69 // Shortcut to update subscriptions and reload filter rules
70 // Note that dwb will also update all subscriptions on startup
71 scUpdate : null,
72
73 // Command to update subscriptions and reload filter rules
74 // Note that dwb will also update all subscriptions on startup
75 cmdUpdate : "adblock_update",
76
77 // Path to the filterlist directory, will be created if it doesn't exist.
78 filterListDir : data.configDir + "/adblock_lists"
79 //>adblock_subscriptions___CONFIG
80 });
81 //>adblock_subscriptions___SCRIPT
82
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.
89 //
90 // The special domain suffix .tld matches all top level domains, e.g.
91 // example.tld matches example.com, example.co.uk, example.it ...
92 //
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, ...
100
101 defaults: {
102 "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/default.css"
103 },
104 // Settings applied based on the second level domain
105 domains : {
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" },
109 },
110 //Settings applied based on the hostname
111 hosts : {
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" },
117 },
118 // Settings applied based on the uri
119 uris : {
120 // "http://www.example.com/foo/" : { autoLoadImages : true } },
121 },
122 //>perdomainsettings___CONFIG
123 });
124 //>perdomainsettings___SCRIPT
125 //<simplyread___SCRIPT
126 extensions.load("simplyread", {
127 //<simplyread___CONFIG
128 // Shortcut to toggle simplyread
129 shortcut : "SR",
130
131 // Command to toggle simplyread
132 command : "simplyread",
133
134 // Whether to use a stylesheet
135 nostyle : false,
136
137 // Whether to show links
138 nolinks : false
139
140 //>simplyread___CONFIG
141 });
142 //>simplyread___SCRIPT