use random eventname

This commit is contained in:
Gabe Yuan
2023-09-02 14:14:27 +08:00
parent 36739f04b3
commit c1bd6a1be6
6 changed files with 26 additions and 12 deletions

View File

@@ -1,5 +1,10 @@
import { fetchGM } from "./fetch";
/**
* 之否支持unsafeWindow
*/
export const isGrantUnsafe = GM?.info?.script?.grant?.includes("unsafeWindow");
/**
* 注入页面的脚本请求并接受GM接口信息
* @param {*} param0