- Professional Skills
- Articles
- Bookmarklets
- Javascript Console For IE
- Neural Net Extension for Ruby
- Writing a PDF Generation Framework In Ruby
- Developing Mambo Components
- PayPal Website Payments Pro
- Bulk File Renaming
- Displaying a Maintenance Page
- Ruby: escape, unescape
- Clojure Tutorial For the Non-Lisp Programmer
- Complex mocking with PHPUnit
- PHP Coding Tips
- Simple CRUD Application
- External Links
- Recent posts
Bookmarklet Compiler
Submitted by moxley on Wed, 2006-01-11 04:58
What are bookmarklets? They're small Javascripts, saved as browser bookmarks, that perform useful functions. Here's my favorite bookmarklet site. It includes my favorite bookmarklet, the Javascript Shell.
How do you make a bookmarklet?
- Write the javascript that you want to be the bookmarklet.
- Escape all the special URL characters, like space, parentheses, etc.
- Wrap the script in an anonymous Javascript function
- Wrap the function in a Javascript URL (
javascript:...) - Better yet, just do step #1 and use the bookmarklet maker below to do the rest.
Bookmarklet Maker
This form will take your nicely-formatted Javascript, and turn it into a URL so that you can bookmark it.
Go ahead and type some javascript.
The Javascript function for creating the bookmarklet maker can be downloaded here.


Cape Cod Cottage for Rent