Add channel skip profiles

This commit is contained in:
Ajay
2025-09-09 03:34:28 -04:00
parent 13f9914711
commit 40eabe6b18
24 changed files with 1417 additions and 525 deletions

View File

@@ -1,6 +1,6 @@
import { ActionType, Category, SponsorSourceType, SponsorTime, VideoID } from "../types";
import { getFormattedTimeToSeconds } from "../../maze-utils/src/formating";
import Config from "../config";
import { getSkipProfileBool } from "./skipProfiles";
export function getControls(): HTMLElement {
const controlsSelectors = [
@@ -70,7 +70,7 @@ export function getExistingChapters(currentVideoID: VideoID, duration: number):
if (title?.textContent?.includes("Key moment")) return [];
const autogenerated = hasAutogeneratedChapters();
if (!Config.config.showAutogeneratedChapters && autogenerated) return [];
if (!getSkipProfileBool("showAutogeneratedChapters") && autogenerated) return [];
const chapters: SponsorTime[] = [];
// .ytp-timed-markers-container indicates that key-moments are present, which should not be divided