Last active
December 17, 2017 16:31
-
-
Save balzss/dc40ed7c18a3202b85c05224ab71791e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
settings.scrollStepSize = 90; | |
map('h', 'E'); | |
map('l', 'R'); | |
map('J', 'd'); | |
map('K', 'u'); | |
map('u', 'S'); | |
map('U', 'D'); | |
map('O', 't'); | |
map('o', 'go'); | |
map('f', 'af'); | |
map('B', 'b'); | |
mapkey('b', '#8Open a bookmark', function() { | |
Front.openOmnibar(({type: "Bookmarks", tabbed: false})); | |
}); | |
mapkey('s', 'Pause YT video', function() { | |
document.getElementsByClassName('ytp-play-button')[0].click(); | |
}); | |
unmapAllExcept(['b', 'B', 's', 'o', 'O', 'f', 'h', 'l', 'J', 'K', 'u', 'U', '/', 'gg', 'G', 'j', 'k', 'i', 'r', 'x', 'X', 'v']); | |
Hints.characters = "asdfghjkl"; | |
settings.modeAfterYank = "normal"; | |
settings.hintAlign = "left"; | |
settings.newTabPosition = "right"; | |
settings.focusFirstCandidate = true; | |
addSearchAliasX('r', 'reddit', 'https://www.google.com/search?q=%s+site:reddit.com'); | |
addSearchAliasX('y', 'youtube', 'https://www.youtube.com/results?search_query=%s'); | |
Hints.style(`background: #37474F; | |
color: #f0f0f0; | |
font-size: 14px; | |
border-radius: 3px; | |
border: none; | |
padding: 4px 8px; | |
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); | |
} | |
`); | |
Hints.style(`color-background: #37474F; | |
background: #ccc; | |
font-size: 14px; | |
border-radius: 3px; | |
border: none; | |
padding: 4px 8px; | |
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); | |
} | |
`, "text"); | |
// set theme | |
settings.theme = ` | |
.sk_theme { | |
background: #212121; | |
color: #f0f0f0; | |
font-size: 16px; | |
} | |
.sk_theme tbody { | |
color: #fff; | |
} | |
.sk_theme input { | |
color: #d9dce0; | |
} | |
.sk_theme .url { | |
color: #2173c5; | |
} | |
.sk_theme .annotation { | |
color: #38f; | |
} | |
.sk_theme .omnibar_highlight { | |
color: #f0f0f0; | |
background: tomato; | |
} | |
.sk_theme ul>li:nth-child(odd) { | |
background: #323232; | |
} | |
.sk_theme ul>li.focused { | |
color: #212121; | |
background: #ccc; | |
}`; | |
// 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