chore: 缩短 cssInject 等待 body 的时长

This commit is contained in:
naiy committed 2026-07-31 04:11:52 +08:00
1 parent dc19d0e5cc
commit 2efb8e78bb
1 file changed
+1 -1
+1 -1
View File
@@ -4,7 +4,7 @@ import { sleep } from './utils';
export default async function inject() {
while (!document.body) {
console.log('Waiting for body...');
await sleep(500);
await sleep(200);
}
GM_addStyle(scriptcss);
console.log('CSS injected successfully!');