on master help sign in
Revert "[enh] new plugin to open results on new browser tabs"
74013c2Noémi Ványi
searx/plugins/__init__.py−2
@@ -33,7 +33,6 @@ logger = logger.getChild('plugins')
33from searx.plugins import (oa_doi_rewrite,
33from searx.plugins import (oa_doi_rewrite,
34 https_rewrite,
34 https_rewrite,
35 infinite_scroll,
35 infinite_scroll,
36− open_results_on_new_tab,
37 self_info,
36 self_info,
38 search_on_category_select,
37 search_on_category_select,
39 tracker_url_remover,
38 tracker_url_remover,
@@ -169,7 +168,6 @@ plugins = PluginStore()
169plugins.register(oa_doi_rewrite)
168plugins.register(oa_doi_rewrite)
170plugins.register(https_rewrite)
169plugins.register(https_rewrite)
171plugins.register(infinite_scroll)
170plugins.register(infinite_scroll)
172−plugins.register(open_results_on_new_tab)
173plugins.register(self_info)
171plugins.register(self_info)
174plugins.register(search_on_category_select)
172plugins.register(search_on_category_select)
175plugins.register(tracker_url_remover)
173plugins.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−});