mirror of
https://github.com/searxng/searxng.git
synced 2025-07-13 00:09:18 +02:00
parent
92c68fe636
commit
f83b64270c
5 changed files with 164 additions and 130 deletions
|
@ -19,7 +19,9 @@ import re
|
|||
name = gettext('Self Informations')
|
||||
description = gettext('Displays your IP if the query is "ip" and your user agent if the query contains "user agent".')
|
||||
default_on = True
|
||||
|
||||
preference_section = 'query'
|
||||
query_keywords = ['user-agent']
|
||||
query_examples = ''
|
||||
|
||||
# Self User Agent regex
|
||||
p = re.compile('.*user[ -]agent.*', re.IGNORECASE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue