Created
January 19, 2026 14:26
-
-
Save abnrk/71347803dde0336125a3f63d65b60fcd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // ==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