singpolyma/singpolyma — pull request #1 by arandomuser (2012-10-25 22:12:11+00:00)
Title: Add context-senitivity to userscript.sh

Adds an argument that can be passed to userscript.sh, specifying whether the
current context is document-start or document-end. Then within the uzbl config
the following can be done:

@on_event LOAD_COMMIT spawn @scripts_dir/userscript.sh document-start
@on_event LOAD_FINISH spawn @scripts_dir/userscript.sh document-end

Which allows userscripts to be run when they want. If the argument is ommited,
then userscript.sh runs on all scripts, preserving current behavior.

-------

I know this is probably hosted somewhere else now, but the uzbl script wiki is a bit disorganized, and I believe this makes userscripts quite a bit more usable.