Nhentai Endless (Updated 2025)

Endless scroll.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey to install this script.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

ผู้เขียน
Greekie_10
จำนวนติดตั้งประจำวัน
0
จำนวนติดตั้งทั้งหมด
32
คะแนน
0 0 0
เวอร์ชัน
3.0
สร้างเมื่อ
05-07-2025
อัปเดตเมื่อ
05-07-2025
Size
6.37 กิโลไบต์
สัญญาอนุญาต
MIT
ปรับใช้กับ

A Tampermonkey userscript that adds optional endless scrolling to paginated gallery listing pages on nhentai.net, with dropdown page control. It avoids affecting doujin pages (/g/...) entirely and includes quality-of-life improvements like lazy image fixing and arrow key protection. (Other extension other than Tampermonkey might work, if not please give us feedback)

PLEASE NOTE: In ♾️ Endless mode, you must scroll to the bottom twice (bounce up and down) to load the next page. This prevents accidental continuous loading every time you scroll.

Please donate at https://ko-fi.com/greekie

FEATURES:

1. The script automatically disables itself on:
-https://nhentai.net/g
-https://nhentai.net/g/123456
Why? To avoid breaking individual doujin reader pages.

2. Endless Page Loading
Uses Tampermonkey's GM_xmlhttpRequest to fetch next gallery listing pages
Parses and extracts the #content block, appending to the current page
Prevents duplicates using lastUrl
Prevents overloads using isLoading, reachedEnd, and scroll confirmation

3. Bottom Detection with Double-Scroll Confirmation
Forces user to scroll to bottom twice before loading more
Prevents accidental infinite loading (nice UX move)

4. Dropdown Control with 1–5 Page & Infinite Mode
Lets users choose how many extra pages to load
If 1–5 selected: loads them immediately
If ♾️ (Infinity) selected: enables scroll-based auto-loading

5. Movable Dropdown UI
Users can drag the dropdown anywhere on the screen for convenience
Styled to match nhentai’s aesthetic without being intrusive

Additional Polish:
Fully modular functions (like fixLazyImages, loadNextPage, etc.)
container.innerHTML = '' clears old content on dropdown change
Defensive checks for #content, .gallery, etc.
console.log for status updates (great for debugging)
@connect-src nhentai.net enables cross-origin fetches

Please donate https://ko-fi.com/greekie