diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 61fda32d..4bd4a67a 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -182,15 +182,15 @@ "hideButtonsDescription": { "message": "This hides the buttons that appear on the YouTube player to submit skip segments." }, + "showSkipButton": { + "message": "Keep Skip to Highlight Button on Player" + }, "showInfoButton": { "message": "Show Info Button On YouTube Player" }, "hideInfoButton": { "message": "Hide Info Button On YouTube Player" }, - "whatInfoButton": { - "message": "This is the button that opens up a popup in the YouTube page." - }, "autoHideInfoButton": { "message": "Auto-hide Info Button" }, @@ -200,9 +200,6 @@ "showDeleteButton": { "message": "Show Delete Button On YouTube Player" }, - "whatDeleteButton": { - "message": "This is the button on the YouTube player that will clear all your un-submitted segments for the current video." - }, "enableViewTracking": { "message": "Enable Skip Count Tracking" }, @@ -442,9 +439,6 @@ "showUploadButton": { "message": "Show Upload Button" }, - "whatUploadButton": { - "message": "This button appears on the YouTube player after you have selected a timestamp and are ready to submit." - }, "customServerAddress": { "message": "SponsorBlock Server Address" }, diff --git a/public/options/options.html b/public/options/options.html index b1a0dcb4..1fbcf1b1 100644 --- a/public/options/options.html +++ b/public/options/options.html @@ -287,7 +287,22 @@
__MSG_hideButtonsDescription__
+ +
+ +
+ +
+


@@ -301,14 +316,9 @@ __MSG_showInfoButton__ - -
-
-
- -
__MSG_whatInfoButton__
+


@@ -322,13 +332,11 @@ __MSG_autoHideInfoButton__ - -
-
-
- -
+ +
+
+
- -
-
-
- -
__MSG_whatDeleteButton__
+


@@ -361,14 +364,10 @@ __MSG_showUploadButton__ - -
-
-
- -
__MSG_whatUploadButton__
+
+


diff --git a/src/config.ts b/src/config.ts index 8bcdc061..5d8a58e4 100644 --- a/src/config.ts +++ b/src/config.ts @@ -26,6 +26,7 @@ interface SBConfig { hideInfoButtonPlayerControls: boolean, hideDeleteButtonPlayerControls: boolean, hideUploadButtonPlayerControls: boolean, + hideSkipButtonPlayerControls: boolean, hideDiscordLaunches: number, hideDiscordLink: boolean, invidiousInstances: string[], @@ -172,6 +173,7 @@ const Config: SBObject = { hideInfoButtonPlayerControls: false, hideDeleteButtonPlayerControls: false, hideUploadButtonPlayerControls: false, + hideSkipButtonPlayerControls: false, hideDiscordLaunches: 0, hideDiscordLink: false, invidiousInstances: ["invidious.snopyta.org"], diff --git a/src/js-components/skipButtonControlBar.ts b/src/js-components/skipButtonControlBar.ts index fbdeed14..25c2aa73 100644 --- a/src/js-components/skipButtonControlBar.ts +++ b/src/js-components/skipButtonControlBar.ts @@ -111,7 +111,7 @@ export class SkipButtonControlBar { } disableText(): void { - if (Config.config.hideVideoPlayerControls) { + if (Config.config.hideVideoPlayerControls || Config.config.hideSkipButtonPlayerControls) { this.disable(); return; }