Skip to content

minbot/bookmarkleter

 
 

Repository files navigation

Bookmarkleter

Build status Test coverage Code climate NPM version

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

Browser tool

Create bookmarklets in your browser with a simple copy and paste.

https://chriszarate.github.io/bookmarkleter

NPM module

npm install bookmarkleter
var bookmarkleter = require('./bookmarkleter');
var bookmarklet = bookmarkleter(code, options);

Options

All options are Boolean flags.

  • urlencode (default true): URL-encode reserved characters: [space], %, ", <, >, #, @, &, ?

  • anonymize (default false): Wrap in an IIFE (anonymizing function) to prevent exposing variables to the page on which the bookmarklet is running.

  • mangleVars (default false): Minify using UglifyJS to reduce the size of the bookmarklet.

  • jQuery (default false): Make sure a modern version (>= 1.7) of jQuery is available for your code.

License

This is free software. It is released to the public domain without warranty.

Thanks

Thanks to @jpillora for updates and contributions.

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 63.0%
  • HTML 37.0%