diff options
author | cloudflere <cloudflere@noreply.codeberg.org> | 2019-07-14 16:52:17 +0200 |
---|---|---|
committer | cloudflere <cloudflere@noreply.codeberg.org> | 2019-07-14 16:52:17 +0200 |
commit | a3a4f1e6440f51fefeedd9e9ae192d0b0018b65c (patch) | |
tree | ec45a83bef7d61ae6d2bdffa79f63197d4926212 /addon_firefox/ismitmlink/cs.js | |
parent | 589f65cd47c8ef1101be7753b9c2d799998606ac (diff) | |
download | cloudflare-tor-a3a4f1e6440f51fefeedd9e9ae192d0b0018b65c.tar cloudflare-tor-a3a4f1e6440f51fefeedd9e9ae192d0b0018b65c.tar.gz cloudflare-tor-a3a4f1e6440f51fefeedd9e9ae192d0b0018b65c.tar.lz cloudflare-tor-a3a4f1e6440f51fefeedd9e9ae192d0b0018b65c.tar.xz cloudflare-tor-a3a4f1e6440f51fefeedd9e9ae192d0b0018b65c.zip |
Upload files to 'addon_firefox/ismitmlink'
Diffstat (limited to 'addon_firefox/ismitmlink/cs.js')
-rw-r--r-- | addon_firefox/ismitmlink/cs.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addon_firefox/ismitmlink/cs.js b/addon_firefox/ismitmlink/cs.js index e649b1e9..1471aa08 100644 --- a/addon_firefox/ismitmlink/cs.js +++ b/addon_firefox/ismitmlink/cs.js @@ -1,4 +1,4 @@ -if (document.body && !['searxes.nmqnkngye4ct7bgss4bmv5ca3wpa55yugvxen5kz2bbq67lwy6ps54yd.onion', 'searxes.eu.org'].includes(location.hostname)) { +if (document.body && !['searxes.nmqnkngye4ct7bgss4bmv5ca3wpa55yugvxen5kz2bbq67lwy6ps54yd.onion', 'searxes.eu.org', 'api.searxes.eu.org'].includes(location.hostname)) { let cs = (function () { let s = document.createElement('style'); document.head.appendChild(s); @@ -10,7 +10,7 @@ if (document.body && !['searxes.nmqnkngye4ct7bgss4bmv5ca3wpa55yugvxen5kz2bbq67lw cs.insertRule("a[data-mitm]:hover::before{content:'[\\26A1]'}", 2); cs.insertRule("a[data-mitm]:hover{color:red !important}", 3); } - let asked = ['searxes.nmqnkngye4ct7bgss4bmv5ca3wpa55yugvxen5kz2bbq67lwy6ps54yd.onion', 'searxes.eu.org', 'addons.mozilla.org', 'addons.thunderbird.net', 'web.archive.org']; + let asked = ['searxes.nmqnkngye4ct7bgss4bmv5ca3wpa55yugvxen5kz2bbq67lwy6ps54yd.onion', 'searxes.eu.org', 'api.searxes.eu.org', 'addons.mozilla.org', 'addons.thunderbird.net', 'web.archive.org']; document.querySelectorAll("a[href^='http://']:not([data-mitm]),a[href^='https://']:not([data-mitm]),a[href^='//']:not([data-mitm])").forEach(a => { let aF = (new URL(a.href)).hostname; if (!/^(.*)\.(danwin1210\.me|onion|i2p|invalid|test|local|localhost|([0-9]{1,3})|bbs|chan|cyb|dyn|geek|gopher|indy|libre|neo|null|o|oss|oz|parody|pirate|bit|lib|coin|emc|bazar|fur)$/.test(aF) && !asked.includes(aF)) { |