From 7967ec869e3224a549bb62232e92ed5f3b463acb Mon Sep 17 00:00:00 2001 From: hanyd Date: Wed, 25 Dec 2024 20:39:38 +0800 Subject: [PATCH] reformat --- public/options/options.html | 25 +++++++++++++------------ src/config.ts | 7 ++++--- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/public/options/options.html b/public/options/options.html index 0a289794..f96aca4d 100644 --- a/public/options/options.html +++ b/public/options/options.html @@ -194,7 +194,7 @@

__MSG_optionSectionSkipNotice__

__MSG_skipNoticeDuration__ - +
__MSG_skipNoticeDurationDescription__
@@ -775,7 +775,7 @@

__MSG_exportOtherData__

- +
@@ -785,17 +785,18 @@

__MSG_exportOtherData__

__MSG_danmakuTimeMatchingRegexPatternDescription__
+
+ +
+
+ + + +
- -
-
- - - - -
-
__MSG_danmakuOffsetRegexPatternDescription__
+
__MSG_danmakuOffsetRegexPatternDescription__
diff --git a/src/config.ts b/src/config.ts index 883edad9..615ca8b9 100644 --- a/src/config.ts +++ b/src/config.ts @@ -58,7 +58,7 @@ interface SBConfig { minDuration: number; skipNoticeDuration: number; skipNoticeDurationBefore: number; - advanceSkipNotice:boolean; + advanceSkipNotice: boolean; audioNotificationOnSkip: boolean; checkForUnlistedVideos: boolean; testingServer: boolean; @@ -192,7 +192,8 @@ function migrateOldSyncFormats(config: SBConfig) { config["serverAddress"] = CompileConfig.serverAddress; } - // "danmakuRegexPattern" 参数在 0.5.9 版本(预计)中被移除,取而代之的是 "danmakuTimeMatchingRegexPattern" 和 "danmakuOffsetMatchingRegexPattern" 参数 + // "danmakuRegexPattern" 在 0.5.9 版本中被移除, + // 取而代之的是 "danmakuTimeMatchingRegexPattern" 和 "danmakuOffsetMatchingRegexPattern" delete config["danmakuRegexPattern"]; } @@ -242,7 +243,7 @@ const syncDefaults = { minDuration: 0, skipNoticeDuration: 4, skipNoticeDurationBefore: 3, - advanceSkipNotice:false, + advanceSkipNotice: false, audioNotificationOnSkip: false, checkForUnlistedVideos: false, testingServer: false,