mirror of
https://github.com/searxng/searxng.git
synced 2025-07-31 00:52:22 +02:00
[enh] add simple theme (WIP)
This commit is contained in:
parent
4f6586d808
commit
10a24bdc2c
85 changed files with 11902 additions and 6 deletions
|
@ -7,6 +7,7 @@ regex = re.compile(r'10\.\d{4,9}/[^\s]+')
|
|||
name = gettext('DOAI rewrite')
|
||||
description = gettext('Avoid paywalls by redirecting to open-access versions of publications when available')
|
||||
default_on = False
|
||||
preference_section = 'privacy'
|
||||
|
||||
|
||||
def extract_doi(url):
|
||||
|
|
|
@ -31,6 +31,7 @@ if sys.version_info[0] == 3:
|
|||
name = "HTTPS rewrite"
|
||||
description = gettext('Rewrite HTTP links to HTTPS if possible')
|
||||
default_on = True
|
||||
preference_section = 'privacy'
|
||||
|
||||
if 'SEARX_HTTPS_REWRITE_PATH' in environ:
|
||||
rules_path = environ['SEARX_rules_path']
|
||||
|
|
|
@ -3,6 +3,7 @@ from flask_babel import gettext
|
|||
name = gettext('Infinite scroll')
|
||||
description = gettext('Automatically load next page when scrolling to bottom of current page')
|
||||
default_on = False
|
||||
preference_section = 'ui'
|
||||
|
||||
js_dependencies = ('plugins/js/infinite_scroll.js',)
|
||||
css_dependencies = ('plugins/css/infinite_scroll.css',)
|
||||
|
|
|
@ -19,5 +19,6 @@ name = gettext('Search on category select')
|
|||
description = gettext('Perform search immediately if a category selected. '
|
||||
'Disable to select multiple categories. (JavaScript required)')
|
||||
default_on = True
|
||||
preference_section = 'ui'
|
||||
|
||||
js_dependencies = ('plugins/js/search_on_category_select.js',)
|
||||
|
|
|
@ -26,6 +26,7 @@ regexes = {re.compile(r'utm_[^&]+&?'),
|
|||
name = gettext('Tracker URL remover')
|
||||
description = gettext('Remove trackers arguments from the returned URL')
|
||||
default_on = True
|
||||
preference_section = 'privacy'
|
||||
|
||||
|
||||
def on_result(request, search, result):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue