run script in iframe
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user