diff --git a/extension/content-script.js b/extension/content-script.js --- a/extension/content-script.js +++ b/extension/content-script.js @@ -747,8 +747,8 @@ // mechanism. Let's see how this goes :D executeScript(`function() { - var oldCreateElement = document.createElement; - document.createElement = function () { + var oldCreateElement = Document.prototype.createElement; + Document.prototype.createElement = function() { var createdTag = oldCreateElement.apply(this, arguments); var tagName = arguments[0];