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: 2022-06-25

"nnxqm": {
"host": "nnxqm.xyz",
"url": "return fun.getCSS('.pagination')",
"pager": {
"nextL": "//a[@class='active']/parent::li/following-sibling::li/a",
"pageE": ".main.margin-top-sm > .hex",
"replaceE": ".pagination"
}
}

自己写的 可以翻页 不过显示不了下一页图片 他这个图片地址放在 STYLE 里了
"bF": "return fun.src_bF(pageE)" 不管用

X.I.UAuthor
§
Posted: 2022-06-26

因为 fun.src_bF() 函数有 2 种模式,省略参数后默认是第一种(0,即元素的 src 属性),这种情况下需要用第二种(1,即元素的 CSS 样式 background-image 背景图片)

另外,只处理图片还不行,还需要去掉图片元素种的 loading 这个 Class,图片才会正确显示出来。

    "nnxqm": {
        "host": "nnxqm.xyz",
        "url": "return fun.getCSS('.pagination')",
        "pager": {
            "nextL": "//a[@class='active']/parent::li/following-sibling::li/a",
            "pageE": ".main.margin-top-sm>.hex",
            "replaceE": ".pagination"
        },
        "function": {
            "bF": "pageE[0].querySelectorAll('.media.loading').forEach((o)=>{o.className = 'media'}); return fun.src_bF(pageE, [1,'[data-src]','data-src'])"
        }
    }
§
Posted: 2022-06-26

还麻烦作者加一个boss直聘的自动翻页呢 谢谢谢谢
网址:https://www.zhipin.com/

Post reply

Sign in to post a reply.