Skip to content

Instantly share code, notes, and snippets.

@kjuq
Last active January 16, 2024 14:01
Show Gist options
  • Select an option

  • Save kjuq/23ce64fc99c7803ea79eea7117a79fe5 to your computer and use it in GitHub Desktop.

Select an option

Save kjuq/23ce64fc99c7803ea79eea7117a79fe5 to your computer and use it in GitHub Desktop.
api.Hints.setCharacters("ntesiroalpufywmdhg");
api.map("<Ctrl-u>", "u");
api.map("<Ctrl-d>", "d");
api.map("<Meta-Backspace>", "u");
api.map("<Delete>", "d");
api.map("<Tab>", "<ctrl-i>");
// "H": Open opened URL in current tab, "h": Scroll left, "S": Go back in history
api.map("e", "H"); api.map("H", "h"); api.map("h", "S"); api.unmap("S");
// "l": Scroll right, "D": Go forward in history
api.map("L", "l"); api.map("l", "D"); api.unmap("D");
api.map("<ArrowRight>", "P"); api.unmap("P"); // P: Scroll full page down
api.map("<ArrowLeft>", "U"); api.unmap("U"); // U: Scroll full page up
api.map("g^", "g0"); api.unmap("g0"); // "g0": Go to the first tab
api.map("gT", "E"); api.unmap("E"); // "E": Go one tab left
api.unmap("gt"); api.map("gt", "R"); api.unmap("R"); // "gt": Choose a tab, "R": Go one tab right
settings.hintAlign = "left";
settings.tabsMRUOrder = false;
// 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;
}`;
// vim: set ft=javascript :
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment