run script in iframe

This commit is contained in:
Gabe Yuan
2023-08-24 16:40:42 +08:00
parent 4633bf4fc6
commit 6b35525207

View File

@@ -57,6 +57,11 @@ import { isGm } from "./libs/browser";
</React.StrictMode> </React.StrictMode>
); );
// skip iframe
if (window.self !== window.top) {
return;
}
// 注册菜单 // 注册菜单
if (isGm) { if (isGm) {
GM.registerMenuCommand( GM.registerMenuCommand(