Skip to content

Commit

Permalink
Remove category pill tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
hanydd committed Nov 3, 2024
1 parent 5ccd74f commit 16f4602
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions src/render/CategoryPill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ import { createRoot, Root } from "react-dom/client";
import CategoryPillComponent, { CategoryPillState } from "../components/CategoryPillComponent";
import Config from "../config";
import { getPageLoaded } from "../content";
import { waitFor } from "../utils/";
import { addCleanupListener } from "../utils/cleanup";
import { VoteResponse } from "../messageTypes";
import { Category, SegmentUUID, SponsorTime } from "../types";
import { Tooltip } from "./Tooltip";
import { waitFor } from "../utils/";
import { addCleanupListener } from "../utils/cleanup";

const id = "categoryPill";

Expand Down Expand Up @@ -130,19 +129,6 @@ export class CategoryPill {

if (!Config.config.categoryPillUpdate) {
Config.config.categoryPillUpdate = true;

const watchDiv = await waitFor(() => document.querySelector("#info.ytd-watch-flexy") as HTMLElement);
if (watchDiv) {
new Tooltip({
text: chrome.i18n.getMessage("categoryPillNewFeature"),
link: "https://blog.ajay.app/full-video-sponsorblock",
referenceNode: watchDiv,
prependElement: watchDiv.firstChild as HTMLElement,
bottomOffset: "-10px",
opacity: 0.95,
timeout: 50000,
});
}
}
}
this.isSegmentSet = true;
Expand Down

0 comments on commit 16f4602

Please sign in to comment.