mirror of
https://github.com/naiyQAQ/fanqie-assistant.git
synced 2026-10-21 01:54:48 +00:00
chore: 缩短 cssInject 等待 body 的时长
This commit is contained in:
1 parent
dc19d0e5cc
commit
2efb8e78bb
1 file changed
+1
-1
+1
-1
@@ -4,7 +4,7 @@ import { sleep } from './utils';
|
|||||||
export default async function inject() {
|
export default async function inject() {
|
||||||
while (!document.body) {
|
while (!document.body) {
|
||||||
console.log('Waiting for body...');
|
console.log('Waiting for body...');
|
||||||
await sleep(500);
|
await sleep(200);
|
||||||
}
|
}
|
||||||
GM_addStyle(scriptcss);
|
GM_addStyle(scriptcss);
|
||||||
console.log('CSS injected successfully!');
|
console.log('CSS injected successfully!');
|
||||||
|
|||||||
Reference in new issue
Block a user