Browse Source

Updated luakit mods

dev
Nova[有線魔女] 4 months ago
parent
commit
8f5188d164
  1. 6
      README.md
  2. 4
      webview.lua
  3. 3
      window.lua

6
README.md

@ -8,11 +8,11 @@ Contains the following [Luakit](https://github.com/luakit/luakit) modules modifi
- changed `webview.enable_javascript` to false
- changed `webview.enable_plugins` to false
- changed `webview.media_playback_requires_gesture` to true
- enabled user-agent spoofing
- window.lua
- changed `application.prefer_dark_mode` to true
- removed GitHub,Google,IMDb from the search engines list
- added /e/ spot , Little Isle and Whoogle
- removed : github , google , imdb from `window.search_engines`
- added : [isle](https://isle.honeypot.im) , [searx](https://anon.sx) , [spot](https://spot.ecloud.global) and [whoogle](https://s.alefvanoon.xyz) to `window.search_engines`
# Installation
- `make install` as root or using doas/sudo , the Makefile makes backups of the original files automatically. To revert the changes run `make uninstall`

4
webview.lua

@ -7,6 +7,8 @@
-- @copyright 2017 Aidan Holm <aidanholm@gmail.com>
-- @copyright 2012 Mason Larobina <mason.larobina@gmail.com>
-- modified by ~novaburst
local window = require("window")
local lousy = require("lousy")
local settings = require("settings")
@ -706,7 +708,7 @@ settings.register_settings(webview_settings)
settings.register_settings({
["webview.user_agent"] = {
type = "string",
default = "",
default = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36",
desc = [=[
The user agent used when making HTTP requests.

3
window.lua

@ -7,6 +7,8 @@
-- @copyright 2017 Aidan Holm <aidanholm@gmail.com>
-- @copyright 2012 Mason Larobina <mason.larobina@gmail.com>
-- modified by ~novaburst
require "lfs"
local lousy = require("lousy")
local settings = require("settings")
@ -843,6 +845,7 @@ settings.register_settings({
default = {
duckduckgo = "https://duckduckgo.com/?q=%s",
isle = "https://isle.honeypot.im/?q=%s",
searx = "https://anon.sx/search?q=%s",
spot = "https://spot.ecloud.global/search?q=%s",
whoogle = "https://s.alefvanoon.xyz/search?q=%s",
wikipedia = "https://en.wikipedia.org/wiki/Special:Search?search=%s",

Loading…
Cancel
Save