Bookmarklet Generator

You have JavaScript. You need a bookmarklet. This does that.

- Removes newlines, tabs, and optional spaces

- URL-encodes special ASCII characters: [space], %, ", <, >, #, @, &, ?

- Places code in a wrapper function (if not done already)

- Does not hex-encode non-ASCII characters (you should probably use String.fromCharCode for that)