0
0
mirror of https://codeberg.org/crimeflare/cloudflare-tor synced 2024-12-14 20:34:12 +01:00
This commit is contained in:
Anna Wolf 2020-09-13 01:42:54 +02:00
parent cccc24d77e
commit b6d13d6def

View File

@ -5,8 +5,9 @@ document.addEventListener('DOMContentLoaded', () => {
document.getElementById('obs').checked = (g.obs == 'y') ? true : false; document.getElementById('obs').checked = (g.obs == 'y') ? true : false;
document.getElementById('dbg').checked = (g.dbg == 'y') ? true : false; document.getElementById('dbg').checked = (g.dbg == 'y') ? true : false;
document.getElementById('alt').checked = (g.alt == 'y') ? true : false; document.getElementById('alt').checked = (g.alt == 'y') ? true : false;
document.getElementById('opon').checked = (g.opd != 'n') ? true : false; document.getElementById('opon').checked = (g.opd != 'n' && g.opd != 'l') ? true : false;
document.getElementById('opoff').checked = (g.opd == 'n') ? true : false; document.getElementById('opoff').checked = (g.opd == 'n') ? true : false;
document.getElementById('opol').checked = (g.opd == 'l') ? true : false;
let ul = g.mul || 'eo'; let ul = g.mul || 'eo';
fetch('i18n/' + ul + '.json', { fetch('i18n/' + ul + '.json', {
method: 'GET' method: 'GET'
@ -62,6 +63,11 @@ document.getElementById('opoff').addEventListener('click', () => {
location.reload(); location.reload();
}); });
}); });
document.getElementById('opol').addEventListener('click', () => {
browser.runtime.sendMessage('dbmode,s2').then(() => {
location.reload();
});
});
document.getElementById('crs').addEventListener('click', () => { document.getElementById('crs').addEventListener('click', () => {
browser.runtime.sendMessage('clear').then(() => { browser.runtime.sendMessage('clear').then(() => {
location.reload(); location.reload();