jQueryize Bookmarklet
While developing web applications at my day job, I've come to rely quite heavily on the jQuery JavaScript library. In fact, it's the client-side backbone upon which our company software is built. It comes as no surprise, then, that I sometimes find myself poking around in others' web application code with Firebug (or Widerbug) and wishing I had jQuery at my immediate disposal to perform manipulations with its succinct syntax and practical API.
A day ago, I stumbled upon the answer I was looking for on the Learning jQuery blog: a browser-ready jQuery-loading bookmarklet. For the uninitiated, a bookmarklet is a standard bookmark placed in your Bookmarks Bar, except it runs some JavaScript code instead of pointing your browser at a web destination. In this case, the bookmarklet manually fetches and inserts jQuery into the current page. I've modified the following version slightly to flash "jQuery Loaded" on the page when the load is complete, using the just-loaded jQuery, naturally.
To install the tool, just drag the following link to your Bookmarks Bar, and click it to temporarily install jQuery on whatever page you're visiting: jQueryize
March 21st, 2008 at 11:07 am
Der, it’s not working. I’ll assume it’s my fault some how, but either way… it’d be nifty to have it working. :)
March 21st, 2008 at 1:17 pm
I just trashed my bookmarklet and re-installed it by dragging it to the toolbar again, and it seems to be working here. Tested in Firefox 2.0.0.12, Firefox 3.0b4, Safari 3.0, and Safari 3.1 :-) It helps to have Firebug to execute commands with, though — you can’t do much with jQueryize without that.
May 26th, 2008 at 2:43 pm
FWIW, this post got completely mangled by WordPress’ smart quote detection. It should be fixed now, thanks to Alex King’s WP-Unformatted plugin, which allows per-post smart quote disabling.