diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json
index 1e3bc3c8..8a818f93 100644
--- a/public/_locales/en/messages.json
+++ b/public/_locales/en/messages.json
@@ -389,7 +389,13 @@
},
"minDurationDescription": {
"message": "Segments shorter than the set value will not be skipped or show in the player."
- },
+ },
+ "skipNoticeDuration": {
+ "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."
+ },
"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/public/options/options.html b/public/options/options.html
index 00dcdfa1..2e4539db 100644
--- a/public/options/options.html
+++ b/public/options/options.html
@@ -152,6 +152,20 @@
+
+
+
+
+
+
+
+
+
+
__MSG_skipNoticeDurationDescription__
+
+
diff --git a/src/components/NoticeComponent.tsx b/src/components/NoticeComponent.tsx
index ee9f5e58..38638de2 100644
--- a/src/components/NoticeComponent.tsx
+++ b/src/components/NoticeComponent.tsx
@@ -1,4 +1,5 @@
import * as React from "react";
+import Config from "../config";
export interface NoticeProps {
noticeTitle: string,
@@ -42,7 +43,7 @@ class NoticeComponent extends React.Component {
const maxCountdownTime = () => {
if (this.props.maxCountdownTime) return this.props.maxCountdownTime();
- else return 4;
+ else return Config.config.skipNoticeDuration;
};
//the id for the setInterval running the countdown
diff --git a/src/components/SkipNoticeComponent.tsx b/src/components/SkipNoticeComponent.tsx
index 74a26872..1582c2c9 100644
--- a/src/components/SkipNoticeComponent.tsx
+++ b/src/components/SkipNoticeComponent.tsx
@@ -98,8 +98,8 @@ class SkipNoticeComponent extends React.Component 4,
- countdownTime: 4,
+ maxCountdownTime: () => Config.config.skipNoticeDuration,
+ countdownTime: Config.config.skipNoticeDuration,
countdownText: null,
unskipText: chrome.i18n.getMessage("unskip"),
@@ -418,7 +418,7 @@ class SkipNoticeComponent extends React.Component 4,
- countdownTime: 4
+ maxCountdownTime: () => Config.config.skipNoticeDuration,
+ countdownTime: Config.config.skipNoticeDuration
};
// See if the title should be changed
diff --git a/src/config.ts b/src/config.ts
index 75392f98..5f8a66f8 100644
--- a/src/config.ts
+++ b/src/config.ts
@@ -33,6 +33,7 @@ interface SBConfig {
supportInvidious: boolean,
serverAddress: string,
minDuration: number,
+ skipNoticeDuration: number,
audioNotificationOnSkip,
checkForUnlistedVideos: boolean,
testingServer: boolean,
@@ -171,6 +172,7 @@ const Config: SBObject = {
supportInvidious: false,
serverAddress: CompileConfig.serverAddress,
minDuration: 0,
+ skipNoticeDuration: 4,
audioNotificationOnSkip: false,
checkForUnlistedVideos: false,
testingServer: false,