From 4ae1075ccf91178e4acb2f1a4f670a9b55b8e836 Mon Sep 17 00:00:00 2001 From: Andre Cruz Date: Wed, 10 Aug 2022 07:00:08 +0000 Subject: [PATCH] Change consume --- addons/code/ismm/cg.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/addons/code/ismm/cg.js b/addons/code/ismm/cg.js index 1d8a31af22..4040c839fb 100644 --- a/addons/code/ismm/cg.js +++ b/addons/code/ismm/cg.js @@ -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();