⭐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~
试了下,可以确定的是该网站反制了我脚本的翻页方式,这已经不是第一次了。。。
该网站在响应头中声明了 x-frame-options: DENY
来禁止其在 iframe 中运行。
一开始该网站我是逆向破解来实现自动无缝翻页的,后来该网站更新了技术,我也懒得去花费大量时间破解了,就用了省力的方法(即现在的翻页模式 5,iframe 套娃),不过该网站这次禁止 iframe 后该翻页模式就不能用了。
要说吧,也不是没有解决办法,比如装个可以修改响应头的扩展,例如:Header Editor,添加一个修改响应头的规则:
匹配类型: 域名
匹配规则: copymanga.site
执行类型: 常规
头名称: x-frame-options
头内容: _header_editor_remove_
这样的话,就可以删除 x-frame-options
响应头限制了,然后就和以前一样可以正常翻页了,但这种方法显然是无法让每个人都做一遍的。
也可以通过后台打开新标签页加载下一页,然后跨标签页交流获取需要的网页内容插入本页,但是我嫌麻烦,一般网页也用不上这种方案,我也懒得为此编写新翻页模式了。。。
我只是想提高该网站的用户使用体验(我自己是本身是不看漫画的),但既然该网站站长不想我这么做,那么就算了,后续我会移除对该网站的支持。你把目前的该网站翻页规则加到你的自定义规则里吧,然后用我上面说的方法还可以继续用下去(虽然后续我也不再维护更新该网站规则了)。
复制粘贴到脚本 自定义翻页规则
默认的 { }
中间保存(浏览器右上角 Tampermonkey 扩展图标内的脚本菜单)
"拷贝漫画": {
"host": "/copymanga\\./",
"url": "/\\/chapter\\//",
"style": ".upMember, .comicContainerAds, .footer {display: none !important;} body, html {height: auto !important;}",
"iframe": true,
"history": true,
"pager": {
"type": 5,
"nextL": ".comicContent-next>a",
"style": "h4.header, h4.header +div[style*='fixed'] {display: none !important;}",
"scrollD": 3000
}
}
其实该网站本身就支持一次看完当前话的所有图片,而不像那些看一张图片就要翻一页的漫画网站,因此我的脚本支持与否影响并不大,我更倾向于去解决后者。
对了,忘了还有另外两个 分类页、推荐页 的规则忘记发出来了,以下是完整的三个规则:
"拷贝漫画": {
"host": "/copymanga\\./",
"url": "/\\/chapter\\//",
"style": ".upMember, .comicContainerAds, .footer {display: none !important;} body, html {height: auto !important;}",
"iframe": true,
"history": true,
"pager": {
"type": 5,
"nextL": ".comicContent-next>a",
"style": "h4.header, h4.header +div[style*='fixed'] {display: none !important;}",
"scrollD": 3000
}
},
"拷贝漫画 - 分类页": {
"host": "/copymanga\\./",
"url": "/\\/comics/",
"pager": {
"type": 6,
"nextL": "li.next>a",
"pageE": ".exemptComic_Item",
"replaceE": "ul.page-all",
"loadTime": 1000,
"scrollD": 3000
},
"function": {
"bF": "return fun.src_bF(pageE)"
}
},
"拷贝漫画 - 推荐页": {
"host": "/copymanga\\./",
"url": "/\\/recommend/",
"pager": {
"nextL": "li.next>a",
"pageE": ".exemptComic_Item",
"replaceE": "ul.page-all"
},
"function": {
"bF": "return fun.src_bF(pageE)"
}
}
感谢您的回复和更新 辛苦了
拷贝漫画copymanga.site的翻页无法使用,会提示copymanga.site拒绝链接
上周还能用的,难道是拷贝自己ban了吗emmmm