This repository has no description
1.2 kB
31 lines
1" Tridactyl configuration
2" Source this file from ~/.config/tridactyl/tridactylrc with:
3" source /path/to/this/tridactylrc
4
5" Disable Tridactyl completely on sites that break with it
6" Uses seturl with regex pattern - prevents Tridactyl from injecting anything
7seturl my\.sevdesk\.de superignore true
8
9" Smooth scrolling
10set smoothscroll true
11
12" Don't focus input fields automatically
13set allowautofocus false
14
15" Allow autofocus on HedgeDoc/CodiMD instances (detected dynamically)
16autocmd DocLoad .* js if (document.title.includes('HedgeDoc') || document.title.includes('CodiMD') || document.querySelector('meta[name="application-name"][content="HedgeDoc"]')) { tri.excmds.set('allowautofocus', 'true'); }
17
18" Remove dangerous default binding (d closes tab)
19unbind d
20
21" Open current page in mpv
22bind gm composite js document.location.href | exclaim_quiet mpv
23" Select a link and open it in mpv
24bind ;gm hint -W exclaim_quiet mpv
25
26" Open current page through archive.ph
27bind gA js tri.excmds.tabopen('https://archive.ph/' + document.location.href)
28" Custom command to open URL via archive.ph
29command archiveph js -p tri.excmds.tabopen('https://archive.ph/' + JS_ARG)
30" Select a link and open it through archive.ph
31bind ;gA hint -W archiveph