mirror of
https://git.sdf.org/deCloudflare/cloudflare-tor
synced 2024-12-26 09:52:29 +01:00
cg.js
This commit is contained in:
parent
2633ba3ec5
commit
6d71f2e102
@ -12,6 +12,8 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
document.getElementById('vau').value = r[3];
|
||||
document.getElementById('nnf1').checked = r[4][0];
|
||||
document.getElementById('nnf2').checked = r[4][1];
|
||||
document.getElementById('csa1').checked = r[4][2];
|
||||
document.getElementById('csa2').checked = r[4][3];
|
||||
switch (r[2]) {
|
||||
case 0:
|
||||
document.getElementById('ta0').checked = true;
|
||||
@ -74,6 +76,12 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
document.getElementById('nnf2').addEventListener('click', function () {
|
||||
browser.runtime.sendMessage(['nnf', '2', (this.checked ? true : false)]);
|
||||
});
|
||||
document.getElementById('csa1').addEventListener('click', function () {
|
||||
browser.runtime.sendMessage(['csa', '1', (this.checked ? true : false)]);
|
||||
});
|
||||
document.getElementById('csa2').addEventListener('click', function () {
|
||||
browser.runtime.sendMessage(['csa', '2', (this.checked ? true : false)]);
|
||||
});
|
||||
document.getElementById('ta0').addEventListener('click', function () {
|
||||
if (this.checked) {
|
||||
browser.runtime.sendMessage(['ta', '0']);
|
||||
|
Loading…
Reference in New Issue
Block a user