]> gitweb @ CieloNegro.org - sugar.git/blobdiff - dot-files/_config/tridactyl/tridactylrc
Auto commit by The Sugar System.
[sugar.git] / dot-files / _config / tridactyl / tridactylrc
index 286cd58a24a85b02ffe8f0b0cc223b03e95c6ca0..c9669a5bf5c46b021af728e7f8209377ede5b727 100644 (file)
@@ -4,6 +4,11 @@
 fillcmdline_tmp 3000 Reloading tricatylrc...
 sanitise tridactyllocal tridactylsync
 
+" Add helper commands that Mozillians think make Firefox irredeemably insecure
+" https://github.com/tridactyl/tridactyl/commit/fef58f508f6da258ac2a447b02c86e33313b115b
+command fixamo_quiet jsb tri.excmds.setpref("privacy.resistFingerprinting.block_mozAddonManager", "true").then(tri.excmds.setpref("extensions.webextensions.restrictedDomains", '""'))
+command fixamo js tri.excmds.setpref("privacy.resistFingerprinting.block_mozAddonManager", "true").then(tri.excmds.setpref("extensions.webextensions.restrictedDomains", '""').then(tri.excmds.fillcmdline_tmp(3000, "Permissions added to user.js. Please restart Firefox to make them take affect.")))
+
 " Configuration
 fixamo_quiet
 set csp clobber
@@ -49,10 +54,14 @@ bind <C-x><C-w> wayback
 " - Search or open Official Minecraft Wiki
 command mcwiki js -p tri.excmds.tabopen('http://minecraft.gamepedia.com' + (JS_ARG ? '/index.php?search=' + encodeURIComponent(JS_ARG) : ''))
 bind <C-x><C-m> fillcmdline mcwiki
+"
+" - Search or open MoJIRA
+command mcjira js -p tri.excmds.tabopen('https://bugs.mojang.com' + (JS_ARG ? '/secure/QuickSearch.jspa?searchString=' + encodeURIComponent(JS_ARG) : ''))
+bind <C-x><C-j> fillcmdline mcjira
 
 " Memories of multi_requester
 unbind m
-command alc js -p let uri='https://eow.alc.co.jp/search?q=' + JS_ARG; if (document.location.hostname == 'eow.alc.co.jp') { tri.excmds.open(uri); } else { tri.excmds.tabopen(uri); }
+command alc js -p let query=(JS_ARG == '' ? window.prompt('Query') : JS_ARG); if (query !== null) { let uri='https://eow.alc.co.jp/search?q=' + encodeURIComponent(query); if (document.location.hostname == 'eow.alc.co.jp') { tri.excmds.open(uri); } else { tri.excmds.tabopen(uri); } }
 bind ma fillcmdline alc
 
 " Quick marks
@@ -79,7 +88,7 @@ quickmark b http://direct.bk.mufg.jp/
 quickmark B http://www.mizuhobank.co.jp/direct/start.html
 "
 " - Securities
-qmark s https://online.sc.mufg.jp/its/dfw/UTBSITS/user_p/Login#
+quickmark s https://online.sc.mufg.jp/its/dfw/UTBSITS/user_p/Login#
 
 " Scrolling
 bind j scrollline 1