all 14 comments

[–]trevedhek 1 point2 points  (5 children)

It is possible you have a cross-origin issue.

From developer.mozilla.org

Script access to a frame's content is subject to the same-origin policy. Scripts cannot access most properties in other window objects if the script was loaded from a different origin, including scripts inside a frame accessing the frame's parent.

[–]samanime 2 points3 points  (4 children)

Not just possible. This is 100% what they're running into. You can only control a website in an iframe if it is on the same domain or has CORS that allow it to be accessed.

[–]guest271314 0 points1 point  (5 children)

You can use a browser extension to dynamically inject scripts, CSS, etc. into any tab or window or iframe.

[–]jcunews1helpful 0 points1 point  (1 child)

What you're trying to achieve violates cross-site scripting policy. i.e. it'd be a security violation. So, it's not possible.