This commit is contained in:
doms9 2025-09-17 17:42:35 -04:00
parent eb6d7f6a42
commit 00000d9d77
2 changed files with 15 additions and 3 deletions

View file

@ -250,6 +250,18 @@ async def firefox(
if (param === 37446) return "Intel Iris OpenGL Engine"; // UNMASKED_RENDERER_WEBGL
return getParameter.apply(this, [param]);
};
const observer = new MutationObserver(mutations => {
mutations.forEach(mutation => {
mutation.addedNodes.forEach(node => {
if (node.tagName === 'IFRAME' && node.hasAttribute('sandbox')) {
node.removeAttribute('sandbox');
}
});
});
});
observer.observe(document.documentElement, { childList: true, subtree: true });
"""
)