02 April 2012
Bookmarklet Creator with Script Includer
Why have a bookmarklet creator?
- Choose if you want to include jQuery* and/or specify an external script
- Create your bookmarklet!
*Note: the jQuery include takes advantage of jQuery.noConflict.
Custom Script Example
What’s that? You’d like a silly and trivial example of someone using the custom script option? Well, OK… here’s the code for the official cornify button:
Even though they provide a bookmarklet elsewhere on that page, let’s use the above information to write our own:
- Enter the proper function call in the bookmarklet code section:
- Enter the cornify JS path as the custom script:
- Create the bookmarklet (no jQuery required)
Lazy? Let me automatically fill that out for you above (seriously, click on that link…)
Want to run this server-side?
If you want to use this for proper coding or development, then try the bookmarklet NPM dependency. It allows you to write a bookmarklet as regular JS with some extra features to auto-include scripts or styles.