mirror of
https://codeberg.org/crimeflare/cloudflare-tor
synced 2024-11-10 03:12:49 +00:00
Upload files to 'addon_firefox/whyrejectme'
This commit is contained in:
parent
a85e153ee8
commit
cc8fb3c304
@ -1,8 +1,9 @@
|
|||||||
let history = {};
|
let history = {};
|
||||||
|
|
||||||
browser.webRequest.onResponseStarted.addListener(i => {
|
browser.webRequest.onResponseStarted.addListener(i => {
|
||||||
if (i.statusCode == 403) {
|
if ([403,406,410,451,462].includes(i.statusCode)) {
|
||||||
let iFQDN = (new URL(i.url)).hostname;
|
let iFQDN = (new URL(i.url)).hostname;
|
||||||
|
if (iFQDN == 'searxes.eu.org'||iFQDN == 'searxes.nmqnkngye4ct7bgss4bmv5ca3wpa55yugvxen5kz2bbq67lwy6ps54yd.onion'){return;}
|
||||||
let iServer = 'Unknown';
|
let iServer = 'Unknown';
|
||||||
i.responseHeaders.forEach(x => {
|
i.responseHeaders.forEach(x => {
|
||||||
if (x.name == 'Server') {
|
if (x.name == 'Server') {
|
||||||
@ -10,7 +11,7 @@ browser.webRequest.onResponseStarted.addListener(i => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
let iDate = (new Date()).toUTCString();
|
let iDate = (new Date()).toUTCString();
|
||||||
history[iFQDN] = [i.url, iServer, iDate];
|
history[iFQDN] = [i.url, iServer, i.statusCode, iDate];
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}, {
|
}, {
|
||||||
|
@ -4,11 +4,11 @@ function newrow(w) {
|
|||||||
tr.innerHTML = w;
|
tr.innerHTML = w;
|
||||||
}
|
}
|
||||||
|
|
||||||
newrow('<tr><td><b>FQDN</b></td><td><b>Server</b></td><td><b>Where</b></td><td><b>When</b></td></tr>');
|
newrow('<tr><td><b>FQDN</b></td><td><b>Server</b></td><td><b>Code</b></td><td><b>Where</b></td><td><b>When</b></td></tr>');
|
||||||
|
|
||||||
browser.runtime.sendMessage('get').then(g => {
|
browser.runtime.sendMessage('get').then(g => {
|
||||||
for (let k in g) {
|
for (let k in g) {
|
||||||
newrow('<tr><td>' + k + '</td><td>' + g[k][1] + '</td><td><a href="' + g[k][0] + '" target="_blank">Link</a></td><td>' + g[k][2] + '</td></tr>');
|
newrow('<tr><td>' + k + '</td><td>' + g[k][1] + '</td><td>' + g[k][2] + '</td><td><a href="' + g[k][0] + '" rel="noreferrer" target="_blank">Link</a></td><td>' + g[k][3] + '</td></tr>');
|
||||||
document.getElementById('export').innerHTML += k + "\n";
|
document.getElementById('export').innerHTML += k + "\n";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -2,8 +2,9 @@
|
|||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "Which website rejected me?",
|
"name": "Which website rejected me?",
|
||||||
"description": "Your website rejected me, but I know I'm going to be okay.",
|
"description": "Your website rejected me, but I know I'm going to be okay.",
|
||||||
"version": "1.0.0",
|
"version": "1.0.2",
|
||||||
"author": "Maslin Bossé",
|
"homepage_url": "https://searxes.eu.org/",
|
||||||
|
"author": "Searxes #Addon",
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"webRequest",
|
"webRequest",
|
||||||
"<all_urls>"
|
"<all_urls>"
|
||||||
@ -25,7 +26,7 @@
|
|||||||
"gecko": {
|
"gecko": {
|
||||||
"id": "urejectme@searxes.danwin1210.me",
|
"id": "urejectme@searxes.danwin1210.me",
|
||||||
"strict_min_version": "56.0",
|
"strict_min_version": "56.0",
|
||||||
"update_url":"https://searxes.danwin1210.me/collab/addon/au.php?for=ureject"
|
"update_url":"https://searxes.eu.org/collab/addon/au.php?for=ureject"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user