mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
123 lines
5.1 KiB
Text
123 lines
5.1 KiB
Text
sanitise tridactyllocal tridactylsync
|
|
|
|
colourscheme swarsel
|
|
|
|
" General Settings
|
|
set update.lastchecktime 1720629386560
|
|
set update.lastnaggedversion 1.24.1
|
|
set update.nag true
|
|
set update.nagwait 7
|
|
set update.checkintervalsecs 86400
|
|
set configversion 2.0
|
|
set searchurls.no https://search.nixos.org/options?query=
|
|
set searchurls.np https://search.nixos.org/packages?query=
|
|
set searchurls.hm https://home-manager-options.extranix.com/?query=
|
|
set completions.Tab.statusstylepretty true
|
|
set hintfiltermode vimperator-reflow
|
|
set hintnames numeric
|
|
unbind --mode=hint <Space>
|
|
|
|
" Binds
|
|
bind <C-m> buffer #
|
|
bind gd tabdetach
|
|
bind gD composite tabduplicate; tabdetach
|
|
bind d composite tabprev; tabclose #
|
|
bind D tabclose
|
|
bind c hint
|
|
bindurl ^http(s)?://www\.google\.com c hint -Jc [class="LC20lb MBeuO DKV0Md"],[class="YmvwI"],[class="YyVfkd"],[class="fl"]
|
|
bindurl ^http(s)?://news\.ycombinator\.com c hint -Jc [class="titleline"],[class="age"]
|
|
bindurl ^http(s)?://lobste\.rs c hint -Jc [class="u-url"],[class="comments_label"]
|
|
bindurl ^http(s)?://www\.google\.com gi composite focusinput -l ; text.end_of_line
|
|
|
|
" Work
|
|
command tab_or_tabopen jsb -p (async () => { let tabs = await browser.tabs.query({}); let tab = tabs.find(t => t.url.includes(JS_ARG)); if (tab) {browser.tabs.update(tab.id, { active: true });} else {tri.excmds.tabopen(JS_ARG);}})()
|
|
|
|
bind gwa tab_or_tabopen apic-impimba-1.m.imp.ac.at
|
|
bind gwA tab_or_tabopen artifactory.imp.ac.at
|
|
bind gwb tab_or_tabopen bitbucket.vbc.ac.at
|
|
bind gwc tab_or_tabopen vbc.atlassian.net/wiki
|
|
bind gwd tab_or_tabopen datadomain-impimba-2.imp.ac.at
|
|
bind gwe tab_or_tabopen exivity.vbc.ac.at
|
|
bind gwg tab_or_tabopen github.com
|
|
bind gwG tab_or_tabopen goc.egi.eu
|
|
bind gwh tab_or_tabopen jupyterhub.vbc.ac.at
|
|
bind gwH tab_or_tabopen test-jupyterhub.vbc.ac.at
|
|
bind gwj tab_or_tabopen jenkins.vbc.ac.at
|
|
bind gwJ tab_or_tabopen test-jenkins.vbc.ac.at
|
|
bind gwl tab_or_tabopen lucid.app
|
|
bind gwm tab_or_tabopen monitoring.vbc.ac.at/grafana
|
|
bind gwM tab_or_tabopen monitoring.vbc.ac.at/prometheus
|
|
bind gwn tab_or_tabopen netbox.vbc.ac.at
|
|
bind gwN tab_or_tabopen nap.imp.ac.at
|
|
bind gwo tab_or_tabopen outlook.office.com
|
|
bind gws tab_or_tabopen satellite.vbc.ac.at
|
|
bind gwt tab_or_tabopen tower.vbc.ac.at
|
|
bind gwv tab_or_tabopen vc-impimba-1.m.imp.ac.at/ui
|
|
bind gwx tab_or_tabopen xclarity.vbc.ac.at
|
|
|
|
" Search in page
|
|
set findcase smart
|
|
bind / fillcmdline find
|
|
bind ? fillcmdline find -?
|
|
bind n findnext 1
|
|
bind N findnext -1
|
|
|
|
bind j scrollline 4
|
|
bind k scrollline -4
|
|
|
|
|
|
" WARNING: This file defines and runs a command called fixamo_quiet. If you
|
|
" also have a malicious addon that operates on `<all_urls>` installed this
|
|
" will allow it to steal your firefox account credentials!
|
|
"
|
|
" With those credentials, an attacker can read anything in your sync account,
|
|
" publish addons to the AMO, etc, etc.
|
|
"
|
|
" Without this command a malicious addon can steal credentials from any site
|
|
" that you visit that is not in the restrictedDomains list.
|
|
"
|
|
" You should comment out the fixamo lines unless you are entirely sure that
|
|
" they are what you want.
|
|
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.")))
|
|
|
|
fixamo_quiet
|
|
set allowautofocus false
|
|
|
|
" The following modification allows Tridactyl to function on more pages, e.g. raw GitHub pages.
|
|
" You may not wish to run this. Mozilla strongly feels that you shouldn't.
|
|
" Read https://wiki.mozilla.org/Security/CSP#Goals for more information.
|
|
"
|
|
" Equivalent to `set csp clobber` before it was removed.
|
|
" This weakens your defences against cross-site-scripting attacks
|
|
" and other types of code-injection by reducing the strictness
|
|
" of Content Security Policy on all sites in a couple of ways.
|
|
"
|
|
" We remove the sandbox directive
|
|
" https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/sandbox
|
|
" which allows our iframe (and anyone else's) to run on any website.
|
|
"
|
|
" We weaken the style-src directive
|
|
" https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src
|
|
" to allow us to theme our elements.
|
|
" This exposes you to 'cross site styling' attacks
|
|
jsb browser.webRequest.onHeadersReceived.addListener(tri.request.clobberCSP,{urls:["<all_urls>"],types:["main_frame"]},["blocking","responseHeaders"])
|
|
|
|
" default is 300ms
|
|
set hintdelay 100
|
|
|
|
" Some pages like github break on the tridactyl quick search. have this as a fallback
|
|
unbind <C-f>
|
|
|
|
" Subconfig Settings
|
|
seturl www.google.com followpagepatterns.next Next
|
|
seturl www.google.com followpagepatterns.prev Previous
|
|
|
|
" Autocmds
|
|
autocmd DocStart undefined mode ignore
|
|
autocmd DocStart pokerogue.net mode ignore
|
|
autocmd DocStart typelit.io mode ignore
|
|
autocmd DocStart vc-impimba-1.m.imp.ac.at/ui/webconsole mode ignore
|
|
|
|
" For syntax highlighting see https://github.com/tridactyl/vim-tridactyl
|
|
" vim: set filetype=tridactyl
|