Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to create a bookmarklet with an external js file.
// use this code as your href attribute on your 'Install this bookmarklet' anchor tag.
// borrowed from
javascript:(function(){var jsCode = document.createElement('script');jsCode.setAttribute('src', '');document.body.appendChild(jsCode);}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment