0
0
mirror of https://codeberg.org/crimeflare/cloudflare-tor synced 2024-11-13 21:02:40 +00:00

Upload files to 'addon_firefox/bcma'

This commit is contained in:
cloudflarewarp 2019-08-05 01:54:48 +02:00
parent 142e4d38d2
commit 401b14014a
4 changed files with 677 additions and 195 deletions

File diff suppressed because one or more lines are too long

View File

@ -2,7 +2,7 @@
"manifest_version": 2, "manifest_version": 2,
"name": "Block Cloudflare MITM Attack", "name": "Block Cloudflare MITM Attack",
"description": "Submit to global surveillance or resist. The choice is yours.", "description": "Submit to global surveillance or resist. The choice is yours.",
"version": "1.0.1907.2", "version": "1.0.1908.1",
"author": "Project BCMA", "author": "Project BCMA",
"homepage_url": "https://trac.torproject.org/projects/tor/ticket/24351", "homepage_url": "https://trac.torproject.org/projects/tor/ticket/24351",
"permissions": [ "permissions": [
@ -11,7 +11,8 @@
"tabs", "tabs",
"webRequest", "webRequest",
"webRequestBlocking", "webRequestBlocking",
"webNavigation" "webNavigation",
"storage"
], ],
"icons": { "icons": {
"32": "icons/icon-32.png", "32": "icons/icon-32.png",

View File

@ -4,7 +4,7 @@
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="style.css">
</head> </head>
<body style="display:none"> <body style="display:none">
<i>Temporary</i> configurations Configurations
<hr> <hr>
<b>&#9822; Take Action</b><br> <b>&#9822; Take Action</b><br>
<label><input type="radio" id="ta0" name="ta" value="0"> Block request immediately <small>(first-party + third-party)</small></label><br> <label><input type="radio" id="ta0" name="ta" value="0"> Block request immediately <small>(first-party + third-party)</small></label><br>
@ -13,7 +13,7 @@
<label><input type="radio" id="ta3" name="ta" value="3"> Notify only</label><br> <label><input type="radio" id="ta3" name="ta" value="3"> Notify only</label><br>
<br> <br>
<b>&#9997; Your Cloudflare Domain collection</b> <small>(Last 500)</small><br> <b>&#9997; Your Cloudflare Domain collection</b> <small>(Last 500)</small><br>
<small>(please share with <a href="https://codeberg.org/crimeflare/cloudflare-tor" target="_blank">cloudflare-tor@crimeflare</a>)</small><br> <small>(please share with <a href="https://codeberg.org/crimeflare/cloudflare-tor/src/branch/master/instructions.md" target="_blank">cloudflare-tor@crimeflare</a>)</small><br>
<textarea cols="50" rows="12" id="t" wrap="off" spellcheck="false" placeholder="Cloudflare domains"></textarea> <textarea cols="50" rows="12" id="t" wrap="off" spellcheck="false" placeholder="Cloudflare domains"></textarea>
<br> <br>
<button type="button" id="exp">[ &#8659; Export ]</button> <button type="button" id="exp">[ &#8659; Export ]</button>

View File

@ -8,24 +8,25 @@ document.addEventListener('DOMContentLoaded', function () {
document.getElementById('t').value = JSON.parse(r[1]).join("\n"); document.getElementById('t').value = JSON.parse(r[1]).join("\n");
document.getElementById('g').value = JSON.parse(r[2]).join("\n"); document.getElementById('g').value = JSON.parse(r[2]).join("\n");
switch (r[3]) { switch (r[3]) {
case 0:
document.getElementById('ta0').checked = true;
document.getElementById('ta1').checked = false;
document.getElementById('ta2').checked = false;
document.getElementById('ta3').checked = false;
break;
case 1: case 1:
document.getElementById('ta0').checked = false; document.getElementById('ta0').checked = false;
document.getElementById('ta1').checked = true; document.getElementById('ta1').checked = true;
document.getElementById('ta2').checked = false; document.getElementById('ta2').checked = false;
document.getElementById('ta3').checked = false; document.getElementById('ta3').checked = false;
break; break;
case 2:
document.getElementById('ta0').checked = false;
document.getElementById('ta1').checked = false;
document.getElementById('ta2').checked = true;
document.getElementById('ta3').checked = false;
break;
case 3: case 3:
document.getElementById('ta0').checked = false; document.getElementById('ta0').checked = false;
document.getElementById('ta1').checked = false; document.getElementById('ta1').checked = false;
document.getElementById('ta2').checked = false; document.getElementById('ta2').checked = false;
document.getElementById('ta3').checked = true; document.getElementById('ta3').checked = true;
break; break;
case 2:
default: default:
document.getElementById('ta0').checked = false; document.getElementById('ta0').checked = false;
document.getElementById('ta1').checked = false; document.getElementById('ta1').checked = false;