on master help sign in
Revert "[enh] new plugin to open results on new browser tabs"

This reverts commit ab6a7601cbdbdd93fa07ec6405bc3167f392b792. Closes #2037

commit74013c212aa8398bd363d220eda0bc9ff97ae6a1 authorNoémi Ványi <sitbackandwait@gmail.com> dateWed 29 Jul 2020, 22:09 (6 years ago) parentfc5d1c6
3 files changed−30
searx/plugins/__init__.py−2 searx/plugins/open_results_on_new_tab.py−25 searx/static/plugins/js/open_results_on_new_tab.js−3
searx/plugins/__init__.py−2
@@ -33,7 +33,6 @@ logger = logger.getChild('plugins')
3333from searx.plugins import (oa_doi_rewrite,
3434 https_rewrite,
3535 infinite_scroll,
36− open_results_on_new_tab,
3736 self_info,
3837 search_on_category_select,
3938 tracker_url_remover,
@@ -169,7 +168,6 @@ plugins = PluginStore()
169168plugins.register(oa_doi_rewrite)
170169plugins.register(https_rewrite)
171170plugins.register(infinite_scroll)
172−plugins.register(open_results_on_new_tab)
173171plugins.register(self_info)
174172plugins.register(search_on_category_select)
175173plugins.register(tracker_url_remover)
searx/plugins/open_results_on_new_tab.pydeleted−25
@@ -1,25 +0,0 @@
1−'''
2−searx is free software: you can redistribute it and/or modify
3−it under the terms of the GNU Affero General Public License as published by
4−the Free Software Foundation, either version 3 of the License, or
5−(at your option) any later version.
6−
7−searx is distributed in the hope that it will be useful,
8−but WITHOUT ANY WARRANTY; without even the implied warranty of
9−MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10−GNU Affero General Public License for more details.
11−
12−You should have received a copy of the GNU Affero General Public License
13−along with searx. If not, see < http://www.gnu.org/licenses/ >.
14−
15−(C) 2016 by Adam Tauber, <asciimoo@gmail.com>
16−'''
17−from flask_babel import gettext
18−name = gettext('Open result links on new browser tabs')
19−description = gettext('Results are opened in the same window by default. '
20− 'This plugin overwrites the default behaviour to open links on new tabs/windows. '
21− '(JavaScript required)')
22−default_on = False
23−preference_section = 'ui'
24−
25−js_dependencies = ('plugins/js/open_results_on_new_tab.js',)
searx/static/plugins/js/open_results_on_new_tab.jsdeleted−3
@@ -1,3 +0,0 @@
1−$(document).ready(function() {
2− $('.result_header > a').attr('target', '_blank');
3−});