Shows all pages at once in online view for these sites: Asura Scans, Batoto, BilibiliComics, Comick, Dynasty-Scans, Flame Comics, Ikigai Mangas - EltaNews, Ikigai Mangas - Ajaco, KuManga, LHTranslation, Local Files, MangaBuddy, MangaDemon, MangaDex, MangaFox, MangaHere, Mangago, MangaHub, MangaKakalot, MangaNelo, MangaNato, MangaOni, Mangareader, MangaToons, ManhwaWeb, MangaGeko.com, MangaGeko.cc, ReadComicsOnline, ReaperScans, TuMangaOnline, WebNovel, WebToons, WeebCentral, Vortex Scans, ZeroSc
Hi guys i've been trying to read one piece in spanish and i've found one page where its in color and in spanish but the script didn't work so i've fixed just adding one pair of lines in the script. Here is the page so you can see it's not loading any images it's just loading a loading.gif https://zonatmo.com/library/manga/2992/one-piece-digital-colored-comics
and if you overwrite the variable tmofans with this ->
const tmofans = {
name: "TuMangaOnline",
url: /https?:\/\/(www\.)?(.+).com\/(viewer|news)\/.+\/(paginated|cascade)/,
homepage: "https://lectortmo.com/",
language: ["Spanish"],
category: "manga",
run() {
const currentUrl = window.location.href;
if (currentUrl.includes("/paginated")) {
const newUrl = currentUrl.replace("/paginated", "/cascade");
window.location.replace(newUrl);
return;
}
const images = [
...document.querySelectorAll(
".img-container img, .viewer-container img",
),
];
const pages = [
...document.querySelectorAll(
"div.container:nth-child(4) select#viewer-pages-select option",
),
];
const num = images.length > 1 ? images.length : pages.length;
return {
title: document.querySelector("title")?.textContent?.trim(),
series: document
.querySelector('a[title="Volver"]')
?.getAttribute("href"),
pages: num,
prev: document.querySelector(".chapter-prev a")?.getAttribute("href"),
next: document.querySelector(".chapter-next a")?.getAttribute("href"),
...(images.length > 1
? {
listImages: images.map((item) => $(item).attr("data-src")),
}
: {
listPages: Array(pages.length)
.fill(0)
.map(
(_, i) =>
`${window.location.href.replace(/\/\d+$/, "")}/${i + 1}`,
),
img: "#viewer-container img, .viewer-page",
}),
};
},
};
it will work. it just changes the url from "paginated" to "cascade" when you gonna read a chapter