You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
searxng/searx/plugins
Markus Heiser b9a2e8b387 [mod] hostname_replace: replace hostnames in result's data_src param
To test you need to redirect embeded videos (e.g.) from youtube to a invidios
instance.  Search for videos using engine `!youtube lebowski`.  The result URLs
and the embeded videos should link to the invidios instance.

Here is an example of such a `hostname_replace` configuration::

    hostname_replace:

      # youtube --> Invidious

      '(.*\.)?youtube-nocookie\.com': 'invidio.xamh.de'
      '(.*\.)?youtube\.com$': 'invidio.xamh.de'
      '(.*\.)?invidious\.snopyta\.org$': 'invidio.xamh.de'
      '(.*\.)?vid\.puffyan\.us': 'invidio.xamh.de'
      '(.*\.)?invidious\.kavin\.rocks$': 'invidio.xamh.de'
      '(.*\.)?inv\.riverside\.rocks$': 'invidio.xamh.de'

Closes: https://github.com/searxng/searxng/issues/873
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2 years ago
..
__init__.py [typing] add optional attrs to Plugin 2 years ago
ahmia_filter.py plugins: refactor initialization 3 years ago
hash_plugin.py [mod] oscar theme /preferences: reorganize the preferences 3 years ago
hostname_replace.py [mod] hostname_replace: replace hostnames in result's data_src param 2 years ago
infinite_scroll.py [enh] add simple theme (WIP) 7 years ago
limiter.py plugin limiter: check only /image_proxy and /search 2 years ago
oa_doi_rewrite.py [format.python] initial formatting of the python code 3 years ago
search_on_category_select.py [format.python] initial formatting of the python code 3 years ago
self_info.py [format.python] initial formatting of the python code 3 years ago
tracker_url_remover.py [format.python] initial formatting of the python code 3 years ago
vim_hotkeys.py [format.python] initial formatting of the python code 3 years ago