Skip to content

Instantly share code, notes, and snippets.

@hunterwei
Last active October 20, 2022 18:19
Show Gist options
  • Save hunterwei/d319ee88118a3455f078189636c41970 to your computer and use it in GitHub Desktop.
Save hunterwei/d319ee88118a3455f078189636c41970 to your computer and use it in GitHub Desktop.
Surfingkeys Settings
// Remap 'Tab on the right' with `gt`/`K`
api.map('gt', 'R');
api.map('K', 'R');
// Remap 'Tab on the left' with `gT`/`J`
api.map('gT', 'E');
api.map('J', 'E');
// Remap 'Back in hisotry' with `gT`/`J`
api.map('H', 'S');
// Remap 'Forward in hisotry' with `gT`/`J`
api.map('L', 'D');
// Remap 'Open a link in active new tab'/`af` with `F`
api.map('F', 'af');
// an example to remove mapkey `Ctrl-i`
api.unmap('<ctrl-i>');
// Disable PDF viewer
chrome.storage.local.set({"noPdfViewer": 1})
// click `Save` button to make above settings to take effect.</ctrl-i></ctrl-y>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment