⭐Append the next page content to the bottom seamlessly (like a waterfall, Unlimited scrolling, no need to manually click on the next page) ⭐, support various forums, social networking, games, comics, novels, academics, search engines (Google, Bing, Yahoo...) and other websites~
因为 Github Issues 内的加载更多按钮是在中间而非常规的网页底部,而脚本的模式 2(专门处理这种网页自带 加载更多 按钮的)设计针对的是位于底部的,因此效果可能不是很好。
我只能尝试把 scrollD
这个触发的阈值拉高(滚动条底部与网页底部的距离小于等于该值时触发)。
"Github - Issue": {
"host": "github.com",
"url": "return fun.indexOF(/\\/issues\\/\\d+$/)",
"pager": {
"type": 2,
"nextL": "button[data-testid=issue-timeline-load-more-load-top][aria-disabled=false]",
"scrollD": 9999
}
}
很好用,感谢!
今天想让ai写一个pull和discussion的规则(这两个的load more好像是同样的逻辑),结果失败了,辛苦作者再瞄一眼?
https://github.com/CherryHQ/cherry-studio/pull/6894
https://github.com/uBlockOrigin/uAssets/discussions/27472
放弃,不知道怎么把html代码贴上来,直接看上面链接吧
另外还有几个疑问:
1、有些网页自动翻页以后,地址栏会跟着狂跑,一旦原地刷新,就会直接加载刚才翻到的那一页,这是插件的设计逻辑吗?因为有时候刷新完了又会触发当前的翻页状态就会继续往下翻。
2、看了一下https://github.com/XIU2/UserScript/blob/master/other/Autopage/rules.json,github的issues索引页是不是bug难修?貌似现在翻页可以继续,但页码一直停在第一页不动。
3、话说github的翻页逻辑也太多了吧,有种不同团队写不同网页板块的割裂感……
先回答你的疑问:
添加历史记录+修改地址/标题
功能可以在脚本菜单中关闭,具体你可以看脚本介绍页的该功能介绍。现代网页技术
,所以以后我这个脚本的作用会来越来少)。复制粘贴到脚本 自定义翻页规则
默认的 { }
中间保存(浏览器右上角 Tampermonkey 扩展图标内的脚本菜单)
"Github - Issue/Discussions/Pull - loadmore": {
"host": "github.com",
"url": "return fun.indexOF(/\\/(issues|discussions|pull)\\/\\d+$/)",
"pager": {
"type": 2,
"nextL": "button[data-testid=issue-timeline-load-more-load-top][aria-disabled=false], button.ajax-pagination-btn[data-disable-with=Loading…]:not([disabled])",
"scrollD": 9999
}
}
可以支持github issues中的load more吗?感谢!
https://github.com/uBlockOrigin/uAssets/issues/3367