URL Modifier for Search Engines

Modify URLs in search results of search engines

Version vom 21.01.2024. Aktuellste Version

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Autor
D.Rathburn
Bewertungen
0 0 0
Version
2.0.8
Erstellt am
01.01.2024
Letzte Aktualisierung
21.01.2024
Größe
23,3 KB
Lizenz
GPL-2.0-only
Wird angewandt auf

URL-Modifier-for-Search-Engines

English | 简体中文 | 繁體中文 | Español | Português | Pусский
日本語 | Français | Deutsch | 한국어 | Italiano | Türkçe

Introduction

This Tampermonkey script enhances your search engine usage by modifying URLs in the search result of search engines, redirecting to alternative sites. Allows a more customized and efficient browsing experience.

URL modification uses Regular Expression.

Search result without URL modification
searxng_search_result_example-with_modification
Search result after URL modification
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.

Built-in Redirection

You can add custom redirection rules into the script yourself.

Other alternatives privacy friendly frontends, see:


TODO

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

Wiki

urlModificationRules

URL modification rules in regular expression

Variable Description
matchRegex regular expression for matching original URLs
replaceWith regular expression for replacement

selectorRules

Selector rules for the DOM elements needs updating for search engine results

Variable Description
selector selector for DOM element
updateText flag for whether to update the text or href value of the element
childSelector selector for child DOM element under parent element
updateChildText flag for whether to update the inner text of the child element
containProtocol flag for whether to contain protocol (e.g. https://) in the domain
displayMethod required, URL display method
method 1: breadcrumb format
method 2: full URL
method 3: full URL without protocol
multiElementsForUrlDisplay flag for whether the displayed URL is separated into multiple DOM elements

searchEngines

User-defined list of search engine domains

Variable Description
hosts search engine's domain
resultContainerSelectors optional, set search result container DOM, to narrow down the range of dynamic observation