Skip to content

Instantly share code, notes, and snippets.

Johannes johtso

Block or report user

Report or block johtso

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@johtso
johtso / jQueryBookmarklet.coffee
Created Jul 7, 2011 — forked from TrevorBurnham/jQueryBookmarklet.coffee
Load jQuery/jQuery UI dependencies
View jQueryBookmarklet.coffee
loadDependencies = (callback) ->
requirements = {jq: '1.6.1', jqui: '1.8.7'}
getScript = (url, next) ->
script = document.createElement('script')
script.src = url
head = document.documentElement.childNodes[0]
script.onload = script.onreadystatechange = onScriptLoad script, next
head.appendChild script
You can’t perform that action at this time.