Created
February 29, 2024 04:10
-
-
Save azu/2f0d47d4d800fb02fda0ba64c2f076dd to your computer and use it in GitHub Desktop.
Surfingkeys shortcut: kagi.com to google
This file contains 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
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