-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.surfingkeys.js
More file actions
82 lines (72 loc) · 1.54 KB
/
.surfingkeys.js
File metadata and controls
82 lines (72 loc) · 1.54 KB
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
// Open in current tab
mapkey('o', '#8Open an URL in current tab', 'Normal.openOmnibar({type: "URLs", extra: "getTopSites", tabbed: false})');
// Open hint in new tab
mapkey('F', 'Open a link in new window', function() {
Hints.create("a:visible", function(link, event) {
window.open(link.getAttribute('href'));
})
});
// Next tab
unmap('L');
mapkey('L', 'Next tab', function() {
RUNTIME('nextTab');
});
// Previous tab
unmap('H');
mapkey('H', 'Previous tab', function() {
RUNTIME('previousTab');
});
// Go back
unmap('<Ctrl-h>');
mapkey('<Ctrl-h>', 'Go back', function() {
history.go(-1);
});
// Go forward
unmap('<Ctrl-l>');
mapkey('<Ctrl-l>', 'Go forward', function() {
history.go(1);
});
unmap('<Ctrl-d>');
mapkey('<Ctrl-d>', 'Scroll down half page', function () {
Normal.scroll('pageDown');
});
unmap('<Ctrl-l>');
mapkey('<Ctrl-l>', 'Scroll up half page', function () {
Normal.scroll('pageUp');
});
unmap('x');
mapkey('x', 'Close tab', function () {
RUNTIME('closeTab');
});
Hints.style("background: #000;");
settings.theme = '\
.sk_theme { \
background: #333; \
color: #fff; \
} \
.sk_theme tbody { \
color: #fff; \
} \
.sk_theme input { \
color: #fff; \
} \
.sk_theme .url { \
color: #555; \
} \
.sk_theme .annotation { \
color: #bfbfbf; \
} \
.sk_theme .focused { \
background: #fff; \
color: #333; \
} \
.sk_theme .focused .title { \
color: #ff5722; \
} \
.sk_theme .omnibar_folder { \
color: #4caf50; \
} \
.sk_theme .omnibar_timestamp { \
color: #ffeb3b; \
} \
';