From 0f43b39eac44d548143b3944a2bfa26c039b2068 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Fri, 10 Sep 2021 12:43:33 +0200 Subject: [enh] add hostname_replace plugin * backport of https://github.com/searx/searx/pull/2724 * allow to remove result if the replacement is the boolean value false --- searx/settings.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'searx/settings.yml') diff --git a/searx/settings.yml b/searx/settings.yml index e5eb9dd65..8e2aeb5e9 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -150,7 +150,17 @@ outgoing: # # enabled_plugins: # - "HTTPS rewrite" -# - ... +# - "Hostname replace" # see configuration below + +# "Hostname replace" plugin configuration example: +# hostname_replace: +# '(.*\.)?youtube\.com$': 'invidious.example.com' +# '(.*\.)?youtu\.be$': 'invidious.example.com' +# '(.*\.)?youtube-noocookie\.com$': 'yotter.example.com' +# '(.*\.)?reddit\.com$': 'teddit.example.com' +# '(.*\.)?redd\.it$': 'teddit.example.com' +# '(www\.)?twitter\.com$': 'nitter.example.com' +# 'spam\.example\.com': false # remove results from spam.example.com checker: # disable checker when in debug mode -- cgit v1.2.3