diff options
author | xyz <gky44px1999@gmail.com> | 2021-09-11 00:17:10 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2021-09-11 00:17:10 -0700 |
commit | 38b339e506f75d380ea7ad6b98eb8bc0782c9a62 (patch) | |
tree | cc3ec2ce3f9eb14f752ded858fa9e7abc8276faa | |
parent | c891bcefc05ccb0847e08c1d2f1c05c45822c5f6 (diff) |
firefox surfingkeys extension config, move from gist to github
-rw-r--r-- | .config/myconf/surfingkeys_config.js | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/.config/myconf/surfingkeys_config.js b/.config/myconf/surfingkeys_config.js new file mode 100644 index 00000000..babaeb05 --- /dev/null +++ b/.config/myconf/surfingkeys_config.js @@ -0,0 +1,79 @@ + +// old example config, may not work. also, I change ctrl-y to Ctrl-y +// an example to create a new mapping `ctrl-y` +//mapkey('<Ctrl-y>', 'Show me the money', function() { +// Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).'); +//}); +// an example to replace `T` with `gt`, click `Default mappings` to see how `T` works. +//map('gt', 'T'); + +// I choose to use <Alt-i>, <Alt-s>, or <p> instead. I prefer <p> +//settings.blacklistPattern = /.*youtube\.com.*|.*mail\.google\.com.*/i; + +//unmap('<Ctrl-j>'); +map('<Ctrl-Alt-h>','<Ctrl-h>'); +unmap('<Ctrl-h>'); +map('<Ctrl-Alt-s>','<Alt-s>'); +unmap('<Alt-s>'); +// disable emoji +iunmap(':'); +// disable all insert mode hotkeys +iunmap('<Alt-b>'); +iunmap('<Alt-d>'); +iunmap('<Alt-f>'); +iunmap('<Alt-w>'); +iunmap("<Ctrl-'>"); +iunmap('<Ctrl-e>'); +iunmap('<Ctrl-f>'); +iunmap('<Ctrl-i>'); +iunmap('<Ctrl-u>'); + +mapkey('n','Find next then center cursor', function(){ + Visual.next(false); + Visual.feedkeys('zz'); +}); + +mapkey('N','Find previous then center cursor', function(){ + Visual.next(true); + Visual.feedkeys('zz'); +}); + +// set theme +settings.theme = ` +.sk_theme { + font-family: Input Sans Condensed, Charcoal, sans-serif; + font-size: 10pt; + background: #24272e; + color: #abb2bf; +} +.sk_theme tbody { + color: #fff; +} +.sk_theme input { + color: #d0d0d0; +} +.sk_theme .url { + color: #61afef; +} +.sk_theme .annotation { + color: #56b6c2; +} +.sk_theme .omnibar_highlight { + color: #528bff; +} +.sk_theme .omnibar_timestamp { + color: #e5c07b; +} +.sk_theme .omnibar_visitcount { + color: #98c379; +} +.sk_theme #sk_omnibarSearchResult ul li:nth-child(odd) { + background: #303030; +} +.sk_theme #sk_omnibarSearchResult ul li.focused { + background: #3e4452; +} +#sk_status, #sk_find { + font-size: 16pt; +}`; +// click `Save` button to make above settings to take effect.</ctrl-i></ctrl-y> |