mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-12 22:47:18 +03:00
Fix too many hover text tooltips
This commit is contained in:
@@ -74,6 +74,10 @@ class PreviewBar {
|
||||
setupHoverText(): void {
|
||||
if (this.onMobileYouTube || this.onInvidious) return;
|
||||
|
||||
// delete old ones
|
||||
document.querySelectorAll(`.sponsorCategoryTooltip`)
|
||||
.forEach((e) => e.remove());
|
||||
|
||||
// Create label placeholder
|
||||
this.categoryTooltip = document.createElement("div");
|
||||
this.categoryTooltip.className = "ytp-tooltip-title sponsorCategoryTooltip";
|
||||
|
||||
Reference in New Issue
Block a user