diff --git a/config.json.example b/config.json.example index fd6afe22..1912aaee 100644 --- a/config.json.example +++ b/config.json.example @@ -13,7 +13,7 @@ "preview": ["skip", "mute"], "filler": ["skip", "mute"], "music_offtopic": ["skip"], - "poi_highlight": ["skip"] + "poi_highlight": ["poi"] }, "wikiLinks": { "sponsor": "https://wiki.sponsor.ajay.app/w/Sponsor", diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 27793e42..701ef193 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -243,7 +243,7 @@ "message": "All Faded Skip Notices" }, "longDescription": { - "message": "SponsorBlock lets you skip over sponsors, intros, outros, subscription reminders, and other annoying parts of YouTube videos. SponsorBlock is a crowdsourced browser extension that let's anyone submit the start and end time's of sponsored segments and other segments of YouTube videos. Once one person submits this information, everyone else with this extension will skip right over the sponsored segment. You can also skip over non music sections of music videos.", + "message": "SponsorBlock lets you skip over sponsors, intros, outros, subscription reminders, and other annoying parts of YouTube videos. SponsorBlock is a crowdsourced browser extension that lets anyone submit the start and end times of sponsored segments and other segments of YouTube videos. Once one person submits this information, everyone else with this extension will skip right over the sponsored segment. You can also skip over non music sections of music videos.", "description": "Full description of the extension on the store pages." }, "website": { @@ -432,7 +432,7 @@ "message": "Skip notice duration (seconds):" }, "skipNoticeDurationDescription": { - "message": "The skip notice will stay on screen for at least this long. For manual skipping, it may be visible for longer." + "message": "The skip notice will stay on screen for at least this many seconds. For manual skipping, it may be visible for longer." }, "shortCheck": { "message": "The following submission is shorter than your minimum duration option. This could mean that this is already submitted, and just being ignored due to this option. Are you sure you would like to submit?" diff --git a/src/components/SkipNoticeComponent.tsx b/src/components/SkipNoticeComponent.tsx index 77149f67..614a67f5 100644 --- a/src/components/SkipNoticeComponent.tsx +++ b/src/components/SkipNoticeComponent.tsx @@ -1,12 +1,11 @@ import * as React from "react"; import * as CompileConfig from "../../config.json"; import Config from "../config" -import { Category, ContentContainer, CategoryActionType, SponsorHideType, SponsorTime, NoticeVisbilityMode, ActionType, SponsorSourceType, SegmentUUID } from "../types"; +import { Category, ContentContainer, SponsorHideType, SponsorTime, NoticeVisbilityMode, ActionType, SponsorSourceType, SegmentUUID } from "../types"; import NoticeComponent from "./NoticeComponent"; import NoticeTextSelectionComponent from "./NoticeTextSectionComponent"; import Utils from "../utils"; const utils = new Utils(); - import { getCategoryActionType, getSkippingText } from "../utils/categoryUtils"; import { keybindToString } from "../utils/configUtils"; @@ -327,7 +326,7 @@ class SkipNoticeComponent extends React.Component 1 - || getCategoryActionType(this.segments[0].category) !== CategoryActionType.POI + || this.segments[0].actionType !== ActionType.Poi || this.props.unskipTime)) { const style: React.CSSProperties = { @@ -548,7 +547,7 @@ class SkipNoticeComponent extends React.Component getCategoryActionType(cat as Category) === CategoryActionType.Skippable))) as Category[]; + const categories = (CompileConfig.categoryList.filter((cat => CompileConfig.categorySupport[cat].includes(ActionType.Skip)))) as Category[]; for (const category of categories) { elements.push(