URL Modifier for Search Engines

Modify (Redirect) URL links in search engines results to alternative frontends or for other purposes

Versión del día 14/2/2024. Echa un vistazo a la versión más reciente.

Tendrás que instalar una extensión para tu navegador como Tampermonkey, Greasemonkey o Violentmonkey si quieres utilizar este script.

Necesitarás instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Userscripts para instalar este script.

Necesitará instalar una extensión como Tampermonkey para instalar este script.

Necesitarás instalar una extensión para administrar scripts de usuario si quieres instalar este script.

(Ya tengo un administrador de scripts de usuario, déjame instalarlo)

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

(Ya tengo un administrador de estilos de usuario, déjame instalarlo)

Autor
D.Rathburn
Calificaciones
0 0 0
Versión
2.5.5
Creado
1/1/2024
Actualizado
14/2/2024
Tamaño
86,8 KB
Licencia
GPL-2.0-only
Funciona en

URL-Modifier-for-Search-Engine-Results

English | 简体中文 | 繁體中文 | Español | Português | Pусский | 日本語 | Français
Deutsch | Nederlands | Svenska | Suomi | Dansk | 한국어 | Italiano | Český | Ελληνικά
Polski | Türkçe | Român | Magyar | Norsk | Українська | Indonesia | Việt | हिंदी | فارسی

Introduction

Please give me a Star on GitHub or Codeberg if you found my script useful! Thank you! 😘

This Tampermonkey script enhances your search engine usage by modifying URLs in the search result of search engines, redirecting to alternative sites, allowing for a more customized and efficient browsing experience. You can also add you custom URL modification rule to the script and are welcomed to commit your rules to this script to make it much more useful.

URL modification uses Regular Expression.

Search result without URL modification:
img:searxng_search_result_example-with_modification
Search result after URL modification:
img:searxng_search_result_example-with_modification

Search Engine Support

You can manually add DOM selector in the code to support other search engines.

Can't support Bing, because it only provide intermediate links.

For search engines like Yahoo, Lycos, AlohaFind, the script support getting rid of redirection links and extract the real URL. For example, the Yahoo redirection link is "https://r.search.yahoo.com/...". If you do not use these search engines, you can choose to use URL modification rules without redirection link compatibility. BTW, you can see all built-in RegEx URL modification rules here.

Just a side note, Kagi is a search engine with built-in URL redirection functionality, worth trying out. I am a user of Kagi, and I am very satisfied with this product, so I'm giving them a shout-out here.

Find more search engines:

Built-in Redirection

You can add custom redirection rules into the script yourself.

Other alternatives privacy friendly frontends, see:

Service providers:

For easy usage, we could use Farside that automatically redirect to working instances of privacy-oriented alternative frontends instead of writing regular expression rules on our own.

However, this method does not support finer-grained control over matched URLs and it is really slow since a redirection by farside is needed.

FYI, wiki for setting up farside in Redirector: https://github.com/benbusby/farside/wiki/Browser-Extension

  • Include pattern example: ^(?:https?:\/\/)(?:[\w-]+\.|)((?:imdb|imgur|instagram|medium|odysee|quora|reddit|tiktok|twitter|wikipedia|youtube)\.(?:[a-z]+).*)

  • Redirect to: https://farside.link/$1

  • Add to script:

  const urlModificationRules = [
      {
          matchRegex: new RegExp(/^(?:https?:\/\/)(?:[\w-]+\.|)((?:imdb|imgur|instagram|medium|odysee|quora|reddit|tiktok|twitter|wikipedia|youtube)\.(?:[a-z]+).*)/),
          replaceWith: 'https://farside.link/$1'
      },
      // ...
  ];

TODO

  1. Add supports for more search engines.
  2. Refactor the code to make it easier to read and modify.

Wiki

https://github.com/domeniczz/URL-Modifier-for-Search-Engines/wiki