Generalized prompt safety hooks.

This commit is contained in:
hackademix 2023-03-20 23:37:11 +01:00
parent 08670a7353
commit 1ec5d2300b
No known key found for this signature in database
GPG Key ID: 231A83AFDA9C2434
2 changed files with 9 additions and 1 deletions

View File

@ -229,6 +229,14 @@
reader.readAsDataURL(blob);
});
},
async promptHook(msg, {tabId}) {
await browser.tabs.executeScript(tabId, {
code: "try { if (document.fullscreenElement) document.exitFullscreen(); } catch (e) {}",
matchAboutBlank: true,
allFrames: true,
});
}
};
function onSyncMessage(msg, sender) {

@ -1 +1 @@
Subproject commit 3d3ebed08fe4e23813934935b26019d572915156
Subproject commit 0d4cbf9c41b0a636c003fb8c94d2316f969e8be1