 |
 |
 |
Mayriad's EH Download Shortcuts, Replaced by Mayriad's EH Master Script |
|
Jul 28 2019, 22:50
|
Mayriad
Group: Global Mods
Posts: 2,061
Joined: 18-December 10

|
QUOTE(xcaliber9999 @ Jul 28 2019, 22:06)  Thank you very much for your awesome work really appreciate it man u r the best. Btw everything is working fine.
I am so glad it is finally working for you. QUOTE(xcaliber9999 @ Jul 28 2019, 22:06)  Just wondering the new release download torrent file in place of archives from gallaries sometime are there any solution to this ? I want to download only archives can you kindly fix that please sir
Nothing has changed in this regard and torrent download is still controlled by one of the settings in the code. To disable all torrent downloads, you just need to change ENABLE_TORRENT_DOWNLOAD at the very beginning of the code from true to false, which means this line: CODE const ENABLE_TORRENT_DOWNLOAD = true; Should be changed to this: CODE const ENABLE_TORRENT_DOWNLOAD = false; You should try to read [ github.com] the user manual if you want to further customise this script. At least the settings section is short enough.
|
|
|
|
 |
|
Jul 28 2019, 23:46
|
Ichizon
Group: Members
Posts: 750
Joined: 9-December 09

|
Would it be possible to make a separate script to save individual UTF8/16 .txt-files containing Romaji and Japanese gallery names, upvoted tags and description/first post of each gallery? Like a manual link on each gallery to instantly save it as "<GALLERY NAME>.txt" (same as doggy bag archive name).
I'd like to do this myself, but I'm not that savvy with js.
|
|
|
|
 |
|
Jul 29 2019, 00:17
|
Mayriad
Group: Global Mods
Posts: 2,061
Joined: 18-December 10

|
QUOTE(Ichizon @ Jul 28 2019, 23:46)  Would it be possible to make a separate script to save individual UTF8/16 .txt-files containing Romaji and Japanese gallery names, upvoted tags and description/first post of each gallery? Like a manual link on each gallery to instantly save it as "<GALLERY NAME>.txt" (same as doggy bag archive name).
I'd like to do this myself, but I'm not that savvy with js.
QUOTE(mayriad @ Jul 28 2019, 16:49)  QUOTE(sketch00 @ Jul 28 2019, 13:42)  Hi, thank you for your awesome script.
Can you add some feature that can download metadatas of galleries? Like that of user-script 'eze' or program 'HDoujin Downloader'. They can download gallery metadata in form of 'info.json'
I wish I could organize galleries with metadata (tags, name, etc...) using Gallery Organizing Programs like 'HappyPanda X'
Thanks for your great job, again.
Edit: Why don't you just use these then? I do not think I will add that, because there are already a number of scripts and applications to do that and keep things very organised, like the ones you mentioned. I cannot write anything superior to these, so I am not gonna do it. It is a much better idea to use these established solutions and at least some of them can add metadata post-download. QUOTE(mayriad @ Jul 26 2019, 02:19)  Lastly, I think I will have to stress again that I am not a programmer and I may not respond to feature requests.
|
|
|
|
 |
|
Jul 29 2019, 00:45
|
Ichizon
Group: Members
Posts: 750
Joined: 9-December 09

|
QUOTE(mayriad @ Jul 29 2019, 00:17)  Lastly, I think I will have to stress again that I am not a programmer and I may not respond to feature requests.
Yes, I saw that you posted that, but you seemed savvy enough to be able to pull off something like that and I thought it was kind of related to preserving the gallery pulls. Many galleries have info in the description, like who scanned it or what pages certain artists' works are at. With a collective "standard" in structuring such text files, it could be easier to upload all of the hard groundwork to a potential backup site in the future. Thank you for the original script though. I understand if you won't try your hand at this, but maybe someone else around here could?
|
|
|
Jul 29 2019, 02:32
|
hobohobo
Group: Members
Posts: 110
Joined: 31-July 11

|
Anybody manged to get this to work for firefox?
|
|
|
Jul 30 2019, 00:23
|
ight123
Newcomer
 Group: Members
Posts: 46
Joined: 6-February 17

|
QUOTE(hobohobo @ Jul 29 2019, 02:32)  Anybody manged to get this to work for firefox?
I use Firefox but the skript does not work. Disabled any kind of blocking too. The button only says loading.
|
|
|
Jul 30 2019, 00:43
|
Mayriad
Group: Global Mods
Posts: 2,061
Joined: 18-December 10

|
QUOTE(hobohobo @ Jul 29 2019, 02:32)  Anybody manged to get this to work for firefox?
QUOTE(ight123 @ Jul 30 2019, 00:23)  I use Firefox but the skript does not work. Disabled any kind of blocking too. The button only says loading.
QUOTE(rraven314 @ Jul 26 2019, 02:19)  It will be updated for Firefox very soon.
See this if you cannot wait for the update: [ github.com] https://github.com/Mayriad/Mayriads-EH-Down...rtcuts/issues/1. I cannot update very often because it will reset user settings in the code. This post has been edited by mayriad: Jul 30 2019, 00:44
|
|
|
Jul 30 2019, 01:44
|
hobohobo
Group: Members
Posts: 110
Joined: 31-July 11

|
will wait until the firefox update because the chrome version won't work for me for some strange reason.
|
|
|
Jul 30 2019, 02:02
|
Mayriad
Group: Global Mods
Posts: 2,061
Joined: 18-December 10

|
QUOTE(hobohobo @ Jul 30 2019, 01:44)  will wait until the firefox update because the chrome version won't work for me for some strange reason.
What is your symptom? Did you enable mixed content?
|
|
|
|
 |
|
Jul 30 2019, 03:16
|
Mayriad
Group: Global Mods
Posts: 2,061
Joined: 18-December 10

|
Mayriad's EH Download Shortcuts v1.5.3
This script now works with Tampermonkey and Violentmonkey on Firefox. Greasemonkey is not supported. The readme has also been updated to include methods to enable mixed content in Firefox. You should read them if you have not found them via Google, DuckDuckGo, etc.
Please note that the settings in the code will be reset after an update, so you will need to edit them again if they have been previously edited. This script will not need a lot of updates in the future, so hopefully the annoyance can be minimised.
## Changelog
- Discarded `display: none` on iframes and used a workaround to make the script work on Firefox.
- Added a workaround for unavailable resample archives. The script will now automatically download the original version instead.
- Added function to skip content warning page. Previously the script would get stuck there.
- Fixed error notification popups. Previously internal error types are displayed instead of error messages.
- Improved the batch download button a little so that it does not declare page completion when there are tasks still loading.
- Rearranged the code a little.
- Added a bit of animation to singular download buttons.
|
|
|
|
 |
|
Jul 30 2019, 17:17
|
Mayriad
Group: Global Mods
Posts: 2,061
Joined: 18-December 10

|
Mayriad's EH Download Shortcuts v1.5.4
As usual, please note that the settings in the code will be reset after an update, so you will need to edit them again if they have been previously edited. This script will not need a lot of updates in the future, so hopefully the annoyance can be minimised.
## Changelog
- Fixed torrent selection code, which would previously stop tiny torrents from downloading and also incorrectly calculate torrent size, although this should be very rare.
- Added a feature to the singular download buttons to allow download attempts to be cancelled while they are still loading. If download attempts ever get stuck in this loading state, you can now click the button to reset it.
|
|
|
Jul 31 2019, 19:58
|
Kuro213
Newcomer
 Group: Members
Posts: 26
Joined: 21-February 11

|
This script just burned through my 10m GP within 20 galleries, using H@H
|
|
|
|
 |
|
Jul 31 2019, 20:49
|
Mayriad
Group: Global Mods
Posts: 2,061
Joined: 18-December 10

|
QUOTE(Kuro213 @ Jul 31 2019, 19:58)  This script just burned through my 10m GP within 20 galleries, using H@H
At the moment, I have no idea how the script could do that. As I stated in the readme, I do not have access to the H@H downloader and only coded it blindly with some help from another member. Therefore, more details please: 1. Does the gallery system not keep the H@H downloader open and free to you for a week once it is unlocked, like the doggie bag archive? In other words, after you have clicked one of the six H@H downloader options on the archive download page to download it once, will additional clicks right after that on the very same downloader option cost GP over and over again? Can someone else confirm this? 2. Moreover, how well did the script work and how did the singular download buttons behave? The H@H downloader does not involve mixed content so it should not get stuck, and the buttons should just go from "loading" to "done". 3. What version of the script are you using? And using which userscript loader on which browser? 4. For approximately how long did you run this script on EH gallery lists to download these 20 galleries? Edit: My tester has just confirmed that additional clicks on the H@H downloader do cost GP, even if you have just bought it. Your problem is probably caused by the fact that you used an outdated version, which should be v1.5.1. This version has a looping problem and it was quickly fixed in v1.5.2. This is why I urged you guys to update ASAP around that time... This post has been edited by mayriad: Jul 31 2019, 23:41
|
|
|
|
 |
|
Aug 1 2019, 00:51
|
hobohobo
Group: Members
Posts: 110
Joined: 31-July 11

|
Quick question can this script trigger a ban if you donwload too many archives?
|
|
|
|
 |
|
Aug 1 2019, 01:23
|
Mayriad
Group: Global Mods
Posts: 2,061
Joined: 18-December 10

|
QUOTE(hobohobo @ Aug 1 2019, 00:51)  Quick question can this script trigger a ban if you donwload too many archives?
This script uses official methods, so only page load limits apply. Therefore, the problem is not how many archives you download in total, but how quickly you try to download them. Unless you have other general problems like shared IP, I think you will not be banned as long as you do not start too many downloads at once via this script. As I explained in the readme, in practice this basically means you should be fine unless you spam the batch download button very quickly or greatly increase the batch download size setting. For example, if you click the batch download 5 times in 1 second to start 15 downloads, you would be banned very quickly; on the other hand, if you wait for a few seconds after each click (the longer the better), then I am almost sure that you probably will never get banned.
|
|
|
|
 |
|
Aug 1 2019, 19:02
|
Kuro213
Newcomer
 Group: Members
Posts: 26
Joined: 21-February 11

|
QUOTE(mayriad @ Aug 1 2019, 01:49) 
2. Moreover, how well did the script work and how did the singular download buttons behave? The H@H downloader does not involve mixed content so it should not get stuck, and the buttons should just go from "loading" to "done".
3. What version of the script are you using? And using which userscript loader on which browser?
4. For approximately how long did you run this script on EH gallery lists to download these 20 galleries?
Edit: My tester has just confirmed that additional clicks on the H@H downloader do cost GP, even if you have just bought it. Your problem is probably caused by the fact that you used an outdated version, which should be v1.5.1. This version has a looping problem and it was quickly fixed in v1.5.2. This is why I urged you guys to update ASAP around that time...
I'm using v1.5.4 2. The button stuck at "loading" even when the downloader has successfully started, and it keep retrying until I refresh the page. 3. I'm using Tampermonkey on Chrome
|
|
|
|
 |
|
Aug 1 2019, 19:59
|
Mayriad
Group: Global Mods
Posts: 2,061
Joined: 18-December 10

|
QUOTE(Kuro213 @ Aug 1 2019, 19:02)  I'm using v1.5.4
2. The button stuck at "loading" even when the downloader has successfully started, and it keep retrying until I refresh the page.
3. I'm using Tampermonkey on Chrome
What value are you using for ARCHIVE_TYPE_TO_DOWNLOAD? By the way, you can just click the button to stop it if it is stuck. Edit: okay, I just found that the reference material I got from my tester contained inconsistent information, because MHTML and HTML save data differently. The downloader option anchors in the first set, which I used, only has the href property, but they also have onclick in the second set. The onclick way makes more sense, so I guess the way I coded the download confirmation part of this H@H downloader feature was fundamentally wrong. Lastly, can you calculate roughly how much GP you unnecessarily wasted because of this bug? I absolutely cannot set a precedent and hand out blank cheques to everyone, but I can at least offer some compensation only to you for reporting this problem first. However, to be fair, it should have taken quite a while for this script to burn through a lot of GP unless you were downloading huge galleries, and you could have just cancelled these never-ending download attempts. This post has been edited by mayriad: Aug 2 2019, 00:45
|
|
|
|
 |
|
Aug 2 2019, 00:13
|
Mayriad
Group: Global Mods
Posts: 2,061
Joined: 18-December 10

|
Mayriad's EH Download Shortcuts v1.5.5
I just found that the reference material I got from my tester contained inconsistent information, so I guess the way I coded the download confirmation part of the H@H downloader feature was fundamentally wrong. However, access to this downloader is exclusive, so hopefully very few users were affected by this problem.
I cannot test this feature and so far it has had significant problems due to insufficient third-party information and testing, so you need to be very careful when you set the script to use this downloader; in particular, you should watch your GP wallet and stop any singular download that cannot finish within a minute. I am afraid I cannot be responsible for this feature at the moment.
I have updated the code to use another approach that I think is correct, but I have no idea whether it will work. Previously, the singular download buttons will get stuck when you try to download via the H@H downloader. If they still get stuck, then stop the buttons and do not use this script for the H@H downloader. Let me know if you still have problems, although I might just have to remove this feature if this approach is not right either.
Lastly, as usual, please note that the settings in the code will be reset after an update, so you will need to edit them again if they have been previously edited. This script will not need a lot of updates in the future, so hopefully the annoyance can be minimised.
## Changelog
- Changed the way the script checks for the completion of a download attempt via the H@H downloader. I think this is the correct approach but I cannot test it, so you need to exercise caution when using this downloader.
- Renamed the following two options/values for the ARCHIVE_TYPE_TO_DOWNLOAD setting to make them more consistent with the H@H options/values: - "Download Original Archive" has been renamed to "Original Archive" - "Download Resample Archive" to "Resample Archive"
- Added tooltip to "failed" and "unavailable" singular download buttons, which will explain why the download attempt failed.
- Fixed a minor problem introduced by the Firefox update that can cause a gallery list page to expand downwards when download attempts are running.
- Reorganised the code a little.
This post has been edited by mayriad: Aug 2 2019, 00:52
|
|
|
|
 |
|
Aug 2 2019, 12:16
|
Kuro213
Newcomer
 Group: Members
Posts: 26
Joined: 21-February 11

|
QUOTE(mayriad @ Aug 2 2019, 00:59)  What value are you using for ARCHIVE_TYPE_TO_DOWNLOAD? By the way, you can just click the button to stop it if it is stuck.
Edit: okay, I just found that the reference material I got from my tester contained inconsistent information, because MHTML and HTML save data differently. The downloader option anchors in the first set, which I used, only has the href property, but they also have onclick in the second set. The onclick way makes more sense, so I guess the way I coded the download confirmation part of this H@H downloader feature was fundamentally wrong.
Lastly, can you calculate roughly how much GP you unnecessarily wasted because of this bug? I absolutely cannot set a precedent and hand out blank cheques to everyone, but I can at least offer some compensation only to you for reporting this problem first. However, to be fair, it should have taken quite a while for this script to burn through a lot of GP unless you were downloading huge galleries, and you could have just cancelled these never-ending download attempts.
I was going through a 200 results search page and click download buttons without refreshing. The buttons stucked at "loading" but the downloader still started normally so I didn't think much about it. Yesterday I tested and saw it retry every 10 seconds, so with only 10 "loading" galleries about 200MB it can burn 10m GP in less than an hour. Anyway you don't need to compensate me, I still have some hath to spare. This post has been edited by Kuro213: Aug 2 2019, 12:17
|
|
|
|
 |
|
Aug 2 2019, 13:34
|
xcaliber9999
Group: Catgirl Camarilla
Posts: 2,817
Joined: 22-December 09

|
@mayriad : thanks a ton for keeping updating the script man really appreciate it. Btw if its not to much trouble can you edit the script so that it works on ex as well since its back online now
This post has been edited by Maximum_Joe: Aug 2 2019, 15:03
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
|
 |
 |
 |
|