summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-adblock/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2024-08-09 17:16:09 +0200
committerDirk Brenken <dev@brenken.org>2024-08-09 17:16:09 +0200
commit257cfac4257571581bd32430757c94a783d4e1e5 (patch)
tree2493eca2e31fe0e9fe6dc153227cd5e305cc3e16 /applications/luci-app-adblock/htdocs/luci-static/resources
parent0d4d477ed42401cfa8526a8cc9a20f0559d4c1fc (diff)
luci-app-adblock: sync with adblock-4.2.0
* add hagezi support Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-adblock/htdocs/luci-static/resources')
-rw-r--r--applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/overview.js16
1 files changed, 16 insertions, 0 deletions
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 846689e945..da93bc38a0 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
@@ -593,6 +593,22 @@ return view.extend({
o.optional = true;
o.rmempty = true;
+ o = s.taboption('sources', form.DummyValue, '_sub');
+ o.rawhtml = true;
+ o.default = '<em><b>Hagezi List Selection</b></em>';
+
+ o = s.taboption('sources', form.DynamicList, 'adb_hag_sources', _('Variants'));
+ for (var i = 0; i < categories.length; i++) {
+ code = categories[i].match(/^(\w+);/)[1].trim();
+ if (code === 'hag') {
+ list = categories[i].match(/^\w+;(.*);/)[1].trim();
+ path = categories[i].match(/^.*;(.*$)/)[1].trim();
+ o.value(path, list);
+ }
+ }
+ o.optional = true;
+ o.rmempty = true;
+
return m.render();
},
handleReset: null