mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-06-01 09:53:21 +02:00
add update-ab command to luakit
This commit is contained in:
parent
014bf9f8ca
commit
de6d2f8c60
17
.config/luakit/cmds.lua
Normal file
17
.config/luakit/cmds.lua
Normal file
|
@ -0,0 +1,17 @@
|
|||
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,
|
||||
},
|
||||
}
|
|
@ -1 +1,2 @@
|
|||
require "cmds"
|
||||
require "usersettings"
|
||||
|
|
Loading…
Reference in a new issue