Skip to content

Instantly share code, notes, and snippets.

@Delnegend
Created June 11, 2026 13:35
Show Gist options
  • Select an option

  • Save Delnegend/20f4349d9e714229c670620959a020b4 to your computer and use it in GitHub Desktop.

Select an option

Save Delnegend/20f4349d9e714229c670620959a020b4 to your computer and use it in GitHub Desktop.
Always-enabled Kagi Quick Answer
// ==UserScript==
// @name Kagi Search URL Modifier
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Always-enabled Quick Answer
// @author You
// @match https://kagi.com/search*
// @grant none
// @run-at document-start
// ==/UserScript==
(function() {
'use strict';
// Get the current URL
const currentUrl = window.location.href;
// Check if URL starts with https://kagi.com/search and doesn't already end with %3F
if (currentUrl.startsWith('https://kagi.com/search') && !currentUrl.endsWith('%3F')) {
// Append %3F to the end and redirect
const newUrl = currentUrl + '%3F';
window.location.replace(newUrl);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment