diff --git a/plugin/js/parsers/NovelfullParser.js b/plugin/js/parsers/NovelfullParser.js index 5938c721..5fe9111a 100644 --- a/plugin/js/parsers/NovelfullParser.js +++ b/plugin/js/parsers/NovelfullParser.js @@ -77,8 +77,13 @@ class NovelfullParser extends Parser{ let link = dom.querySelector("li.last a"); let urls = []; if (link != null) { - let limit = link.getAttribute("data-page") || "-1"; - limit = parseInt(limit) + 1; + let limit = link.getAttribute("data-page"); + if (limit == null) + { + let url = new URL(link.href); + limit = url.searchParams.get("page_num") || null; + } + limit = parseInt(limit || "-1") + 1; for (let i = 1; i <= limit; ++i) { urls.push(NovelfullParser.buildUrlForTocPage(link, i)); } @@ -91,6 +96,8 @@ class NovelfullParser extends Parser{ if (hostname === "freenovelsread.com") { link.pathname = link.pathname.split("/")[1] + "/" + i; + } else if (hostname === "novelfulll.com") { + link.search = `?page_num=${i}`; } else { link.search = `?page=${i}&per-page=50`; }