AutoPager

Append the next page content to the bottom seamlessly (like a waterfall)~

< Feedback on AutoPager

Review: Good - script works

§
Posted: 2022-05-22

请为这个网站添加规则
https://www.sbs.com.au/chinese/mandarin/news-and-features
谢谢

X.I.UAuthor
§
Posted: 2022-05-22

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

    "sbs": {
        "host": "www.sbs.com.au",
        "url": "/^\\/chinese\\/mandarin\\//",
        "pager": {
            "nextL": "a.page-next",
            "pageE": ".topic>.block",
            "replaceE": ".pagination",
            "scrollD": 2000
        },
        "function": {
            "bF": "pageE.forEach((a)=>{a.querySelectorAll('noscript').forEach((b)=>{b.outerHTML = b.outerHTML.replace(/<\\/?noscript>/g,'')});}); return pageE"
        }
    }

scrollD 值越大,就会越早触发翻页(滚动条与网页底部之间的距离),可根据需求自行调整。

§
Posted: 2022-05-23

谢谢。我后面才发现原来可以自己制定规则。以后我有新的规则也会一并提交给你。

Post reply

Sign in to post a reply.