broulik created this revision. broulik added reviewers: Plasma, fvogt. Herald added a project: Plasma. Herald added a subscriber: plasma-devel. broulik requested review of this revision.
REVISION SUMMARY Calling `document.write` will replace the entire `documentElement` with a new one, effectively removing our mutation observers. TEST PLAN Together with D22641 <https://phabricator.kde.org/D22641> I can now successfully control that kaltura player thing heise uses, see the video on [1]. Normal website is still monitored correctly [1] https://www.heise.de/newsticker/meldung/Star-Trek-Picard-Neuer-Trailer-mit-alten-Bekannten-4475986.html REPOSITORY R856 Plasma Browser Integration REVISION DETAIL https://phabricator.kde.org/D22642 AFFECTED FILES extension/content-script.js To: broulik, #plasma, fvogt Cc: plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart