Skip to content

Instantly share code, notes, and snippets.

@lpanebr
Created December 30, 2021 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lpanebr/ed9d5335a159049ceded6c4af390a29f to your computer and use it in GitHub Desktop.
Save lpanebr/ed9d5335a159049ceded6c4af390a29f to your computer and use it in GitHub Desktop.
My surfingkeys extension config
// an example to replace `T` with `gt`, click `Default mappings` to see how `T` works.
// api.map('gt', 'T');
settings.blocklistPattern =/(calendar)\.google\.com.*/i;
settings.blocklist = {
"https://www.figma.com": 1,
"https://excalidraw.com": 1,
"https://www.keybr.com": 1,
"https://monkeytype.com": 1
};
// 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');
// an example to remove mapkey `Ctrl-i`
// unmap('<Ctrl-i>');
// disable shift+i
// unmap('<Shift-i>');
//settings.smoothScroll = false;
//api.map('<Shift-j>', 'Down');
//api.map('<Shift-k>', 'Up');
//api.map('\j', '<ArrowDown>');
// disable all except f in mail.google.com
// api.unmap('R', /([^w]+)\.google\.com.*/i);
api.unmap('#', /([^w]+)\.google\.com.*/i);
api.unmap('r', /([^w]+)\.google\.com.*/i);
api.unmap('e', /([^w]+)\.google\.com.*/i);
api.unmap('j', /([^w]+)\.google\.com.*/i);
api.unmap('k', /([^w]+)\.google\.com.*/i);
//api.unmapAllExcept(['S', 'D', 'u', 'd', 'j', 'k', 'v'], /([^w]+)\.google\.com.*/i);
//settings.blocklistPattern =/(calendar)\.google\.com.*/i;
// 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: 20pt;
}`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment