]>
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
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.
52 //>userscripts___CONFIG
54 //>userscripts___SCRIPT
56 //<adblock_subscriptions___SCRIPT
57 extensions
.load("adblock_subscriptions", {
58 //<adblock_subscriptions___CONFIG
60 // Shortcut to subscribe to a filterlist
62 // Command to subscribe to a filterlist
63 cmdSubscribe : "adblock_subscribe",
65 // Shortcut to unsubscribe from a filterlist
68 // Command to unsubscribe from a filterlist
69 cmdUnsubscribe : "adblock_unsubscribe",
71 // Shortcut to update subscriptions and reload filter rules
72 // Note that dwb will also update all subscriptions on startup
75 // Command to update subscriptions and reload filter rules
76 // Note that dwb will also update all subscriptions on startup
77 cmdUpdate : "adblock_update",
79 // Path to the filterlist directory, will be created if it doesn't exist.
80 filterListDir : data
.configDir
+ "/adblock_lists"
81 //>adblock_subscriptions___CONFIG
83 //>adblock_subscriptions___SCRIPT
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.
92 // The special domain suffix .tld matches all top level domains, e.g.
93 // example.tld matches example.com, example.co.uk, example.it ...
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, ...
104 "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/default.css"
106 // Settings applied based on the second level domain
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 "imgur.com" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/imgur.com.css" },
113 "paradoxplaza.com": { "user-stylesheet-uri" : "" },
114 "reddit.com" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/reddit.com.css" },
115 "soundcloud.com" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/soundcloud.com.css" },
116 "stackexchange.com" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/stackoverflow.com.css" },
117 "stackoverflow.com" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/stackoverflow.com.css" },
118 "steamcommunity.com": { "user-stylesheet-uri" : "" },
119 "steampowered.com": { "user-stylesheet-uri" : "" },
120 "superuser.com" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/stackoverflow.com.css" },
121 "tardis" : { "user-stylesheet-uri" : "" },
122 "tardis.uni.cx" : { "user-stylesheet-uri" : "" },
123 "thetvdb.com" : { "user-stylesheet-uri" : "" },
124 "trakt.tv" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/trakt.tv.css" },
125 "usenet-crawler.com" : { "user-stylesheet-uri" : "" },
126 "wikipedia.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/wikipedia.org.css" },
127 "xkcd.com" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/xkcd.com.css" },
129 //Settings applied based on the hostname
131 "chakraos.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/chakra-project.org.css" },
132 "docs.pointclouds.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/doxygen.css" },
133 "docs.ros.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/doxygen.css" },
134 "git.rmz.io" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/gitweb.css" },
135 "git.chakraos.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/gitweb.css" },
136 "maps.google.com" : { "user-stylesheet-uri" : "" },
137 "paste.chakraos.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/paste.chakra-project.org.css" },
138 "plus.google.com" : { "user-stylesheet-uri" : "" },
139 "www.chakraos.org" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/chakra-project.org.css" },
141 // Settings applied based on the uri
143 "http://chakraos.org/reviewboard/" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/reviewboard.chakra-project.org.css" },
144 ".*www.google.com/maps/.*" : { "user-stylesheet-uri" : "" },
145 // "http://www.example.com/foo/" : { autoLoadImages : true } },
147 //>perdomainsettings___CONFIG
149 //>perdomainsettings___SCRIPT
151 //<simplyread___SCRIPT
152 extensions
.load("simplyread", {
153 //<simplyread___CONFIG
154 // Shortcut to toggle simplyread
157 // Command to toggle simplyread
158 command : "simplyread",
160 // Whether to use a stylesheet
163 // Whether to show links
166 //>simplyread___CONFIG
168 //>simplyread___SCRIPT