[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
This commit is contained in:
Alexandre Flament 2021-11-06 12:26:48 +01:00
parent 90acb342d3
commit 80fb77476f
8 changed files with 42 additions and 2 deletions

View file

@ -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)