AutoPager

Append the next page content to the bottom seamlessly (like a waterfall, Unlimited scrolling, no need to manually click on the next page)~

< Feedback on AutoPager

Review: Good - script works

§
Posted: 2023-03-01

求匹配支持看书网站:https://www.hetushu.com/book/38/26113.html
能自动翻页,但是不显示第二页 章节标题,所以没办法用。
看小说 不显示标题没有办法看 求支持 谢谢

X.I.UAuthor
§
Posted: 2023-03-01

因为我追求的是 “无缝”,再加上 章节标题元素 往往是和 正文元素 是分开的,不好做通用规则,因此目前就是这样,不过脚本在翻页时,还会添加历史记录并修改地址栏 URL 并修改网页标题。

因此你可以通过 当前网页的标签页标题(即网页标题)来判断当前翻到了第几章节。

X.I.UAuthor
§
Posted: 2023-03-01
Edited: 2023-03-01

我看了下,这个网站是我以前写的独立规则,而非通用规则,这样的话,倒是可以用自定义规则来覆盖脚本的外置规则:

复制粘贴到脚本 自定义翻页规则 默认的 { } 中间保存(浏览器右上角 Tampermonkey 扩展图标内的脚本菜单)

如果你只想保留 章节标题 的话,用这个:

    "和图书": {
        "inherits": true,
        "pager": {
            "pageE": "#content>h2:not(.h2)~*"
        }
    }

如果你想保留 卷名+章节标题 的话,用这个:

    "和图书": {
        "inherits": true,
        "pager": {
            "pageE": "#content>*"
        }
    }
§
Posted: 2023-03-03

好用,谢谢,老大了

Post reply

Sign in to post a reply.