This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # Forked by Alberto Grimaldi because stopped working | |
| # TODO: | |
| # use jshon -e success and not $? | |
| # anonymous albums https://api.imgur.com/endpoints/album#album-upload and https://api.imgur.com/endpoints/album#album-update | |
| # print also url for deleting | |
| # history | |
| # | |
| # Upload image(s) to imgur.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;(function() { | |
| var images = [].slice.call(document.querySelectorAll('img')) | |
| try { | |
| images.forEach(function(img) { | |
| downloadImage(img) | |
| }) | |
| } catch (e) { | |
| alert("Download failed."); | |
| console.log('Download failed.', e); | |
| } |