NHentai - Infinite Scroll & Enhanced Ad Blocker

Dynamically loads more comics as you scroll, blocks extra ads, pop-up video ads, and unwanted new tab redirects.

These are versions of this script where the code was updated. Show all versions.

  • v2.2 2025-06-29
  • v2.1 2025-04-23

    NHentai Infinite Load v2.1

    🔧 New Features:
    - Infinite Scroll: Automatically loads more galleries as you scroll, removing the need for manual pagination.
    - Blacklist Filtering: Optionally remove galleries tagged as blacklisted, both on initial load and during infinite scroll.
    - Settings Menu: Easy toggles via userscript menu to enable/disable infinite scroll and blacklist filtering.

    ⚡ Enhancements:
    - Improved Performance: Optimized DOM manipulation and scroll handling with debounced events.
    - Smart Retry Logic: Automatically retries loading failed pages with exponential backoff on rate limits (e.g., HTTP 429).
    - Cleaner Codebase: Modular configuration and function separation for better readability and maintainability.
    - Loading Indicator: Custom animated loader appears while new content is fetched.

    🛡️ Compatibility & Safety:
    - Safe fallback when pagination isn't detected (e.g., on Favorites page).
    - Extensive console logging to help with debugging and customization.

  • v2.0 2025-04-23

    Changes made in Version (v2.0)

    - Infinite Scroll Enhancement: Automatically loads more comics as you scroll, improving the browsing experience.

    - Blacklist Filtering: Optionally hides blacklisted content (as marked on the site) even during infinite scrolling.

    - User Settings UI: Easily toggle infinite loading and blacklist removal directly from the userscript menu.

    - Improved Performance: Efficient loading using IntersectionObserver and debounced scroll events.

    - Visual Loader Indicator: Displays a loading animation while new content is being fetched.

    - Retry Logic: Handles fetch failures with exponential backoff retries for robustness.

  • v1.0 2025-04-13