Infinite scroll & reader mode with image prefetch and floating controls for E-Hentai / ExHentai
Enhanced continuous reading mode for E-Hentai / ExHentai with floating controls and ultra-fast loading.
# Install dependencies
npm install
# Development mode (with hot reload)
npm run dev
# Production build
npm run build
The built userscript will be at dist/e-hentai-plus.user.js.
src/
├── main.ts # Entry point
├── menu-commands.ts # GM_registerMenuCommand registration
├── types/
│ └── index.ts # Shared type definitions
├── state/
│ ├── config.ts # Constants and settings loader
│ └── store.ts # Centralized state management
├── utils/
│ ├── dom.ts # DOM utility functions
│ └── icons.ts # SVG icon constants
├── services/
│ ├── page-parser.ts # Page parsing (total pages, next URL)
│ ├── image-loader.ts # Image loading with retry
│ └── prefetch.ts # Next page prefetching
├── ui/
│ ├── styles.css # Component styles
│ ├── float-control.ts # Floating control buttons
│ ├── settings-panel.ts # Settings panel UI
│ └── single-page/
│ ├── overlay.ts # Reader mode overlay
│ ├── scrollbar.ts # Custom scrollbar
│ ├── navigation.ts # Keyboard/wheel/click navigation
│ └── auto-play.ts # Auto-play logic
└── features/
├── scroll-mode.ts # Infinite scroll mode
└── single-page-mode.ts # Reader mode facade
MIT