Giter Site home page Giter Site logo

alanhogan / bookmarkleter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chriszarate/bookmarkleter

2.0 3.0 0.0 2.62 MB

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

Home Page: https://alanhogan.github.io/bookmarkleter/

JavaScript 63.15% HTML 36.85%

bookmarkleter's Introduction

Bookmarkleter

Build status Test coverage 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 --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-minify to 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 jQuery is available for your code.

License

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

Thanks

Thanks to @jpillora and @alanhogan for updates and contributions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.