luci/applications/luci-app-adblock/luasrc/controller/adblock.lua
Hannu Nyman 21bf16ce04 luci-app-adblock: User interface for the 'adblock' package
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>
2016-02-16 22:28:46 +02:00

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