Index: extension/content-script.js =================================================================== --- extension/content-script.js +++ extension/content-script.js @@ -595,6 +595,49 @@ }); } }); + + if (document.documentElement.tagName.toLowerCase() === "html") { + // here we replace the document.createElement function with our own so we can detect + // when an