Skip to content

Instantly share code, notes, and snippets.

@azu
Created February 29, 2024 04:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azu/2f0d47d4d800fb02fda0ba64c2f076dd to your computer and use it in GitHub Desktop.
Save azu/2f0d47d4d800fb02fda0ba64c2f076dd to your computer and use it in GitHub Desktop.
Surfingkeys shortcut: kagi.com to google
api.mapkey("g", "Kagi to Google", function () {
const isKagi = location.href.startsWith("https://kagi.com/search?");
if (isKagi) {
location.href = `https://www.google.com/search?q=${(new URL(location.href)).searchParams.get("q")}`;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment