From 80fb77476fad4b229418c530f3ffda67f357a15a Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Sat, 6 Nov 2021 12:26:48 +0100 Subject: [mod] new preference: query_in_title * disable by default * settings.yml: ui.query_in_title * in /preferences: privacy tab when enabled, the result page's title contains the user query. previously: * oscar theme: the query was always included * simple theme: the query was included with the GET method --- searx/preferences.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'searx/preferences.py') diff --git a/searx/preferences.py b/searx/preferences.py index 5ff89c969..8cfa5404b 100644 --- a/searx/preferences.py +++ b/searx/preferences.py @@ -405,6 +405,17 @@ class Preferences: 'on': True, } ), + 'query_in_title': MapSetting( + settings['ui']['query_in_title'], + is_locked('query_in_title'), + map={ + '': settings['ui']['query_in_title'], + '0': False, + '1': True, + 'True': True, + 'False': False + } + ), } self.engines = EnginesSetting('engines', choices=engines) -- cgit v1.2.3