Skip to content

Instantly share code, notes, and snippets.

@abnrk
Created January 19, 2026 14:26
Show Gist options
  • Select an option

  • Save abnrk/71347803dde0336125a3f63d65b60fcd to your computer and use it in GitHub Desktop.

Select an option

Save abnrk/71347803dde0336125a3f63d65b60fcd to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Yahoo Image Search Redirect
// @namespace Violentmonkey Scripts
// @match https://*.images.search.yahoo.com/*
// @grant none
// @version 1.0
// @author Adudo
// @description Redirects Yahoo image search to a different search engine
// @run-at document-start
// @grant GM_getValue
// @grant GM_setValue
// ==/UserScript==
var params = new URLSearchParams(location.search);
var query = params.get("p");
var searchEngine = GM_getValue("searchEngine","bing");
var searchUrl = {
"google": `https://www.google.com/search?q=${query}&udm=2`,
"bing": `https://www.bing.com/images/search?q=${query}`,
"duckduckgo": `https://duckduckgo.com/?q=${query}&ia=images&iax=images`,
"qwant": `https://www.qwant.com/?q=${query}&t=images`,
"brave": `https://search.brave.com/images?q=${query}`
}
location.href = searchUrl[searchEngine];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment