ImageBoard Downloader

The original fullsize images downloader, and viewer for the various imageboards

目前为 2017-12-07 提交的版本。查看 最新版本

作者
Se7en
评分
0 0 0
版本
0.4.1
创建于
2017-10-15
更新于
2017-12-07
许可证
暂无
适用于

ImageBoard Downloader

The images downloader/viewer for the various imageboards. Download/view the image by a simple click on the image thumb when the downloader/viewer is enabled.

Supported imageboards:
1. gelbooru.com
2. rule34.xxx
3. yande.re
4. donmai.us – danbooru.donmai.us, sonohara.donmai.us, etc.
5. sankakucomplex.com – both sankaku: chan.sankakucomplex.com, and idol.sankakucomplex.com
6. behoimi.org
7. youhate.us
8. safebooru.org
9. uberbooru.com
10. bronibooru.com
11. mspabooru.com
12. e926.net
13. e621.net
14. booru.org – all subdomains
15. atfbooru.ninja
16. lolibooru.moe
17. hypnohub.net
18. tbib.org
19. konachan - both .net, and .com
20. rule34.paheal.net

User options:
1. maxTagsInName – maximum tags in file name – [10]
2. tagsDelim – tags delimeter – ['‒']
3. addImgBrdName – add imageboard name to file name – [true]
4. downloadJPEG – download jpeg image (jpeg vs png on yande.re) – [false]
5. autoRun – initialize the script on start – [true]
6. prefixedName – prefixed names of imageboards – [false]
7. imgIdAtNameEnd – image ID, and imageboard name at file name end – [true]
8. createViewer – add image viewer to imageboard – [true]
9. viewSample – view image samples – [true]
10. viewJPEG – view jpeg image (yande.re option) – [false]
11. viewFirst – load 1st image on viewer activation – [true]
12. holdCtrl – hold Ctrl key to left/right navigate when viewing – [true]
13. maxWidth – maximum width of image, px – [1000]
14. maxHeight – maximum height of image, px – [700]
15. tagsOrder – tag-types order in file name – [see default in file name options]

Keyboard:
1. Shift+D - switch the Download Mode on/off
2. Shift+I - (re)initialize the script
3. Shift+M - open/close the user menu dialog
4. Shift+V - switch the Viewer on/off
5. Ctrl+left/right - view previous/next image (Ctrl key is optional)

Description

1. Functionality
There are 4 buttons, 1 of them is optional – User Menu, Download Mode, Download All, and optional Viewer.
User Menu – open/close user options dialog; hotkey – Shift+M;
Donwload Mode – switch the download mode on/off; hotkey – Shift+D; the suffix "[on]" in the button name indicates that the download mode is enabled; "[off]" – disabled; when switched on, one can download the image by a simple click on the thumb, or on the image itself if it is post page;
Download All – download all available images on the page; the number of available images are shown on the button name, e.i. 20 available images are result in the button name "Download All (20)", and if 4 images are already downloaded, then the button name is "Download All (4/20)";
Viewer – switch the viewer on/off; hotkey – Shift+V;
Use Shift+I hotkey to (re)initialize the script, it is usefull for imageboards with auto paging, or when some images are not initialized due to an error 429 (too many requests);

2. File name options
When making filename following options are used:
maxTagsInName is the maximum amount of the tags that are added to the filename (default is [10]), limited by 100;
tagsOrder is the ordered list of tag-types according to which the tags are added to the filename (default is ['character', 'copyright', 'artist', 'species', 'model', 'idol', 'photo_set', 'circle', 'medium', 'metadata', 'general', 'faults']);
tagsDelim – tags delimeter is the character string limited by 4 chars (default is ['-']);
addImgBrdName – if true, then the imageboard name is added to the filename (default is [true]);
prefixedName is the imageboard name option; when true, the long name is used, otherwise – short name (default is [false]), e.i. chan.sankakucomplex.com has the prefixed/long name – 'chan.sankaku', and the short name - 'sankaku';
imgIdAtNameEnd ̵ if true, then the image ID is added to the end of the filename, otherwise to the begin of the filename (default is [true]);
The image ID is always added to the filename, and the imageboard name is always placed before the image ID;

3. Image viewer options:
createViewer – if true, then the image viewer is added to the imageboard (default is [true]);
viewSample – if true, then the image samples are loaded when viewing, otherwise – the original ones(default is [true]);
viewJPEG – yande.re option; if true, and viewSample is false, then the jpeg version of the png image is loaded when viewing (default is [false]);
viewFirst – if true, then the 1st image is loaded on viewer activaction, else one should use 'Prev'/'Next' buttons, or single click on the image thumb to view at least something =) (default is [true]);
holdCtrl – if true, then one should use Ctrl+left/right to view previous/next images, otherwise – left/right, except donmai.us imageboards - always use Ctrl+left/right (default is [true]);
maxWidth/maxHeight – set maximum width/height of viewing images, (default is [1000]/[700] px)

4. Other options:
downloadJPEG – yande.re option; when true, and if the image has jpeg version of png with the same resolution, then jpeg version is downloaded on donwload action (default is [false]);
autoRun – initialize the script on start (default is [true]), if false, one should manually initialize the script by Shift+I hotkey;

5. Misc
This script allows you to download the image only once per page open - if the image is downloaded, the script sets its state as "downloaded", and that image is no more available for download, unless you refresh the site page.
When downloading large amount of images at a time (e.i. by clicking the "Download All (40)" button), it may cause the error 429 (too many requests), that results in stop of downloading. One should wait a little, then try again (click the "Downalod All" button again) to start/complete downloading.

v0.4.1
* fix exclude-list typo
* fix konachan jpeg images extension

v0.4.0
+ added new portion of imageboards: atfbooru, lolibooru, hypnohub, tbib, konachan, paheal
* fix bug on post page due to empty viewer div
* rename 'rule34' to 'rule34.xxx'

v0.3.2
+ user option: ordered list of tag-types in file name - [see default in file name options]

v0.3.1
+ hold Ctrl key to left/right navigate when viewing - [true]
+ maximum width of image, px - [1000]
+ maximum height of image, px - [700]

v0.3.0
+ simple image viewer
+ create image viewer - [true]
+ view image sample - [true]
+ view jpeg image (yande.re option) - [false]
+ view 1st image on viewer activation - [true]
+ 'Shift+V' - switch viewer on/off
+ 'Ctrl+left/right' arrows - view previous/next image
+ @connect meta-data - to silence tampermonkey
* fix wrong image hostname for uberbooru

v0.2.7
* scrollable content of user menu window
* user menu window's size fitted to client's size
* move user menu 'close' button to the top right of the menu window (X sign)
* other little changes

v0.2.5
* fix typos

v0.2.4
+ image ID, and imageboard name at file name end [true]
+ dynamically rename images on user options change

v0.2.3
* fix image extensions (on tampermonkey)

v0.2.2
* bugfixes
* little changes

v0.2.0
+ youhate.us downloader
+ safebooru downloader
+ uberbooru downloader
+ bronibooru downloader
+ mspabooru downloader
+ e926.net downloader
+ e621.net downloader
+ booru.org downloader
+ prefixed imageboard name [false] (e.i. chan.sankakucomplex.com has the prefixed/long name "chan.sankaku", and the not prefixed name "sankaku")

v0.1.1
+ auto initialize the script on start [true]
+ 'Shift+M' - open/close the user menu dialog
+ little changes

v0.1.0
+ user menu

v0.0.13
* refactoring
* fix button events

v0.0.10
+ behoimi downloader

v0.0.9
+ "Shift+I" to (re)initialize the script (usefull for the imageboards with auto pagination)
* fix yande.re jpeg image extension

v0.0.8
+ sankaku downloader:

  • chan.sankakucomplex.com
  • idol.sankakucomplex.com

v0.0.7
+ "Shift+D" to toggle the download mode
+ donmai downloader:

  • safebooru.donmai.us
  • danbooru.donmai.us
  • sonohara.donmai.us
  • hijiribe.donmai.us

v0.0.6
+ yande.re downloader
+ download jpeg (instead of png) [false]

v0.0.5
+ rule34 downloader
+ add imageboard name to image name [true]

v0.0.3
+ gelbooru downloader
+ maximum tags in image name [10]
+ tags delimeter ['‒']