]>
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     "reddit.com" :         { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/reddit.com.css" }, 
 114     "soundcloud.com" :     { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/soundcloud.com.css" }, 
 115     "stackexchange.com" :  { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/stackoverflow.com.css" }, 
 116     "stackoverflow.com" :  { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/stackoverflow.com.css" }, 
 117     "steamcommunity.com":  { "user-stylesheet-uri" : "" }, 
 118     "steampowered.com":    { "user-stylesheet-uri" : "" }, 
 119     "superuser.com" :      { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/stackoverflow.com.css" }, 
 120     "tardis" :             { "user-stylesheet-uri" : "" }, 
 121     "tardis.uni.cx" :      { "user-stylesheet-uri" : "" }, 
 122     "thetvdb.com" :        { "user-stylesheet-uri" : "" }, 
 123     "usenet-crawler.com" : { "user-stylesheet-uri" : "" }, 
 124     "wikipedia.org" :      { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/wikipedia.org.css" }, 
 126 //Settings applied based on the hostname 
 128     "chakraos.org" :             { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/chakra-project.org.css" }, 
 129     "docs.pointclouds.org" :     { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/doxygen.css" }, 
 130     "docs.ros.org" :             { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/doxygen.css" }, 
 131     "maps.google.com" :          { "user-stylesheet-uri" : "" }, 
 132     "paste.chakraos.org" :       { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/paste.chakra-project.org.css" }, 
 133     "plus.google.com" :          { "user-stylesheet-uri" : "" }, 
 134     "www.chakraos.org" :         { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/chakra-project.org.css" }, 
 136 // Settings applied based on the uri 
 138     "http://chakraos.org/reviewboard/" : { "user-stylesheet-uri" : "file:///home/ramsi/.config/dwb/userstyles/reviewboard.chakra-project.org.css" }, 
 139     ".*www.google.com/maps/.*" :      { "user-stylesheet-uri" : "" }, 
 140 //  "http://www.example.com/foo/" : { autoLoadImages : true } },  
 142 //>perdomainsettings___CONFIG 
 144 //>perdomainsettings___SCRIPT 
 146 //<simplyread___SCRIPT 
 147 extensions
.load("simplyread", { 
 148 //<simplyread___CONFIG 
 149 // Shortcut to toggle simplyread 
 152 // Command to toggle simplyread 
 153 command : "simplyread", 
 155 // Whether to use a stylesheet 
 158 // Whether to show links 
 161 //>simplyread___CONFIG 
 163 //>simplyread___SCRIPT