hoothin / UserScripts

Greasemonkey scripts ( Pagetual / Picviewer CE+ / DownloadAllContent ) 油猴脚本集 ユーザースクリプト集
https://greasyfork.org/users/8227-hoothin
2.83k stars 503 forks source link

自动刷新页面和自动滚动失效 #615

Closed XiaoYin320 closed 1 month ago

XiaoYin320 commented 1 month ago

1在e-hentai使用时有时候会自动刷新页面,回到顶端。 打开某一漫画,向下翻页,有时候会自动刷新页面,然后就回到顶部。

2还有自动滚动功能,我试了下,缩放70%以下的时候,会停止自动滚动。

Desktop (please complete the following information):** 插件版本:1.9.37.51

hoothin commented 1 month ago

有具体的 url 吗?我自己也有用exhentai,没遇到过这样的问题,可以的话重现步骤请再详细一些。

XiaoYin320 commented 1 month ago

有具体的 url 吗?我自己也有用exhentai,没遇到过这样的问题,可以的话重现步骤请再详细一些。

我又试了下,当图片加载失败的时候,出现【绿色的裂开的小图标】的瞬间,会发生自动刷新页面

hoothin commented 1 month ago

多谢报错,的确是的,ehentai 的 img 里带了一句 onerror="this.onerror=null; nl('4976-477152')" 会自动刷新,我待会重写个规则

XiaoYin320 commented 1 month ago

多谢报错,的确是的,ehentai 的 img 里带了一句 onerror="this.onerror=null; nl('4976-477152')" 会自动刷新,我待会重写个规则 好的,麻烦作者了。 还有自动滚动失效的问题........

hoothin commented 1 month ago

我这边尝试缩放,没有发现自动滚动失效,还有其他步骤吗?

XiaoYin320 commented 1 month ago

我这边尝试缩放,没有发现自动滚动失效,还有其他步骤吗?

任意页面,比如百度,缩放为70%以下,就不会再自动滚动了.......

XiaoYin320 commented 1 month ago

111111111111 2222222222222222

XiaoYin320 commented 1 month ago

111111111111 2222222222222222

33333333333333

hoothin commented 1 month ago

看起来是 edge 的 bug,chrome 没有问题,我试试看能不能解决

XiaoYin320 commented 1 month ago

看起来是 edge 的 bug,chrome 没有问题,我试试看能不能解决

好的,麻烦作者了。

hoothin commented 1 month ago

已经更新 1.9.37.52 ,你试试看有没有解决

XiaoYin320 commented 1 month ago

已经更新 1.9.37.52 ,你试试看有没有解决

缩放问题解决了,自动刷新页面不一定能遇到,我一会再试试。 Thanks♪(・ω・)ノ

hoothin commented 1 month ago

规则我是更新在在线规则库中的,所以你需要手动点击更新规则

XiaoYin320 commented 1 month ago

onerror 我更新了规则库,还是会自动刷新,和之前情况是一样的,加载失败就会刷新

https://ghproxy.com/https://raw.githubusercontent.com/hoothin/UserScripts/master/Pagetual/pagetualRules.json[rules: 751]

http://wedata.net/databases/AutoPagerize/items_all.json[rules: 3816]

地址栏多了内容: ?nl=44895-477157&nl=44895-477157

hoothin commented 1 month ago

616

现在应该可以了,你重新更新试试。nl=44895-477157 是 exhentai 自己在刷新时添加的,应该是为了忽略缓存吧

XiaoYin320 commented 1 month ago

616 现在应该可以了,你重新更新试试。nl=44895-477157 是 exhentai 自己在刷新时添加的,应该是为了忽略缓存吧

现在【绿色的裂开的小图标】出现的时候,不会自动刷新页面了。 现在是出现之后就自己消失了,过一会,又会出现,然后又会消失...重复这样循环。

hoothin commented 1 month ago

是的,我把原先它自帶的加载失败刷新页面改成了加载失败刷新图片,如果你不想这样的话可以导入这个自定义规则,这个规则会直接把这个功能置空。

{
    "name": "E-Hentai",
    "author": "skofkyo",
    "example": "http://e-hentai.org/,https://exhentai.org/",
    "url": "^https?://(e-hentai|exhentai)\\.org/",
    "nextLink": "//table[@class='ptt']//a[string()='>'] | id('next') | id('unext')",
    "pageElement": ".itg>div,.itg>tbody>tr:not(:first-of-type),.gl1t, #gdt>div:not(.c), #img",
    "replaceElement": ".ptt,.ptb,.sn,.searchnav",
    "css": "#img {max-width: 100% !important;height: auto !important;min-height: 400px;}",
    "pageInit": "doc.getElementById('img').setAttribute('onerror','');"
}
XiaoYin320 commented 1 month ago

是的,我把原先它自帶的加载失败刷新页面改成了加载失败刷新图片,如果你不想这样的话可以导入这个自定义规则,这个规则会直接把这个功能置空。

{ "name": "E-Hentai", "author": "skofkyo", "example": "http://e-hentai.org/,https://exhentai.org/", "url": "^https?://(e-hentai|exhentai)\.org/", "nextLink": "//table[@class='ptt']//a[string()='>'] | id('next') | id('unext')", "pageElement": ".itg>div,.itg>tbody>tr:not(:first-of-type),.gl1t, #gdt>div:not(.c), #img", "replaceElement": ".ptt,.ptb,.sn,.searchnav", "css": "#img {max-width: 100% !important;height: auto !important;min-height: 400px;}", "pageInit": "doc.getElementById('img').setAttribute('onerror','');" } 导入

好的,感谢作者了!!!