Yet Another E-hentai Viewer

Fullscreen Image Viewer for E-hentai/Exhentai with a sidebar, preloading, dual page mode, and other stuff.

< Feedback on Yet Another E-hentai Viewer

Review: Good - script works

§
Posted: 2025-11-05

How can I modify this userscript so that it works with an infinite scroll userscript like Pagetual? When I scroll past the first page of a gallery to load more thumbnails, the new thumbnails will use the site's default image viewer instead of YAEV's.

shlsdvAuthor
§
Posted: 2025-11-10

Why not use the embedded gallery view that comes built-in with the viewer?
It has infinite scroll.

§
Posted: 2025-11-13

I tried the embedded gallery but didn't like how the thumbnails loaded one at a time. With the default gallery + Pagetual all the thumbnails load almost instantly. I suppose if you could change that then I'd use the embedded gallery instead. Thanks.

§
Posted: 2025-11-13

I should also note I had the same issue as another user where thumbnails in the embedded gallery wouldn't load at all unless I had "fetch full images" enabled. I tried disabling all other user scripts and adblockers but that didn't help.

shlsdvAuthor
§
Posted: 2025-11-16

The reason images load one at a time with the embedded gallery is because something is broken for you. Otherwise it would load many thumbs at once before loading the higher res images.

Please do the following.

1. tell me your browser and link to a gallery where the issue occurs
2. go to that gallery, disable "fetch full images". Also disable all other userscripts for ex/ehentai except for YAEV.
3. open browser console (ctrl+shift+k, or f12 then console tab)
4. force refresh the gallery page with ctrl+shift+r, and observe the logs.
5. right click > "copy all messages", and send it here.

§
Posted: 2025-11-16

Browser: Brave 1.84.139 (Official Build) (64-bit)
Gallery: https://exhentai.org/g/3639964/9fc783d97c/
Console:
userscript.html?name=Yet-Another-E-hentai-Viewer.user.js&id=ee70575f-e922-4be6-a79c-73a1522ba43c:1009 Config: Loading config values from local storage
userscript.html?name=Yet-Another-E-hentai-Viewer.user.js&id=ee70575f-e922-4be6-a79c-73a1522ba43c:11221 Extracted values:
Gallery ID: 3639964
Total Images: 8
Total Pages: 1
Initial Page: 1
userscript.html?name=Yet-Another-E-hentai-Viewer.user.js&id=ee70575f-e922-4be6-a79c-73a1522ba43c:11246 Gallery uses spritesheets: true
userscript.html?name=Yet-Another-E-hentai-Viewer.user.js&id=ee70575f-e922-4be6-a79c-73a1522ba43c:8233 GridView: showGridView called, initialIndex: null
userscript.html?name=Yet-Another-E-hentai-Viewer.user.js&id=ee70575f-e922-4be6-a79c-73a1522ba43c:7911 GridView: Fetching only thumbs for page 0 (triggered by index 0)
userscript.html?name=Yet-Another-E-hentai-Viewer.user.js&id=ee70575f-e922-4be6-a79c-73a1522ba43c:7911 GridView: Fetching only thumbs for page 0 (triggered by index 1)
userscript.html?name=Yet-Another-E-hentai-Viewer.user.js&id=ee70575f-e922-4be6-a79c-73a1522ba43c:7911 GridView: Fetching only thumbs for page 0 (triggered by index 2)
userscript.html?name=Yet-Another-E-hentai-Viewer.user.js&id=ee70575f-e922-4be6-a79c-73a1522ba43c:7911 GridView: Fetching only thumbs for page 0 (triggered by index 3)
userscript.html?name=Yet-Another-E-hentai-Viewer.user.js&id=ee70575f-e922-4be6-a79c-73a1522ba43c:7911 GridView: Fetching only thumbs for page 0 (triggered by index 4)
userscript.html?name=Yet-Another-E-hentai-Viewer.user.js&id=ee70575f-e922-4be6-a79c-73a1522ba43c:7911 GridView: Fetching only thumbs for page 0 (triggered by index 5)
userscript.html?name=Yet-Another-E-hentai-Viewer.user.js&id=ee70575f-e922-4be6-a79c-73a1522ba43c:7911 GridView: Fetching only thumbs for page 0 (triggered by index 6)
userscript.html?name=Yet-Another-E-hentai-Viewer.user.js&id=ee70575f-e922-4be6-a79c-73a1522ba43c:7911 GridView: Fetching only thumbs for page 0 (triggered by index 7)

shlsdvAuthor
§
Posted: 2025-11-16
Edited: 2025-11-16

Thank you. Unfortunately I wasn't able to reproduce this bug with the same version of brave.

  1. In the latest version I have added a small tweak which may or may not fix this issue. Please update and try again.

  2. If it still doesn't work, repeat the above and send me the logs again (they will include more details).

  3. Try to open the gallery https://e-hentai.org/g/3639964/9fc783d97c/ in a private tab without logging into your ex/ehentai account. Ensure there are no cookies/local storage entries from your actual account. See if thumbs work when "fetch full images" is off.

    • If that fixes it: It's caused by something specific to your ex/ehentai account, likely a setting. Try to figure out what specifically is breaking thumbs.
    • If that still doesn't work, try in a new browser profile (browser menu > more tools > add a new profile). You will have to install tampermonkey and the script again in that new profile. Open the ehentai gallery without logging in and disable "fetch full images". Thumbs should work. If this fixes it, it would likely mean that the breakage is caused by either your userscript manager configuration or by some extension, or (less likely) by your browser configuration. Again, please try to figure out what is causing this.
§
Posted: 2025-11-16

Good news! I did some testing and the problem was indeed with an account setting. The "Gallery Page Thumbnail Labeling" setting needs to be set to None for the embedded gallery to work.

§
Posted: 2025-11-16

Unrelated issue. I found that with my browser's bookmarks bar enabled (my preferred setting), a vertical scrollbar appears in the viewer despite being set to fit-window mode. Could you change it so that doesn't happen? Thanks.

shlsdvAuthor
§
Posted: 2025-11-17

The "Gallery Page Thumbnail Labeling" setting needs to be set to None for the embedded gallery to work.

Fixed in the new version.

I found that with my browser's bookmarks bar enabled (my preferred setting), a vertical scrollbar appears in the viewer despite being set to fit-window mode.

I cannot reproduce this using the same url https://e-hentai.org/g/3639964/9fc783d97c/ in a fresh profile in brave browser and no account in ehentai, with the bookmarks bar enabled (ctrl+shift+b). Please try to find out if it's related to a specific account or browser setting.

§
Posted: 2025-11-17
Edited: 2025-11-17

I was able to reproduce the issue in a fresh Brave profile with only TamperMonkey and this script installed. However, I noticed it only happens on some pages. In the example gallery we've been using it happens on the first and last page regardless of which profile/setup I use.

shlsdvAuthor
§
Posted: 2025-11-17

That's peculiar. Is the image zoomed in at all when the scroll bar shows up (check against the full image, it might be that YAEV does not want to zoom out further when it should be able to).

Could you send a screenshot with the issue, of your entire browser and fresh profile? Not sure if I can help here.

§
Posted: 2025-11-18

I uploaded a screenshot of pages 1 and 2 on a fresh profile. The image is not zoomed; pressing the zoom out button had no effect.

shlsdvAuthor
§
Posted: 2025-11-18

In the latest version, I forcefully disable scrollbars when using fit-window mode. Please update and see if that fixes the issue.

If it doesn't:

1. Reload the page and click on on the first image in the gallery. Then send the logs here.
2. Then switch to the html inspector tab. Find the element `imgDisplay`, and delete it. Then delete all sibling elements `imgDisplay2`, `videoDisplay`, etc. Then delete its parent element `imgContainer`. Continue deleting parents (`imgContainerContainer`, `Overlay`, etc) until the scrollbar disappears. Tell me the first element you deleted that made the scrollbar disappear.

§
Posted: 2025-11-18

That worked. Thanks for all your hard work!

Post reply

Sign in to post a reply.