Skip to content

Instantly share code, notes, and snippets.

@reppyricky
reppyricky / webnovel-downloader.js
Last active December 6, 2025 14:37 — forked from yukiarimo/webnovel-downloader.js
Web novel Downloader
function extractAndDownloadAllChapters() {
// Find all chapter sections that contain both title and content
const chapters = document.querySelectorAll('.chapter_content');
let allChaptersText = [];
chapters.forEach(chapter => {
// Get the header text
const headerElement = chapter.querySelector('.cha-tit.skiptranslate');
const headerText = headerElement ? headerElement.textContent.trim() : 'Untitled Chapter';