Update 2025-02-26 07:55 OpenBSD/amd64-t14
This commit is contained in:
@@ -220,48 +220,48 @@ end
|
||||
follow.pattern_maker = follow.pattern_styles.match_label
|
||||
|
||||
|
||||
-- -- social media enhancer
|
||||
-- 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', 'old.reddit.com')
|
||||
-- return true
|
||||
-- end
|
||||
-- if v.uri:match('https://new.reddit.com') then
|
||||
-- v.uri = v.uri:gsub('%new.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
|
||||
-- end
|
||||
-- if v.uri:match('https://twitter.com') then
|
||||
-- v.uri = v.uri:gsub('%twitter.com', 'nitter.net')
|
||||
-- return true
|
||||
-- end
|
||||
-- if v.uri:match('https://www.youtube.com') then
|
||||
-- v.uri = v.uri:gsub('%www.youtube.com', 'tube.cadence.moe')
|
||||
-- return true
|
||||
-- end
|
||||
-- if v.uri:match('https://youtube.com') then
|
||||
-- v.uri = v.uri:gsub('%youtube.com', 'tube.cadence.moe')
|
||||
-- return true
|
||||
-- end
|
||||
-- if v.uri:match('https://youtu.be') then
|
||||
-- v.uri = v.uri:gsub('%youtu.be/', 'tube.cadence.moe/watch?v=')
|
||||
-- return true
|
||||
-- end
|
||||
-- end)
|
||||
-- end)
|
||||
-- social media enhancer
|
||||
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', 'old.reddit.com')
|
||||
return true
|
||||
end
|
||||
if v.uri:match('https://new.reddit.com') then
|
||||
v.uri = v.uri:gsub('%new.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', 'redlib.kylrth.com')
|
||||
return true
|
||||
end
|
||||
if v.uri:match('https://old.reddit.com') then
|
||||
v.uri = v.uri:gsub('%old.reddit.com', 'redlib.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
|
||||
end
|
||||
if v.uri:match('https://twitter.com') then
|
||||
v.uri = v.uri:gsub('%twitter.com', 'nitter.net')
|
||||
return true
|
||||
end
|
||||
if v.uri:match('https://www.youtube.com') then
|
||||
v.uri = v.uri:gsub('%www.youtube.com', 'tube.cadence.moe')
|
||||
return true
|
||||
end
|
||||
if v.uri:match('https://youtube.com') then
|
||||
v.uri = v.uri:gsub('%youtube.com', 'tube.cadence.moe')
|
||||
return true
|
||||
end
|
||||
if v.uri:match('https://youtu.be') then
|
||||
v.uri = v.uri:gsub('%youtu.be/', 'tube.cadence.moe/watch?v=')
|
||||
return true
|
||||
end
|
||||
end)
|
||||
end)
|
||||
|
||||
-- social media blocker
|
||||
local webview = require "webview"
|
||||
|
||||
Reference in New Issue
Block a user