diff --git a/searx/templates/courgette/preferences.html b/searx/templates/courgette/preferences.html index 2abfafb1..c25385bc 100644 --- a/searx/templates/courgette/preferences.html +++ b/searx/templates/courgette/preferences.html @@ -125,7 +125,8 @@

+
{{ _('Reset defaults') }}
{{ _('back') }}
- + {% endblock %} diff --git a/searx/templates/default/preferences.html b/searx/templates/default/preferences.html index e03c18e3..ae3f058e 100644 --- a/searx/templates/default/preferences.html +++ b/searx/templates/default/preferences.html @@ -113,7 +113,8 @@

+
{{ _('Reset defaults') }}
{{ _('back') }}
- + {% endblock %} diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html index 65b7f4b4..acb89741 100644 --- a/searx/templates/oscar/preferences.html +++ b/searx/templates/oscar/preferences.html @@ -184,6 +184,7 @@
{{ _('back') }}
+
{{ _('Reset defaults') }}
{% endblock %} diff --git a/searx/webapp.py b/searx/webapp.py index 6a538712..eca68d27 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -715,6 +715,14 @@ def favicon(): mimetype='image/vnd.microsoft.icon') +@app.route('/clear_cookies') +def clear_cookies(): + resp = make_response(redirect(url_for('index'))) + for cookie_name in request.cookies: + resp.delete_cookie(cookie_name) + return resp + + def run(): app.run( debug=settings['server']['debug'],