Update 2023-10-15 21:29 OpenBSD/amd64-x13
This commit is contained in:
@@ -60,7 +60,7 @@ local settings_chrome = require "settings_chrome"
|
||||
settings.window.home_page = "luakit://newtab"
|
||||
settings.window.scroll_step = 20
|
||||
settings.window.zoom_step = 0.2
|
||||
settings.webview.zoom_level = 100
|
||||
settings.webview.zoom_level = 150
|
||||
settings.window.close_with_last_tab = true
|
||||
|
||||
-- search engines
|
||||
@@ -79,7 +79,7 @@ local adblock = require "adblock"
|
||||
local adblock_chrome = require "adblock_chrome"
|
||||
|
||||
-- Enable Developer Tools
|
||||
--- local webinspector = require "webinspector"
|
||||
local webinspector = require "webinspector"
|
||||
|
||||
-- Add uzbl-like form filling
|
||||
-- local formfiller = require "formfiller"
|
||||
@@ -221,10 +221,14 @@ 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', 'old.reddit.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://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
|
||||
|
||||
Reference in New Issue
Block a user