Skip to content

Instantly share code, notes, and snippets.

Eric Mink lucidBrot

Block or report user

Report or block lucidBrot

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am lucidbrot on github.
  • I am lucidbrot ( on keybase.
  • I have a public key whose fingerprint is FC5A D891 70DD 132A CB34 3EFE 88C9 76AE F1B5 687B

To claim this, I am signing this object:

lucidBrot / bookmarklet_image_dwl.js
Last active Nov 17, 2019
Bookmarklet to download all images on a page
View bookmarklet_image_dwl.js
// as one-liner for bookmarklet
javascript:;(function(){var images=[]'img'));try{images.forEach(function(img){downloadResource(img.src)})}catch(e){alert("Download failed.");console.log('Download failed.',e)}function forceDownload(blob,filename){var a=document.createElement('a');;a.href=blob;}function downloadResource(url,filename){if(!filename)filename=url.split('\\').pop().split('/').pop();fetch(url,{headers:new Headers({'Origin':location.origin}),mode:'cors'}).then(response=>response.blob()).then(blob=>{let blobUrl=window.URL.createObjectURL(blob);forceDownload(blobUrl,filename)}).catch(e=>console.error(e))}}).call(window);
You can’t perform that action at this time.