-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[questions] js for specific sites, keybinds, cookies and colors #997
Comments
i wanted to add that im very confused with the errors im getting sometimes. it tells me things like how i specified "set" or "webview" are nil values which isnt true because else they wouldnt get sourced. any help is appreciated really im very confused |
E.g. local modes = require 'modes'
modes.add_binds("normal", {
{
"<Control-c>", "Copy selected text.", function()
luakit.selection.clipboard = luakit.selection.primary
end
},
{
".", "Stop loading.", function(w) w.view:stop() end
},
{
"<control-m>",
"Toggle auto_load_images for the current view/tab.",
function(w)
w.view.auto_load_images = not w.view.auto_load_images
w:notify(string.format("w.view.auto_load_images: %s",
w.view.auto_load_images))
end
},
})
Why not use |
Example for local settings = require 'settings'
local default_search_engine = "duckduckgo"
local search_engines = {
duckduckgo = "https://duckduckgo.com/?q=%s",
google = "https://google.com/search?q=%s",
github = "https://github.com/search?q=%s",
wikipedia = "https://en.wikipedia.org/wiki/Special:Search?search=%s",
}
local se = search_engines -- for easy typing.
local search_engine_aliases = {
dd = se.duckduckgo,
ggi = se.google:gsub("com", "co.in"),
gh = se.github,
-- e.g. if terms == "repo owner issues 234", then
-- url == "https://github.com/repo/owner/issues/234"
ghr = function (terms)
return "https://github.com/" .. terms:gsub("%s+", "/")
end,
}
for k,v in pairs(search_engine_aliases) do
search_engines[k] = v
end
settings.window.search_engines = search_engines
settings.window.default_search_engine = default_search_engine |
The
There are no keybindings in the
The
Cookies are dealt with inside webkit (i believe by libsoup). Luakit only defines the filename for the cookie database.
Yes.
Without specific errors paired to specific code, this is difficult to troubleshoot. What version of Luakit and what system are you running? |
thank you for this, however i know that the noscript module does that. i just dont know how to use it and as i said i dont know where to start because i dont know much lua, sorry for not providing keybinds, when im home ill give an example to what i tried. so my followup question now is "how do i use the noscript plugin to achieve my goal?" |
Look at #937. |
hi! i will ask these question all in one issue because making five seperate issues is not worth it.
i wanted to get insight into 5 things:
i will provide my full userconf.lua so you can see what i tried, also its to note im not a programmer and dont know a lot about lua. thanks in for the help!
userconf.lua:
The text was updated successfully, but these errors were encountered: