diff options
author | Ajay Ramachandran <[email protected]> | 2021-07-27 13:20:40 -0400 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2021-07-27 13:20:40 -0400 |
commit | d56637cb14349faf4e8fc83719d23ae9092abed0 (patch) | |
tree | c839acabdcbfef87f51c4cde4495630febc4b20d /src | |
parent | e720acc674ec8e4b0b9133edbe5cb568bad2edc7 (diff) | |
download | SponsorBlock-d56637cb14349faf4e8fc83719d23ae9092abed0.tar.gz SponsorBlock-d56637cb14349faf4e8fc83719d23ae9092abed0.zip |
Don't affect inline popup
Diffstat (limited to 'src')
-rw-r--r-- | src/content.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/content.ts b/src/content.ts index b1db2c76..e0f0572e 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1318,9 +1318,11 @@ function openInfoMenu() { let htmlData = xmlhttp.responseText; // Hack to replace head data (title, favicon) htmlData = htmlData.replace(/<head>[\S\s]*<\/head>/gi, ""); - // Hack to replace body tag with div + // Hack to replace body and html tag with div htmlData = htmlData.replace(/<body/gi, "<div"); htmlData = htmlData.replace(/<\/body/gi, "</div"); + htmlData = htmlData.replace(/<html/gi, "<div"); + htmlData = htmlData.replace(/<\/html/gi, "</div"); popup.innerHTML = htmlData; |