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: 2022-02-24

大佬 麻烦添加一下https://www.24tupian.org/
无缝翻页
谢谢

X.I.UAuthor
§
Posted: 2022-02-24

这类网站,后续都会以自定义翻页规则方式提供支持,不再内置到脚本了。
另外,因为精力有限,所以对于不太感兴趣的网站,我只会挑选重点页面制作规则(下面这个规则就只是大图阅读页)。

点击浏览器右上角的 Tampermonkey 扩展图标,在脚本菜单中选择 自定义翻页规则,将规则粘贴到输入框默认的 { } 中间保存即可。

"24tupian": {
        "host": "www.24tupian.org",
        "functionS": "if (/\\/\\d{4}\\/.+\\.html/.test(location.pathname)) {return true;}",
        "style": "#imgshow img {max-width: 98%;}",
        "pager": {
            "nextL": "//div[@class='bb']//li[./img[@id='bimg']]/following-sibling::li[1]/a",
            "pageE": "css;#imgshow img",
            "replaceE": "css;.bb ul",
            "scrollD": 1500
        }
    }
X.I.UAuthor
§
Posted: 2022-02-25

为了让自定义翻页规则更方便,我又更新支持了只用 正则表达式 匹配 URL的方式,因此 functionS 我也干脆改名为更合适的 url 了。

目前脚本依然兼容楼上我发的那个,但是保险起见,还是建议改用下面这种最新规则:

    "24tupian": {
        "host": "www.24tupian.org",
        "url": "/\\/\\d{4}\\/.+\\.html/",
        "style": "#imgshow img {max-width: 98%;}",
        "pager": {
            "nextL": "//div[@class='bb']//li[./img[@id='bimg']]/following-sibling::li[1]/a",
            "pageE": "css;#imgshow img",
            "replaceE": "css;.bb ul",
            "scrollD": 1500
        }
    }
§
Posted: 2022-02-25

好评 - 脚本一切正常

Post reply

Sign in to post a reply.