URL Modifier for Search Engines

Modify URLs in search results of search engines

От 11.01.2024. Виж последната версия.

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey, Greasemonkey или Violentmonkey.

За да инсталирате този скрипт, трябва да инсталирате разширение, като например Tampermonkey .

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey или Violentmonkey.

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey или Userscripts.

За да инсталирате скрипта, трябва да инсталирате разширение като Tampermonkey.

За да инсталирате този скрипт, трябва да имате инсталиран скриптов мениджър.

(Вече имам скриптов мениджър, искам да го инсталирам!)

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

(Вече имам инсталиран мениджър на стиловете, искам да го инсталирам!)

Автор
D.Rathburn
Рейтинг
0 0 0
Версия
2.0.1
Създаден
01.01.2024
Обновен
11.01.2024
Размер
20 КБ
Лиценз
GPL-2.0-only
Работи на

URL-Modifier-for-Search-Engines

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

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

Introduction

A Tampermonkey script, install from GreasyFork: URL Modifier for Search Engines.

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 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 LibRedirect.


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
hasSubResults flag for whether the search engine can have sub-results
subResultSelector selector for sub-results

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