TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Tampermonkey script that modify search result URLs for redirection

1 pointsby miohatover 1 year ago
Recently, I'm playing with javascript and complete a tampermonkey script with the help of ChatGPT. I got inspiration from the browser plugin 'Redirector'. It's just a personal hobby mini-project which might contains some glitches. Currently, the script supports Google, Yandex, SearXNG, StartPage, Brave, DuckDuckGo, Qwant, Ecosia, Swisscows, Metager, 4get, Stract, eTools, Mojeek, Yep, Torry. And there're a bunch of built-in regex redirection rules in the script. I'm looking forward for advices on improving the script, regarding performance, code structure etc.

1 comment

miohatover 1 year ago
I&#x27;ve add support for a bunch of other search engines.<p>Currently, the script supports 42 search engines in total:<p>Google, Yahoo, Yahoo Japan, Yandex, SearXNG, StartPage, Brave, DuckDuckGo, Ghostery, Presearch, Metager, 4get, LibreY, Stract, eTools, Mojeek, Yep, Torry, Qwant, Ecosia, Oscobo, GOOD, All the internet, AOL, Info, OceanHero, Swisscows, Lilo, Entireweb, GMX, YouCare, Murena Spot, Nona, Exalead, Seznam, Gibiru, Lukol, GiveWater, Excite, WebCrawler, MetaCrawler, Dogpile<p>The script also removes Yahoo redirection URL and extract the real URL of search results.<p>The script can not only used for redirection to privacy-oriented alternative frontends, it can be used for any URL modification tasks.<p>The advantage of this script is this can finish URL modification seamlessly after every search, and change the displayed URL correspondingly. It&#x27;s much more intuitive and convenient.<p>You can find out all the URL modification rules (RegEx) I used here: <a href="https:&#x2F;&#x2F;github.com&#x2F;domeniczz&#x2F;URL-Modifier-for-Search-Engines&#x2F;blob&#x2F;master&#x2F;regexs.txt">https:&#x2F;&#x2F;github.com&#x2F;domeniczz&#x2F;URL-Modifier-for-Search-Engines...</a>