pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/chriszarate/bookmarkleter

edia="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-71a44d5be3f782c5.css" /> GitHub - chriszarate/bookmarkleter: You have JavaScript. You need a bookmarklet. This does that.
Skip to content

chriszarate/bookmarkleter

Repository files navigation

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.

  • mangleVars (default false): Mangle variable names and other tokens to further reduce size.

  • transpile (default false): Transpile for browsers using Babel.

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

Deprecated options

  • minify: Code is always minified (with comments removed) using babel-minify. Bookmarklets require minification to function correctly. Use mangleVars option for additional compactness.

License

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

Thanks

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy