mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-15 13:53:41 +01:00
17 lines
451 B
Lua
17 lines
451 B
Lua
local lfs = require "lfs"
|
|
|
|
require("modes").add_cmds {
|
|
{
|
|
":update-ab",
|
|
[[Update the adblocker lists]],
|
|
function(w)
|
|
local home = os.getenv "HOME"
|
|
|
|
lfs.mkdir(home .. "/.local/share/luakit/adblock/")
|
|
|
|
require("downloads").add("https://easylist.to/easylist/easylist.txt", {
|
|
filename = home .. "/.local/share/luakit/adblock/easylist.txt",
|
|
})
|
|
end,
|
|
},
|
|
}
|