Skip to content

Instantly share code, notes, and snippets.

@ctechols
Last active August 29, 2019 12:45
Show Gist options
  • Save ctechols/91913603d1f54c1828081721e7a1d493 to your computer and use it in GitHub Desktop.
Save ctechols/91913603d1f54c1828081721e7a1d493 to your computer and use it in GitHub Desktop.
Personal SurfingKeys Config
removeSearchAliasX('b');
removeSearchAliasX('w');
removeSearchAliasX('h');
removeSearchAliasX('s');
removeSearchAliasX('h');
removeSearchAliasX('g');
removeSearchAliasX('y');
unmap("ob");
unmap("og");
unmap("ow");
unmap("oy");
addSearchAlias('s', 'startPage', 'https://www.startpage.com/do/dsearch?query=');
addSearchAlias('x', 'searx.me', 'https://searx.me?q=');
mapkey('os', '#8Open startpage search', function(){
Front.openOmnibar({type:'SearchEngine', extra: 's'});
});
mapkey('ox', '#8Open searx.me search', function(){
Front.openOmnibar({type: 'SearchEngine', extra: 'x'});
});
let tabKeys = ['g0', 'g$', 'gt', 'T', 'E', 'R', 'x', 'X'];
let omnibarKeys = [':', 'b', 't'];
unmapAllExcept([...tabKeys, ...omnibarKeys], /mail.google.com/);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment