0
0
mirror of https://codeberg.org/crimeflare/cloudflare-tor synced 2024-12-24 00:20:41 +00:00

Upload files to 'addon_chrome/bcma'

This commit is contained in:
cloudflarewarp 2019-08-05 01:56:41 +02:00
parent 401b14014a
commit b67803d6cc
4 changed files with 680 additions and 193 deletions

File diff suppressed because one or more lines are too long

View File

@ -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.1",
"version": "1.0.1908.1",
"minimum_chrome_version": "60",
"author": "Project BCMA",
"homepage_url": "https://codeberg.org/crimeflare/cloudflare-tor",
@ -13,7 +13,8 @@
"tabs",
"webRequest",
"webRequestBlocking",
"webNavigation"
"webNavigation",
"storage"
],
"icons": {
"32": "icons/icon-32.png",

View File

@ -4,7 +4,7 @@
<link rel="stylesheet" href="style.css">
</head>
<body style="display:none">
Temporary configurations
Configurations
<hr>
<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>
@ -13,7 +13,7 @@
<label><input type="radio" id="ta3" name="ta" value="3"> Notify only</label><br>
<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>
<br>
<button type="button" id="exp">[ &#8659; Export ]</button>

View File

@ -4,24 +4,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;