-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsurfingkeys.txt
180 lines (165 loc) · 6.04 KB
/
surfingkeys.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
// Import file:
// https://raw.githubusercontent.com/j8s0n/SurfingKeysConfig/main/surfingkeys.txt
api.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.
api.map('gt', 'T');
settings.blocklistPattern = /.*hackerrank.com.*|.*leetcode.com.*|.*docs.google.com.*/
// an example to remove mapkey `Ctrl-i`
api.unmap('<ctrl-i>');
api.unmap('a', /gmail.com|mail.google.com|mail.proton.me/);
api.unmap('b', /gmail.com|mail.google.com|mail.proton.me/);
api.unmap('c', /gmail.com|mail.google.com|mail.proton.me/);
api.unmap('d', /gmail.com|mail.google.com|mail.proton.me/);
api.unmap('e', /gmail.com|mail.google.com|mail.proton.me/);
api.unmap('f', /gmail.com|mail.google.com|mail.proton.me/);
api.unmap('g', /gmail.com|mail.google.com|mail.proton.me/);
api.unmap('!', /gmail.com|mail.google.com|mail.proton.me/);
api.unmap('*', /gmail.com|mail.google.com|mail.proton.me/);
api.unmap('/', /gmail.com|mail.google.com|mail.proton.me/);
api.unmap('?', /gmail.com|mail.google.com|mail.proton.me/);
api.unmap('i', /gmail.com|mail.google.com|mail.proton.me/);
api.unmap('j', /gmail.com|mail.google.com|mail.proton.me/);
api.unmap('k', /gmail.com|mail.google.com|mail.proton.me/);
api.unmap('m', /gmail.com|mail.google.com|mail.proton.me/);
api.unmap('r', /gmail.com|mail.google.com|mail.proton.me/);
api.unmap('t', /gmail.com|mail.google.com|mail.proton.me/);
api.unmap('v', /gmail.com|mail.google.com|mail.proton.me/);
api.unmap('x', /gmail.com|mail.google.com|mail.proton.me/);
api.unmap('z', /gmail.com|mail.google.com|mail.proton.me/);
//---------------------------------------------------------
// Search engines
//
// a -> Amazon
// b -> Brave
// c -> Amazon
// d -> Wiktionary
// e -> Wikipedia (built in)
// f ->
// g -> Google (built in)
// h -> History
// i -> IMDb
// j ->
// k -> Kotlin
// l ->
// m -> Google Maps
// n -> New Tab
// o ->
// p -> Pathfinder
// q ->
// r ->
// s -> Stack Overflow
// t -> YouTube
// u ->
// v ->
// w -> Wikipedia
// x -> Recently Closed
// y -> Python 3.x
// z -> Amazon
//---------------------------------------------------------
api.addSearchAlias('a', 'Amazon', 'http://www.amazon.com/s/ref=nb_sb_noss_2?url=search-alias%3Daps&field-keywords=', 's', 'http://www.amazon.com/s/ref=nb_sb_noss_2?url=search-alias%3Daps&field-keywords=', function(response) {
var res = JSON.parse(response.text);
return res.map(function(r){
return r.phrase;
});
});
api.addSearchAlias('b', 'Brave', 'https://search.brave.com/search?q=', 's', 'https://search.brave.com/search?q=', function(response) {
var res = JSON.parse(response.text);
return res.map(function(r){
return r.phrase;
});
});
api.addSearchAlias('d', 'Wiktionary', 'http://en.wiktionary.org/w/index.php?title=Special:Search&search=', 's', 'http://en.wiktionary.org/w/index.php?title=Special:Search&search=', function(response) {
var res = JSON.parse(response.text);
return res.map(function(r){
return r.phrase;
});
});
api.addSearchAlias('i', 'IMDb', 'http://www.imdb.com/find?s=all&q=', 's', 'http://www.imdb.com/find?s=all&q=', function(response) {
var res = JSON.parse(response.text);
return res.map(function(r){
return r.phrase;
});
});
api.addSearchAlias('k', 'Kotlin', 'https://kotlinlang.org/docs/home.html?s=full&q=', 's', 'https://kotlinlang.org/docs/home.html?s=full&q=', function(response) {
var res = JSON.parse(response.text);
return res.map(function(r){
return r.phrase;
});
});
api.addSearchAlias('m', 'Maps', 'http://maps.google.com/maps?oi=map&q=', 's', 'http://maps.google.com/maps?oi=map&q=', function(response) {
var res = JSON.parse(response.text);
return res.map(function(r){
return r.phrase;
});
});
api.addSearchAlias('p', 'Pathfinder', 'https://cse.google.com/cse?cx=738be615ff31409f7&q=', 's', 'https://cse.google.com/cse?cx=738be615ff31409f7&q=', function(response) {
var res = JSON.parse(response.text);
return res.map(function(r){
return r.phrase;
});
});
api.addSearchAlias('t', 'YouTube', 'http://www.youtube.com/results?search_query=', 's', 'http://www.youtube.com/results?search_query=', function(response) {
var res = JSON.parse(response.text);
return res.map(function(r){
return r.phrase;
});
});
api.addSearchAlias('w', 'Wikipedia', 'https://en.wikipedia.org/wiki/Special:Search?search=', 's', 'https://en.wikipedia.org/wiki/Special:Search?search=', function(response) {
var res = JSON.parse(response.text);
return res.map(function(r){
return r.phrase;
});
});
api.addSearchAlias('y', 'Python', 'http://docs.python.org/3.3/search.html?q=', 's', 'http://docs.python.org/3.3/search.html?q=', function(response) {
var res = JSON.parse(response.text);
return res.map(function(r){
return r.phrase;
});
});
api.addSearchAlias('z', 'Amazon History', 'https://www.amazon.com/gp/legacy/order-history?opt=ab&search=', 's', 'https://www.amazon.com/gp/legacy/order-history?opt=ab&search=', function(response) {
var res = JSON.parse(response.text);
return res.map(function(r){
return r.phrase;
});
});
// 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.</ctrl-i></ctrl-y>