Create bookmarklets in your browser with a simple copy and paste.
npm install bookmarkleter
var bookmarkleter = require('./bookmarkleter'); var bookmarklet = bookmarkleter(code, options);
All options are Boolean flags.
urlencode: URL-encode reserved characters: [space], %, ", <, >, #, @, &, ?
anonymize: Wrap in an IIFE (anonymizing function).
mangleVars: Minify using UglifyJS.
jQuery: Make sure a modern version (>= 1.7) of jQuery is available
for your code.
This is free software. It is released to the public domain without warranty.
Thanks to @jpillora for updates and contributions.