bookmarkleter

2019-09-11

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

Bookmarkleter

Build statusTest coverageNPM 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 --save bookmarkleter
const bookmarkleter = require( 'bookmarkleter' );
const bookmarklet = bookmarkleter( code, options );

Options

All options are Boolean flags.

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

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

  • minify(default false): Minify using babel-minifyto reduce the size of the bookmarklet.

  • transpile(default false): Transpile to ES5 using Babel.

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

License

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

Thanks

Thanks to @jpilloraand @alanhoganfor updates and contributions.

HomePage

https://github.com/chriszarate/bookmarkleter

Repository

https://github.com/chriszarate/bookmarkleter


上一篇:设计模式8---------过滤器模式
下一篇:hashcat-nf
相关教程
关注微信

扫码加入 JavaScript 社区

相关文章
暂无相关文章

首次访问,需要验证
微信扫码,关注即可
(仅需验证一次)

欢迎加入 JavaScript 社区

号内回复关键字:

回到顶部