Skip to content

Instantly share code, notes, and snippets.

@darrenhp
Last active March 5, 2021 03:51
Show Gist options
  • Save darrenhp/cbfe257b6d540058f4635ea9910b1ad4 to your computer and use it in GitHub Desktop.
Save darrenhp/cbfe257b6d540058f4635ea9910b1ad4 to your computer and use it in GitHub Desktop.
// 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).');
});
settings.blacklistPattern = /.*leetcode-cn.com|.*.zczc.cz|.*.yikm.net|yowa.huya.com|.*.hackerrank.com|.*codesignal.com|.*lsp-dev|.*lintcode.com|.*acwing.com|.*diagrams.net/
settings.prevLinkRegex = /上一頁|上一页|«|<前页/
settings.nextLinkRegex = /下一頁|下一页|»|后页>/
// an example to replace `T` with `gt`, click `Default mappings` to see how `T` works.
map('gt', 'T');
map('<Ctrl-d>', 'yt'); //复制便签页
map('<F1>', '[['); //上一页
map('<F2>', ']]'); //下一页
map('<F3>', 'E'); //上一个标签
map('<F4>', 'R'); //下一个标签
// an example to remove mapkey `Ctrl-i`
//unmap('<Ctrl-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;
}`;
// click `Save` button to make above settings to take effect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment