Simple user interface for the 'adblock' package from packages feed. Adds 'Adblock' item to the Services menu in LuCI. Allows enabling/disabling the service and selecting blocklists. Configuration of the blocklist URLs and selection of Shalla categories needs to be done manually to the config file, if needed. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
12 lines
301 B
Lua
12 lines
301 B
Lua
-- Copyright 2016 Openwrt.org
|
|
-- Licensed to the public under the Apache License 2.0.
|
|
|
|
module("luci.controller.adblock", package.seeall)
|
|
|
|
function index()
|
|
if not nixio.fs.access("/etc/config/adblock") then
|
|
return
|
|
end
|
|
|
|
entry({"admin", "services", "adblock"}, cbi("adblock"), _("Adblock"), 40)
|
|
end
|