· 7 years ago · Nov 14, 2018, 07:10 AM
1// only keep E, R and T from Surfingkeys for gmail.com and twitter.com
2unmapAllExcept(['E','R','T'], /gmail.com|twitter.com|yahoo.com/);
3
4// an example to create a new mapping `ctrl-y`
5mapkey('<Ctrl-y>', 'Show me the money', function() {
6 Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).');
7});
8
9// an example to replace `T` with `gt`, click `Default mappings` to see how `T` works.
10map('gt', 'T');
11
12// an example to remove mapkey `Ctrl-i`
13unmap('<Ctrl-i>');
14
15// set theme
16settings.theme = `
17.sk_theme {
18 font-family: Input Sans Condensed, Charcoal, sans-serif;
19 font-size: 10pt;
20 background: #24272e;
21 color: #abb2bf;
22}
23.sk_theme tbody {
24 color: #fff;
25}
26.sk_theme input {
27 color: #d0d0d0;
28}
29.sk_theme .url {
30 color: #61afef;
31}
32.sk_theme .annotation {
33 color: #56b6c2;
34}
35.sk_theme .omnibar_highlight {
36 color: #528bff;
37}
38.sk_theme .omnibar_timestamp {
39 color: #e5c07b;
40}
41.sk_theme .omnibar_visitcount {
42 color: #98c379;
43}
44.sk_theme #sk_omnibarSearchResult>ul>li:nth-child(odd) {
45 background: #303030;
46}
47.sk_theme #sk_omnibarSearchResult>ul>li.focused {
48 background: #3e4452;
49}
50#sk_status, #sk_find {
51 font-size: 20pt;
52}`;
53// click `Save` button to make above settings to take effect.