Add vivaldi browser modifications
This commit is contained in:
parent
09d936d7ea
commit
48f9a474d1
18 changed files with 3865 additions and 0 deletions
18
.vivaldi-mods/restore-backup.lua
Executable file
18
.vivaldi-mods/restore-backup.lua
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env hilbish
|
||||
|
||||
local fs = require("fs")
|
||||
local posix = require("posix")
|
||||
|
||||
|
||||
local _, vivaldi_install = posix.find("/opt", { name = "vivaldi-bin" })
|
||||
local _, dir = posix.dirname(vivaldi_install)
|
||||
dir = dir:gsub("\n", "")
|
||||
|
||||
local matches = fs.glob(dir .. "/resources/vivaldi/window.html.bak")
|
||||
|
||||
if #matches ~= 0 then
|
||||
print("Restoring window.html backup in " .. dir)
|
||||
posix.mv(matches[1], dir .. "/resources/vivaldi/window.html", {sudo = true})
|
||||
else
|
||||
print("No backup")
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue