cookies.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <p class="text-muted">
  2. {{- _('This is the list of cookies and their values SearXNG is storing on your computer.') }}
  3. <br>{{- _('With that list, you can assess SearXNG transparency.') -}}
  4. <br>{{- '' -}}
  5. </p>
  6. {% if cookies %}
  7. <table class="cookies">
  8. <tr>{{- '' -}}
  9. <th>{{ _('Cookie name') }}</th>{{- '' -}}
  10. <th>{{ _('Value') }}</th>{{- '' -}}
  11. </tr>
  12. {%- for cookie in cookies -%}
  13. <tr>{{- '' -}}
  14. <td>{{ cookie }}</td>{{- '' -}}
  15. <td>{{ cookies[cookie] }}</td>{{- '' -}}
  16. </tr>
  17. {%- endfor -%}
  18. </table>
  19. {%- else -%}
  20. {% include 'simple/messages/no_cookies.html' %}
  21. {% endif %}
  22. <h4>
  23. {{- _('Search URL of the currently saved preferences') -}}:{{- '' -}}
  24. </h4>{{- '' -}}
  25. <div class="selectable_url">{{- '' -}}
  26. <pre>
  27. {{- url_for('index', _external=True) -}}?preferences={{- preferences_url_params|e -}}
  28. {%- raw -%}&amp;q=%s{%- endraw -%}
  29. </pre>{{- '' -}}
  30. </div>{{- '' -}}
  31. <p class="small_font">
  32. {{- _('Note: specifying custom settings in the search URL can reduce privacy by leaking data to the clicked result sites.') -}}
  33. </p>
  34. <h4>
  35. {{- _('URL to restore your preferences in another browser') -}}:{{- '' -}}
  36. </h4>{{- '' -}}
  37. <div class="selectable_url">{{- '' -}}
  38. <pre>
  39. {{- url_for('preferences', _external=True) -}}?preferences={{- preferences_url_params|e -}}{{- '' -}}
  40. </pre>{{- '' -}}
  41. </div>{{- '' -}}
  42. <p class="small_font">
  43. {{- _('Specifying custom settings in the preferences URL can be used to sync preferences across devices.') -}}
  44. </p>
  45. <h4>
  46. {{- _('Copy preferences hash') -}}:{{- '' -}}
  47. </h4>{{- '' -}}
  48. <div id="copy-hash-container">{{- '' -}}
  49. <div class="selectable_url">{{- '' -}}
  50. <pre>
  51. {{- preferences_url_params|e }}
  52. </pre>{{- '' -}}
  53. </div>
  54. <button id="copy-hash" class="button" data-hash="{{- preferences_url_params|e -}}" data-copied-text="{{- _('Copied') -}}">{{- _('Copy') -}}</button>
  55. </div>
  56. <h4>
  57. {{- _('Insert copied preferences hash (without URL) to restore') -}}:{{- '' -}}
  58. </h4>{{- '' -}}
  59. <input type="text" id="pref-hash-input" name="preferences" placeholder="{{- _('Preferences hash') -}}">{{- '' -}}