Support live updates on firefox

This commit is contained in:
Ajay
2023-07-28 16:30:28 -04:00
parent db9fc11f13
commit 4069545603
8 changed files with 57 additions and 20 deletions

6
src/utils/pageCleaner.ts Normal file
View File

@@ -0,0 +1,6 @@
export function cleanPage() {
// For live-updates
for (const element of document.querySelectorAll("#categoryPillParent, .playerButton, .sponsorThumbnailLabel, #submissionNoticeContainer, .sponsorSkipNoticeContainer, #sponsorBlockPopupContainer")) {
element.remove();
}
}