Skip to content

Instantly share code, notes, and snippets.

View esavelyeva's full-sized avatar
😈

Elena Savelyeva esavelyeva

😈
View GitHub Profile
@esavelyeva
esavelyeva / fs.to.playlist.script
Last active November 10, 2016 13:59
Go to http://bookmarklets.org/maker/ to generate the bookmarklet
//download.js v3.0, by dandavis; 2008-2014. [CCBY2] see http://danml.com/download.html for tests/usage
// v1 landed a FF+Chrome compat way of downloading strings to local un-named files, upgraded to use a hidden frame and optional mime
// v2 added named files via a[download], msSaveBlob, IE (10+) support, and window.URL support for larger+faster saves than dataURLs
// v3 added dataURL and Blob Input, bind-toggle arity, and legacy dataURL fallback was improved with force-download mime and base64 support
// data can be a string, Blob, File, or dataURL