cilxe / JavaScriptProjects

JavaScript projects for web, usually with tampermonkey,
MIT License
19 stars 1 forks source link

bilibili使用脚本后很多gui會變得異常卡頓 #3

Closed Malus-risus closed 3 weeks ago

Vinfall commented 5 months ago

粗看了一下代码,默认会添加人工的延迟,所以大概是 #预期行为

https://github.com/cilxe/JavaScriptProjects/blob/16e38f67b7f7ab7701b752bb61f7d1c2c1daf05d/Clean-URLs.js#L998-L1006

大概是 DELAY_TIME 的锅,没仔细看脚本不确定是拿来干嘛的

https://github.com/cilxe/JavaScriptProjects/blob/16e38f67b7f7ab7701b752bb61f7d1c2c1daf05d/Clean-URLs.js#L60

Vinfall commented 5 months ago

可以尝试修改 DELAY_TIME 的值,比如减去一个零康康效果?

const DELAY_TIME = { fast: 60, normal: 100, slow: 300 }; 
Malus-risus commented 5 months ago

可以尝试修改 DELAY_TIME 的值,比如减去一个零康康效果?

const DELAY_TIME = { fast: 60, normal: 100, slow: 300 }; 

事实证明没有任何作用

Vinfall commented 5 months ago

那我就爱莫能助了🤷🏼,仔细看代码分析吧。