Thursday, March 19, 2020

Could browsers implement a "meta DOM" to allow undetectable changes to the DOM?

Right now, websites can detect extensions that modify the DOM, ad blockers probably being the number one target. However, if there existed a sort of top-level, abstract meta layer/DOM that the base DOM didn't know about, meta JS could be injected to modify this meta DOM. This would allow browser extensions or userscripts to affect visibility of DOM elements while the DOM itself would have no knowledge of such changes, thus being unable to detect extensions or scripts that modify it. The DOM would execute its scripts looking for modified or missing elements, but everything would appear normal.

Could this work? How difficult would it be for browsers to make such changes?



Submitted March 19, 2020 at 07:31PM by GoBackToLeddit https://ift.tt/2WqUcEA via TikTokTikk

No comments:

Post a Comment