Skip to content

Commit 4c0fc80

Browse files
committed
Update
1 parent d811cb9 commit 4c0fc80

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

searxng.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
import { detectAll } from '{{ site.url }}/assets/js/vendor/tinyld.min.js';
1818

1919
const MIN_MONTH_UPTIME = 95;
20-
const FALLBACKS = ['paulgo.io', 'search.im-in.space', 'search.ononoki.org', 'search.undertale.uk', 'searx.bndkt.io', 'searx.oloke.xyz'];
20+
const FALLBACKS = ['baresearch.org', 'copp.gg', 'darmarit.org', 'etsi.me', 'fairsuch.net', 'find.xenorio.xyz', 'kantan.cat', 'metacat.online', 'northboot.xyz', 'o5.gg', 'ooglester.com', 'paulgo.io', 'priv.au', 's.mble.dk', 'search.2b9t.xyz', 'search.anoni.net', 'search.canine.tools', 'search.charliewhiskey.net', 'search.einfachzocken.eu', 'search.ethibox.fr', 'search.femboy.ad', 'search.hbubli.cc', 'search.iguru.gr', 'search.im-in.space', 'search.indst.eu', 'search.inetol.net', 'search.internetsucks.net', 'search.ipsys.bf', 'search.ipv6s.net', 'search.leptons.xyz', 'search.mdosch.de', 'search.mycotrip.tech', 'search.nerdvpn.de', 'search.oh64.moe', 'search.ononoki.org', 'search.pollorebozado.com', 'search.rhscz.eu', 'search.rowie.at', 'search.system51.co.uk', 'search.undertale.uk', 'search.url4irl.com', 'searx.bndkt.io', 'searx.dresden.network', 'searx.foobar.vip', 'searx.foss.family', 'searx.namejeff.xyz', 'searx.oloke.xyz', 'searx.ox2.fr', 'searx.party', 'searx.perennialte.ch', 'searx.rhscz.eu', 'searx.ro', 'searx.sev.monster', 'searx.stream', 'searx.tiekoetter.com', 'searx.tuxcloud.net', 'searx.zhenyapav.com', 'searxng.deliberate.world', 'searxng.f24o.zip', 'searxng.mcgee.red', 'searxng.shreven.org', 'searxng.website', 'seek.fyi', 'sx.catgirl.cloud'];
2121

22-
const params = new URLSearchParams(window.location.search);
22+
const params = new URLSearchParams(window.location.href.split('#')[1] || '');
2323

2424
const loadInstances = async () => {
2525
const fallbacks = FALLBACKS.map(i => `https://${i}/`);
@@ -45,7 +45,7 @@
4545
} else {
4646
if (i.network_type !== 'normal' || url.protocol !== 'https:' || i.tls.grade !== 'A+') return false;
4747
}
48-
return i.uptime.uptimeMonth >= MIN_MONTH_UPTIME && i.uptime.uptimeDay === 100 && !i.analytics && i.engines.duckduckgo?.error_rate < 2 && i.engines.google?.error_rate < 2;
48+
return i.uptime.uptimeMonth >= MIN_MONTH_UPTIME && i.uptime.uptimeDay === 100 && !i.analytics;
4949
} catch(e) {
5050
return false;
5151
}
@@ -97,7 +97,7 @@
9797
redirect(targetUrl);
9898
} else {
9999
const pageUrl = window.location.origin + window.location.pathname;
100-
document.body.innerHTML = `<p>Redirect to <a rel="noopener noreferrer nofollow" href="${pageUrl}?q=">random SearXNG</a> instance</p><p>This page accepts SearXNG <a target="_blank" href="https://docs.searxng.org/dev/search_api.html">GET parameters</a> and optional parameters:<p><p><ul><li><code>fast=1</code> for hardcoded instances</li><li><code>allowed_languages=en,fr,ru</code> for automatic language filter derived from the query</li></ul></p><p>Example for browser search engine settings (<code>about:preferences#search</code> or <code>chrome://settings/search</code>): <code>${pageUrl}?q=%s&fast=1&image_proxy=True&categories=images</code></p><p>Use this page locally for the best performance: <code>wget ${pageUrl} -O searxng.html</code></p><p>Additionally can be combined with the Violentmonkey <a target="_blank" href="https://userscripts.codonaft.com/searxng-redirect-on-failure.js">userscript</a> to handle search errors</p>`;
100+
document.body.innerHTML = `<p>Redirect to <a rel="noopener noreferrer nofollow" href="${pageUrl}#q=" onclick="window.location.replace('${targetUrl}')">random SearXNG</a> instance</p><p>This page accepts SearXNG <a target="_blank" href="https://docs.searxng.org/dev/search_api.html">GET parameters</a> (as an anchor for privacy) and optional parameters:<p><p><ul><li><code>fast=1</code> for hardcoded instances</li><li><code>allowed_languages=en,fr,ru</code> for automatic language filter derived from the query</li></ul></p><p>Example for browser search engine settings (<code>about:preferences#search</code> or <code>chrome://settings/search</code>): <code>${pageUrl}#q=%s&fast=1&image_proxy=True&categories=images</code></p><p>For local use: <code>wget ${pageUrl} -O searxng.html</code></p><p>Additionally can be combined with the Violentmonkey <a target="_blank" href="https://userscripts.codonaft.com/searxng-redirect-on-failure.js">userscript</a> to handle search errors</p>`;
101101

102102
const input = document.createElement('input');
103103
input.name = 'q';

0 commit comments

Comments
 (0)