diff options
| author | Dirk Brenken | 2026-03-08 17:59:11 +0000 |
|---|---|---|
| committer | Dirk Brenken | 2026-03-08 18:00:05 +0000 |
| commit | 9e9ebf19a69efe316400ee757178431e3831c41c (patch) | |
| tree | a01a5576fcba4d9142d3c60463bbeb35c8bc846b | |
| parent | 9a2da720465a25a842e539389118c1e4978e02d4 (diff) | |
| download | luci-master.tar.gz | |
Signed-off-by: Dirk Brenken <dev@brenken.org>
| -rw-r--r-- | applications/luci-app-adblock/Makefile | 2 | ||||
| -rw-r--r-- | applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js | 43 |
2 files changed, 26 insertions, 19 deletions
diff --git a/applications/luci-app-adblock/Makefile b/applications/luci-app-adblock/Makefile index 0eadd1c502..b339b6cd78 100644 --- a/applications/luci-app-adblock/Makefile +++ b/applications/luci-app-adblock/Makefile @@ -7,7 +7,7 @@ LUCI_TITLE:=LuCI support for Adblock LUCI_DEPENDS:=+luci-base +luci-lib-uqr +adblock PKG_VERSION:=4.5.2 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_LICENSE:=Apache-2.0 PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org> diff --git a/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js b/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js index c91b1e71a0..7640d39dc0 100644 --- a/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js +++ b/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js @@ -107,31 +107,26 @@ return view.extend({ if (status && info) { status.textContent = `${info.adblock_status || '-'} (frontend: ${info.frontend_ver || '-'} / backend: ${info.backend_ver || '-'})`; if (info.adblock_status === "processing") { - if (!status.classList.contains("spinning")) { - status.classList.add("spinning"); - } buttons.forEach(function (btn) { btn.disabled = true; btn.blur(); }) + if (!status.classList.contains("spinning")) { + status.classList.add("spinning"); + } } else { - if (status.classList.contains("spinning")) { - buttons.forEach(function (btn) { - btn.disabled = false; - }) - status.classList.remove("spinning"); - if (document.getElementById('btn_suspend')) { - if (info.adblock_status === 'paused') { - document.querySelector('#btn_suspend').textContent = 'Resume'; - } - if (info.adblock_status === 'enabled') { - document.querySelector('#btn_suspend').textContent = 'Suspend'; - } + status.classList.remove("spinning"); + if (document.getElementById('btn_suspend')) { + if (info.adblock_status === 'paused') { + document.querySelector('#btn_suspend').textContent = 'Resume'; + } + if (info.adblock_status === 'enabled') { + document.querySelector('#btn_suspend').textContent = 'Suspend'; } } - } - if (info.adblock_status === 'paused' && document.getElementById('btn_suspend')) { - document.querySelector('#btn_suspend').textContent = 'Resume'; + buttons.forEach(function (btn) { + btn.disabled = false; + }) } } if (info) { @@ -516,6 +511,12 @@ return view.extend({ o.value('1.1.1.2', _('Cloudflare (malware)')); o.value('1.1.1.3', _('Cloudflare (malware+family)')); o.value('9.9.9.9', _('Quad9 (malware)')); + o.value('86.54.11.100', _('DNS4EU (unfiltered)')); + o.value('94.140.14.140', _('AdGuard (unfiltered)')); + o.value('76.76.2.0', _('Control D (unfiltered)')); + o.value('1.1.1.1', _('Cloudflare (unfiltered)')); + o.value('9.9.9.10', _('Quad9 (unfiltered)')); + o.value('185.150.99.255', _('Digitale Gesellschaft (unfiltered)')); o.default = '86.54.11.13'; o.rmempty = true; @@ -537,6 +538,12 @@ return view.extend({ o.value('2606:4700:4700::1112', _('Cloudflare (malware)')); o.value('2606:4700:4700::1113', _('Cloudflare (malware+family)')); o.value('2620:fe::fe', _('Quad9 (malware)')); + o.value('2a13:1001::86:54:11:100', _('DNS4EU (unfiltered)')); + o.value('2a10:50c0::1:ff', _('AdGuard (unfiltered)')); + o.value('2606:1a40::', _('Control D (unfiltered)')); + o.value('2606:4700:4700::1111', _('Cloudflare (unfiltered)')); + o.value('2620:fe::10', _('Quad9 (unfiltered)')); + o.value('2a07:6b47:6b47::255', _('Digitale Gesellschaft (unfiltered)')); o.default = '2a13:1001::86:54:11:13'; o.rmempty = true; |