Add vivaldi browser modifications

This commit is contained in:
James Dugan 2025-05-26 16:03:26 -06:00
parent 09d936d7ea
commit 48f9a474d1
18 changed files with 3865 additions and 0 deletions

View 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