mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
Fix too many hover text tooltips
This commit is contained in:
parent
8db077887d
commit
afab681a60
1 changed files with 4 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue