0
0
mirror of https://codeberg.org/crimeflare/cloudflare-tor synced 2024-11-10 03:12:49 +00:00

Upload files to 'addon_firefox/ismitmlink'

This commit is contained in:
cloudflere 2019-07-14 16:52:17 +02:00
parent 589f65cd47
commit a3a4f1e644
2 changed files with 4 additions and 4 deletions

View File

@ -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)) {

View File

@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Are links vulnerable to MITM attack?",
"description": "Scan FQDN using Searxes' API",
"version": "1.0.9",
"version": "1.0.10",
"homepage_url": "https://codeberg.org/crimeflare/cloudflare-tor",
"author": "Maslin Bossé",
"permissions": [
@ -33,7 +33,7 @@
"gecko": {
"id": "ismitmlink@searxes.danwin1210.me",
"strict_min_version": "56.0",
"update_url":"https://searxes.eu.org/collab/addon/au.php?for=ismitmlink"
"update_url":"https://api.searxes.eu.org/_/addon.php?for=ismitmlink"
}
}
}