返回首頁 

คุณต้องเข้าสู่ระบบหรือลงทะเบียนก่อนดำเนินการต่อ

AutoPager

⭐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~

< Feedback on AutoPager

Review: Good - script works

Posted: 18-10-2022

https://www.hetubook.com/
请求支持这个网站。

X.I.UAuthor
Posted: 19-10-2022

这个网站写规则很简单,就是因为网页结构样式不同,为了确保使用体验与以前一致,我折腾了半天 CSS 样式才感觉差不多了。。。

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

    "和图书": {"host": ["www.hetushu.com","www.hetubook.com"],"url": "/^\\/book\\/\\d+\\/\\d+\\.html$/","style": "body,#center,#cbox,#content {overflow: initial !important;position: initial !important;} #right,.sidebarbox{position: fixed !important;right: 0;}","pager": {"nextL": "#next","pageE": "#content>.h2~div","replaceE": ".next,.pre","scrollD": 2000}}

scrollD 值越大越早触发翻页

Posted: 19-10-2022
Edited: 19-10-2022

是可以自動翻頁了, 但是翻頁後上下文變得不銜接了, 應該是翻頁後部分文字被覆蓋了.也是感謝你花了很長時間寫的CSS, 謝謝了.

X.I.UAuthor
Posted: 19-10-2022
Edited: 19-10-2022

看了下,发现网页内容最初是乱的,网页加载完成后,网站会运行 JavaScript 代码调整文字段落顺序来归正。

这样的话,那我就没办法了,无法解决。

淦,白折腾半天写规则。。。

Posted: 19-10-2022

好的, 還是謝謝你花了時間, 謝謝了.

X.I.UAuthor
Posted: 19-10-2022
Edited: 19-10-2022

想了想,放弃的话前面就白折腾半天写规则了,所以我又研究了下看能不能实现。

于是花了两个多小时,终于解决了:

    "和图书": {"host": ["hetushu.com","www.hetushu.com","hetubook.com","www.hetubook.com"],"url": "/^\\/book\\/\\d+\\/\\d+\\.html$/","style": "body,#center,#cbox,#content {overflow: initial !important;position: initial !important;} #right,.sidebarbox{position: fixed !important;right: 0;} #Autopage_iframe{display: none;}","pager": {"type": 6,"nextL": "#next","pageE": "#content>.h2~div","replaceE": ".next,.pre","loadTime": 500,"scrollD": 2000}}

新规则改用了翻页模式 6,即后台完整加载下一页内容(包括运行网页的 JS 代码),然后再将其内容提取并追加到当前网页底部。

loadTime 是后台完整加载下一页时的脚本等待时间(毫秒),过低可能网页还没加载完成,过高就太浪费时间了,因此可根据网页加载速度调整

scrollD 值越大越早触发翻页

这两个值你可根据需求自行调整来达到平衡(即追求的目标是向下滚动网页时,不会看到网页底部/加载过程,无缝衔接,全程无感)

Posted: 20-10-2022

可以用了, 太感謝了

Post reply

Sign in to post a reply.