X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=dot-files%2F_config%2Ftridactyl%2Ftridactylrc;h=c3524a8e974c8915c1c4e7e3655bc6cc8b03410b;hb=95e70d6fb7a9581ac8744530b3a38aa7d09a9be3;hp=85e3d13a645939e91cf252827449bbbf86c49f93;hpb=78845f5bc25705c0454d48232809a1bf365dcd36;p=sugar.git diff --git a/dot-files/_config/tridactyl/tridactylrc b/dot-files/_config/tridactyl/tridactylrc index 85e3d13..c3524a8 100644 --- a/dot-files/_config/tridactyl/tridactylrc +++ b/dot-files/_config/tridactyl/tridactylrc @@ -4,10 +4,16 @@ 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 set editorcmd /usr/pkg/bin/emacsclient +set modeindicatorshowkeys true " Reload the rc bind source @@ -48,10 +54,14 @@ bind 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 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 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