Skip to content

matthodan/bookmarklet-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 

Repository files navigation

Bookmarklet Loader

Bookmarklet Loader is a template bookmarklet that injects a .js and .css link into the current page.

Pinterest and Instapaper use similar implementations to load their bookmarklet code.

Usage

Update the following in 'bookmarklet-loader.js.coffee' to refer to your app's .js and .css. If you don't want to include both a .js or .css, you can pass 'null' instead of a url for either.

loader = new BookmarkletLoader 'yourApp',
'http://example.com/your-app.js',
'http://example.com/your-app.css'

Bookmarklet Loader is written in CoffeeScript, however bookmarklets must be JavaScript and URL encoded. CoffeeMarklet does a great job of converting CoffeeScript to bookmarklet-friendly JavaScript. I recommend you use it to generate your bookmarklet.

Contact

Contact me if you have a question-- Matt's Blog.

About

Template bookmarklet that injects a .js and .css into the current page when clicked

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published