Skip to content

Instantly share code, notes, and snippets.

Avatar
🤖

Johannes johtso

🤖
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.