The untrusted script can override its own view of createElement, but not the extension's view.
The untrusted script can override its own view of createElement, but not the extension's view.
I wonder if a DOM mutation event would be triggered if a content script adds a new link element and changes it's href.
Would I be able to catch that and quickly change the href, before the content script continues to fecth the processed properties?
It is true. See documentation => https://developer.chrome.com/extensions/content_scripts#exec... :
> Content scripts execute in a special environment called an isolated world. They have access to the DOM of the page they are injected into, but not to any JavaScript variables or functions created by the page. ... The same is true in reverse
[0] http://archive.oreilly.com/pub/a/network/2005/11/01/avoid-co...