-
-
Save mason-larobina/3275421 to your computer and use it in GitHub Desktop.
Set jQuery animation speed for all luakit:// pages from your luakit rc.lua
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function webview.init_funcs.set_jquery_speed(view, w) | |
view:add_signal("load-status", function (view, status) | |
if status == "finished" and string.match(view.uri, "^luakit://") then | |
view:eval_js [=[ if ($) $.fx.speeds._default = 70; ]=] | |
end | |
end) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment