Skip to content

asl97/VDB-Bookmarklet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Viewer Download Button - Bookmarklet version

Nothing to see here

Original userscript version: https://gist.github.com/asl97/6a7acacc71f97505416790783805be7a





































































































If you made it this far down, you probably want to know what this is.

Bookmarklet is basically just a template which handles dependencies and script isolation.

// Bookmarklet takes three args, an array of dependencies, a function to turn to string and embed it
//  and scope thingy*
bookmarklet([], function(){}, local_scope)

// * a function which return a promise that resolve to an object with a `load` and `run` functions

Look at bookmarklet.js for an example of usage.

Changelog

Moved to it's own file cause I want it to be just plain old text