To simplify download images, and keep a track of images downloaded.
Add some option in the page, you can see in the panel option named "ZD AutoImage Booru v1"
Enable the this option to add a ProgressBar below each image. You can click that Prgressbar and the download start. :)
You can know if an image was already donwloaded (The progressbar is green)
Color of progressbar:
Green - Downloaded
Blue - Downloading
Yellow - Getting the link
Red - Something wrong (Check console, please inform me)
This option is for download the original image if is possible. If is set "NO" the the script try to download the resize version locaten in the web page.
Option to show an alert option , this only works if Files option is already set. Inform you if you has already downloaded an image and ask you for re-download or not.
Option to add downloaded files to a list in "Files" option automatically. Because security reason none Browser let you re-load the content of a directory. Only if you select it again manually, so this option is for auto-add downloaded files to "Files" value.
This option also could be used as a record of downloads, but remenber set this "Yes" and not change "Files" value.
Important, see note File Access to use this function
This option show a pop-up where you can choose a directory where you store you images. If the script detects that the image you're to download is already downloaded skipt the image or show you an alert about it. Check "Alert Dial?" option.
Because security reasons, you need re-select this option for add fore images to the list. See "Add News" option.
Note 1:Your images need to have the original name.
Note 2 - Chrome:By default this option works recursively, detect all images in the directory and sub-directorys.
Note 3 - Firefox:Because mozilla has not implemented 'select folder', you need to select all images, if you have much subfolders you can enter *.* in the search bar of the window explorer, this will load all the files and you can select all, remember wait until all files are loaded.
File Access: By default, Greasemonkey/Tampermonkey don't run scripts whit file:/// urls, that means that don't let the script have acces to files store in your PC, So, you need to enable it first.
For Greasemonkey, open about:config and change greasemonkey.fileIsGreaseable to true
For Tampermonkey, go to Chrome extension page, and tick the Allow access to file URLs checkbox at the Tampermonkey extension section.
GM_xmlhttpRequest : Because some sites store images in a external server.
ZD AutoImage Boorus.greasyfork.js : This version contains the FileSaver.js lib inside the code because Greasyfork don't let import code from original reps on github, and the versions on cdnjs is outdated code
[ ] Add option ZipGallery. ( To much problems to do it.)
[ ] Implement API per site (Sankaku is blocked, Yande.re have wrongs codes.)
[ ] Fix some ProgressBar not set the correct value if file is downloaded.
[ ] Improve code
(Last 2 Releses, full changelog in changelog.txt file)
Solved bug that break code in new versions of TM/GM