WhiteSevs / TamperMonkeyScript

自用油猴脚本
https://greasyfork.org/zh-CN/users/521923-whitesevs
GNU General Public License v3.0
43 stars 5 forks source link

[Bug] <github页面响应慢> #19

Closed physxz closed 3 months ago

physxz commented 6 months ago

先决条件

脚本运行的容器

扩展-篡改猴(TamperMonkey)

扩展版本

No response

脚本名称

网盘链接识别

问题描述

GitHub页面点击无响应/响应变慢(5-10s才会反应)

复现步骤

No response

WhiteSevs commented 6 months ago

哪个页面?

physxz commented 5 months ago

应该是所有的。不是网速或VPN造成的,油管响应很快,但是只要打开github就会变慢,github里边的所有页面都是

WhiteSev @.***> 于2024年5月13日周一 20:47写道:

哪个页面?

— Reply to this email directly, view it on GitHub https://github.com/WhiteSevs/TamperMonkeyScript/issues/19#issuecomment-2107486601, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWFFEOMKN46RC2HI63D6P3ZCCY5TAVCNFSM6AAAAABHUC57QGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBXGQ4DMNRQGE . You are receiving this because you authored the thread.Message ID: @.***>

WhiteSevs commented 5 months ago

github页面启用了CSP策略,所以页面的字符串match行为会由Worker多线程匹配处理变为单线程进行匹配,页面内容多的话会阻塞页面加载,最好直接把github的域名排除