Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Home-row only hints
- Hints.characters = 'asdghjkl';
- // Settings
- settings.focusFirstCandidate = true;
- settings.digitForRepeat = true;
- settings.tabsThreshold = 0;
- settings.omnibarSuggestionTimeout = 100;
- settings.scrollStepSize = 150;
- settings.hintAlign = "left";
- settings.scrollFriction = 0;
- // Keys
- // Easy tab management
- mapkey('q', 'Select previous tab', function() {
- RUNTIME('previousTab');
- });
- mapkey('w', 'Select next tab', function() {
- RUNTIME('nextTab');
- });
- mapkey('Q', 'Move current tab to left', function() {
- RUNTIME('moveTab', {
- step: -1
- });
- });
- mapkey('W', 'Move current tab to right', function() {
- RUNTIME('moveTab', {
- step: 1
- });
- });
- map('a', ':feedkeys 99E', 0, "Go to the first tab");
- map('s', ':feedkeys 99R', 0, "Go to the last tab");
- mapkey('A', 'Move current tab to far left', function() {
- RUNTIME('moveTab', {
- step: -100
- });
- });
- mapkey('S', 'Move current tab to far right', function() {
- RUNTIME('moveTab', {
- step: 100
- });
- });
- mapkey('x', 'Close current tab', function() {
- RUNTIME("closeTab");
- });
- mapkey('u', 'Restore closed tab', function() {
- RUNTIME("openLast");
- });
- mapkey('l', 'Choose a tab', function() {
- Front.chooseTab();
- });
- mapkey('p', 'pin/unpin current tab', function() {
- RUNTIME("togglePinTab");
- });
- mapkey('m', 'mute/unmute current tab', function() {
- RUNTIME("muteTab");
- });
- // Opening links
- mapkey('t', 'Open a URL', function() {
- RUNTIME("newTab");
- });
- mapkey('b', 'Open a link in new window', function() {
- Hints.create("a:visible", function(link, event) {
- window.open(link.getAttribute('href'));
- })
- });
- mapkey('c', 'Go back in history', function() {
- history.go(-1);
- }, {repeatIgnore: true});
- mapkey('v', 'Go forward in history', function() {
- history.go(1);
- }, {repeatIgnore: true});
- mapkey('b', 'Open a link in new tab', function() {
- Hints.create("a:visible", Hints.dispatchMouseClick, {tabbed: true});
- });
- // Zooming
- mapkey('=', 'Reset zoom level', function() {
- RUNTIME('setZoom', {
- zoomFactor: 0
- });
- });
- mapkey('+', 'Zoom in', function() {
- RUNTIME('setZoom', {
- zoomFactor: 0.1
- });
- });
- mapkey('-', 'Zoom out', function() {
- RUNTIME('setZoom', {
- zoomFactor: -0.1
- });
- });
- // Theme settings
- 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.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement