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