mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 13:37:04 +03:00
Support live updates on firefox
This commit is contained in:
6
src/utils/pageCleaner.ts
Normal file
6
src/utils/pageCleaner.ts
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user