Update 2023-10-05 07:40 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id
2023-10-05 07:40:10 +02:00
parent 5f45e94b0d
commit 15f91b3cc5
6 changed files with 25 additions and 44 deletions

View File

@@ -221,18 +221,18 @@ follow.pattern_maker = follow.pattern_styles.match_label
local webview = require "webview"
webview.add_signal('init', function (view)
view:add_signal('navigation-request', function(v, uri)
if v.uri:match('https://www.reddit.com') then
v.uri = v.uri:gsub('%www.reddit.com', 'libreddit.kylrth.com')
return true
end
if v.uri:match('https://old.reddit.com') then
v.uri = v.uri:gsub('%old.reddit.com', 'libreddit.kylrth.com')
return true
end
if v.uri:match('https://old.reddit.com') then
v.uri = v.uri:gsub('%old.reddit.com', 'libreddit.kylrth.com')
return true
end
-- if v.uri:match('https://www.reddit.com') then
-- v.uri = v.uri:gsub('%www.reddit.com', 'old.reddit.com')
-- return true
-- end
-- if v.uri:match('https://old.reddit.com') then
-- v.uri = v.uri:gsub('%old.reddit.com', 'libreddit.kylrth.com')
-- return true
-- end
-- if v.uri:match('https://old.reddit.com') then
-- v.uri = v.uri:gsub('%old.reddit.com', 'libreddit.kylrth.com')
-- return true
-- end
if v.uri:match('https://www.twitter.com') then
v.uri = v.uri:gsub('%www.twitter.com', 'nitter.net')
return true