diff --git a/manifest/manifest.json b/manifest/manifest.json index c364a6cd96..9a351ca334 100644 --- a/manifest/manifest.json +++ b/manifest/manifest.json @@ -1,7 +1,7 @@ { "name": "__MSG_fullName__", "short_name": "SponsorBlock", - "version": "5.13.3", + "version": "5.13.4", "default_locale": "en", "description": "__MSG_Description__", "homepage_url": "https://sponsor.ajay.app", diff --git a/maze-utils b/maze-utils index e3388197c3..33f0b5b757 160000 --- a/maze-utils +++ b/maze-utils @@ -1 +1 @@ -Subproject commit e3388197c3d285087593069bd7a939dbc07e8cb1 +Subproject commit 33f0b5b7579d77171c07c4b79c8eec45adf802dd diff --git a/public/_locales b/public/_locales index 9539893db1..9469b109c2 160000 --- a/public/_locales +++ b/public/_locales @@ -1 +1 @@ -Subproject commit 9539893db1d43c4c456947967c775ba9e71f66d8 +Subproject commit 9469b109c29050938141a28483dfc9d768839994 diff --git a/src/utils/skipRule.ts b/src/utils/skipRule.ts index 0ea0c06ea4..2882f9a4bf 100644 --- a/src/utils/skipRule.ts +++ b/src/utils/skipRule.ts @@ -1,3 +1,4 @@ +import { getCurrentPageTitle } from "../../maze-utils/src/elements"; import { getChannelIDInfo, getVideoDuration } from "../../maze-utils/src/video"; import Config from "../config"; import { CategorySelection, CategorySkipOption, SponsorSourceType, SponsorTime } from "../types"; @@ -20,7 +21,8 @@ export enum SkipRuleAttribute { Source = "chapter.source", ChannelID = "channel.id", ChannelName = "channel.name", - VideoDuration = "video.duration" + VideoDuration = "video.duration", + Title = "video.title" } export enum SkipRuleOperator { @@ -119,6 +121,8 @@ function getSkipRuleValue(segment: SponsorTime | VideoLabelsCacheData, rule: Adv return getChannelIDInfo().author; case SkipRuleAttribute.VideoDuration: return getVideoDuration(); + case SkipRuleAttribute.Title: + return getCurrentPageTitle() || ""; default: return undefined; }