AutoPager

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

< Feedback on AutoPager

Review: Good - script works

§
Posted: 2023-01-25

希望能支持下 https://www.mcmod.cn/ Thanks♪(・ω・)ノ

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

这网站似乎带页码的页面很多,我精力有限一般只考虑制作重点页面,这种网站请提供你想要添加支持的具体网页 URL 地址

§
Posted: 2023-01-26

搜索:https://search.mcmod.cn/s?key=HMCL

短评区:https://www.mcmod.cn/class/7305.html(模组页面),https://www.mcmod.cn/modpack/438.html(整合包页面)

审核列表:https://www.mcmod.cn/verify.html?starttime=1643126400&endtime=1674662400&order=verifytime

编辑历史记录:https://www.mcmod.cn/history.html?starttime=1643126400&endtime=1674662400

模组检索:https://www.mcmod.cn/modlist.html

上面的是我常用的

成就生成器:https://www.mcmod.cn/tools/achievements

神秘代码:https://www.mcmod.cn/tools/secretcode/

矿物/自然资源分布图:https://www.mcmod.cn/worldgen.html

基本上就是这些,部分链接似乎页面的逻辑都是一样的,改下链接应该就行(的吧()

谢谢啦Thanks♪(・ω・)ノ

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

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

    "mcmod.cn": {
        "host": [
            "www.mcmod.cn",
            "search.mcmod.cn"
        ],
        "url": "/^\\/((modlist|worldgen|verify|history)\\.html|s)/",
        "style": "[data-name='worldgen-list']+.common-comment-block {display: none !important;}",
        "pager": {
            "nextL": ".page-item.active+.page-item>a",
            "pageE": ".modlist-list-frame>.modlist-block, .worldgen-list, .verify-list-list-table>tbody>tr, .history-list-frame, .search-result-list",
            "replaceE": ".pagination:not([data-name='comment-list'])",
            "scrollD": 2000
        }
    }

挨个看了一遍,只有这五个页面可以添加支持,其他的都是动态加载内容(评论区)。
/s
/modlist.html
/worldgen.html
/verify.html
/history.html

其中 worldgen 页为了避免底部评论区影响翻页,我用 style 规则将其屏蔽了。

scrollD 值越大越早触发翻页,可自行调整。

§
Posted: 2023-01-27

请问这个是不会加到自动更新规则里面了吗

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

会,不过我一般是先把规则发出来让你们先用着,因为外置翻页规则是有缓存的,我加进去更新你们那边可能还需要等会儿才行,而且我可能不会第一时间就加进去,比如我可能还在同时写其他规则等情况。

Post reply

Sign in to post a reply.