We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Illegal invocation
console report TypeError: Illegal invocation, script stop running.
You can try running the following code on the following site: https://www.xiaolvji.com/ or any site that contains same-origin frame pages.
// ==UserScript== // @name New Userscript // @namespace http://tampermonkey.net/ // @version 2024-12-27 // @description try to take over the world! // @author You // @match https://*/* // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant GM_addElement // @run-at document-start // ==/UserScript== (function() { 'use strict'; window.onload = () => { document.querySelectorAll("iframe").forEach(node => { const h = node.contentWindow.document.head; if (h) { const s = GM_addElement(h, "style", {id:"xxxxxxxxxxxx"}); console.log(s, location.href); } }); } })();
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Actual Behavior
console report
TypeError: Illegal invocation
, script stop running.You can try running the following code on the following site: https://www.xiaolvji.com/ or any site that contains same-origin frame pages.
Specifications
Script
The text was updated successfully, but these errors were encountered: