mirror of
https://codeberg.org/crimeflare/cloudflare-tor
synced 2024-11-10 03:12:49 +00:00
Upload files to 'addon_firefox/bcma'
This commit is contained in:
parent
142e4d38d2
commit
401b14014a
File diff suppressed because one or more lines are too long
@ -2,7 +2,7 @@
|
||||
"manifest_version": 2,
|
||||
"name": "Block Cloudflare MITM Attack",
|
||||
"description": "Submit to global surveillance or resist. The choice is yours.",
|
||||
"version": "1.0.1907.2",
|
||||
"version": "1.0.1908.1",
|
||||
"author": "Project BCMA",
|
||||
"homepage_url": "https://trac.torproject.org/projects/tor/ticket/24351",
|
||||
"permissions": [
|
||||
@ -11,7 +11,8 @@
|
||||
"tabs",
|
||||
"webRequest",
|
||||
"webRequestBlocking",
|
||||
"webNavigation"
|
||||
"webNavigation",
|
||||
"storage"
|
||||
],
|
||||
"icons": {
|
||||
"32": "icons/icon-32.png",
|
||||
|
@ -4,7 +4,7 @@
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body style="display:none">
|
||||
<i>Temporary</i> configurations
|
||||
Configurations
|
||||
<hr>
|
||||
<b>♞ 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>
|
||||
@ -13,7 +13,7 @@
|
||||
<label><input type="radio" id="ta3" name="ta" value="3"> Notify only</label><br>
|
||||
<br>
|
||||
<b>✍ 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>
|
||||
<br>
|
||||
<button type="button" id="exp">[ ⇓ Export ]</button>
|
||||
|
@ -8,24 +8,25 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
document.getElementById('t').value = JSON.parse(r[1]).join("\n");
|
||||
document.getElementById('g').value = JSON.parse(r[2]).join("\n");
|
||||
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:
|
||||
document.getElementById('ta0').checked = false;
|
||||
document.getElementById('ta1').checked = true;
|
||||
document.getElementById('ta2').checked = false;
|
||||
document.getElementById('ta3').checked = false;
|
||||
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:
|
||||
document.getElementById('ta0').checked = false;
|
||||
document.getElementById('ta1').checked = false;
|
||||
document.getElementById('ta2').checked = false;
|
||||
document.getElementById('ta3').checked = true;
|
||||
break;
|
||||
case 2:
|
||||
default:
|
||||
document.getElementById('ta0').checked = false;
|
||||
document.getElementById('ta1').checked = false;
|
||||
@ -82,4 +83,4 @@ document.getElementById('ta3').addEventListener('click', function () {
|
||||
});
|
||||
document.getElementById('ign').addEventListener('click', function () {
|
||||
browser.runtime.sendMessage(['ig', document.getElementById('g').value.split("\n")]).then(function (r) {}, onError);
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user