Change consume

This commit is contained in:
Andre Cruz 2022-08-10 07:00:08 +00:00 committed by #deCloudflare
parent 3b5b88e0f9
commit 4ae1075ccf

View File

@ -9,11 +9,9 @@ document.addEventListener('DOMContentLoaded', () => {
document.getElementById('opoff').checked = (g.opd == 'n') ? true : false;
document.getElementById('opol').checked = (g.opd == 'l') ? true : false;
document.getElementById('ut3').checked = (g.cep || 3) == 3 ? true : false;
document.getElementById('ut0').checked = g.cep < 1 ? true : false;
document.getElementById('ut1').checked = g.cep == 1 ? true : false;
document.getElementById('ut2').checked = g.cep == 2 ? true : false;
document.getElementById('ut9').checked = g.cep == 9 ? true : false;
document.getElementById('ut9x').value = (g.aep == undefined || g.aep == 'https://karma.crimeflare.eu.org/api/is_cf.php') ? '' : g.aep;
document.getElementById('ut9x').value = (g.aep == undefined) ? '' : g.aep;
fetch('i18n/' + (g.mul || 'eo') + '.json', {
method: 'GET'
}).then(j => j.json()).then(j => {
@ -78,16 +76,6 @@ document.getElementById('crs').addEventListener('click', () => {
location.reload();
});
});
document.getElementById('ut0').addEventListener('click', () => {
browser.runtime.sendMessage('urltype,0').then(() => {
location.reload();
});
});
document.getElementById('ut1').addEventListener('click', () => {
browser.runtime.sendMessage('urltype,1').then(() => {
location.reload();
});
});
document.getElementById('ut2').addEventListener('click', () => {
browser.runtime.sendMessage('urltype,2').then(() => {
location.reload();