AutoPager

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

< Feedback on AutoPager

Review: Good - script works

§
Posted: 2023-06-19

申请适配:https://ec.sod.co.jp/prime/videos/genre/?detail111=111
网站没有上一页 下一页链接,点最后一个又出来19个翻页链接

X.I.UAuthor
§
Posted: 2023-06-20

不一定非要去找 下一页 的页码链接,这种情况下,可以 以当前页码为基准(即第一页 页码),来获取下一页的页码(即第二页 页码)。

该网站,当前页页码都有个唯一的 class .page_list_li_on,因此只需要定位该页码元素后面的下一个页码,就是下一页的地址了。

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

    "ec.sod.co.jp": {
        "host": "ec.sod.co.jp",
        "url": "/^\\/prime\\/videos\\/genre\\/\\?/",
        "blank": 4,
        "pager": {
            "nextL": ".page_list_li_on+.page_list_li>a",
            "pageE": "#videos_s_mainbox",
            "replaceE": "#page_list",
            "scrollD": 2000
        }
    }
§
Posted: 2023-06-20

感谢适配

Post reply

Sign in to post a reply.