Update 2023-10-05 07:40 OpenBSD/amd64-x13
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user