Skip to content

Instantly share code, notes, and snippets.

@mason-larobina
Forked from johntyree/webview.lua
Created August 6, 2012 15:19
Show Gist options
  • Save mason-larobina/3275421 to your computer and use it in GitHub Desktop.
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
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