From 0d4d58f794fea3a4439f4ed4689e52b8031e5246 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Deparis?= Date: Sun, 6 Jan 2019 18:38:51 +0100 Subject: [PATCH] [enh] Add preference section to two upstream plugins for simple theme integration --- searx/plugins/open_results_on_new_tab.py | 1 + searx/plugins/vim_hotkeys.py | 1 + 2 files changed, 2 insertions(+) diff --git a/searx/plugins/open_results_on_new_tab.py b/searx/plugins/open_results_on_new_tab.py index ae27ea277..0f06f5a56 100644 --- a/searx/plugins/open_results_on_new_tab.py +++ b/searx/plugins/open_results_on_new_tab.py @@ -20,5 +20,6 @@ description = gettext('Results are opened in the same window by default. ' 'This plugin overwrites the default behaviour to open links on new tabs/windows. ' '(JavaScript required)') default_on = False +preference_section = 'ui' js_dependencies = ('plugins/js/open_results_on_new_tab.js',) diff --git a/searx/plugins/vim_hotkeys.py b/searx/plugins/vim_hotkeys.py index 8f06f1343..47b830c79 100644 --- a/searx/plugins/vim_hotkeys.py +++ b/searx/plugins/vim_hotkeys.py @@ -5,6 +5,7 @@ description = gettext('Navigate search results with Vim-like hotkeys ' '(JavaScript required). ' 'Press "h" key on main or result page to get help.') default_on = False +preference_section = 'ui' js_dependencies = ('plugins/js/vim_hotkeys.js',) css_dependencies = ('plugins/css/vim_hotkeys.css',)