0
0
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:
cloudflaredns 2019-05-20 14:37:52 +00:00
parent a85e153ee8
commit cc8fb3c304
3 changed files with 9 additions and 7 deletions

View File

@ -1,8 +1,9 @@
let history = {};
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;
if (iFQDN == 'searxes.eu.org'||iFQDN == 'searxes.nmqnkngye4ct7bgss4bmv5ca3wpa55yugvxen5kz2bbq67lwy6ps54yd.onion'){return;}
let iServer = 'Unknown';
i.responseHeaders.forEach(x => {
if (x.name == 'Server') {
@ -10,7 +11,7 @@ browser.webRequest.onResponseStarted.addListener(i => {
}
});
let iDate = (new Date()).toUTCString();
history[iFQDN] = [i.url, iServer, iDate];
history[iFQDN] = [i.url, iServer, i.statusCode, iDate];
}
return;
}, {

View File

@ -4,11 +4,11 @@ function newrow(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 => {
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";
}
});

View File

@ -2,8 +2,9 @@
"manifest_version": 2,
"name": "Which website rejected me?",
"description": "Your website rejected me, but I know I'm going to be okay.",
"version": "1.0.0",
"author": "Maslin Bossé",
"version": "1.0.2",
"homepage_url": "https://searxes.eu.org/",
"author": "Searxes #Addon",
"permissions": [
"webRequest",
"<all_urls>"
@ -25,7 +26,7 @@
"gecko": {
"id": "urejectme@searxes.danwin1210.me",
"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"
}
}
}