From 97280646cd76cb12511d3ed506af2529ad1bc6cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=85=E7=A6=BETristan?= Date: Mon, 20 Jan 2025 21:52:38 +0800 Subject: [PATCH] fix: remove more additional indent from Chinese punctuation (#1283) --- .../views/necessarySettingsWatchers.ts | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/contentScripts/views/necessarySettingsWatchers.ts b/src/contentScripts/views/necessarySettingsWatchers.ts index e3a8651c..83135528 100644 --- a/src/contentScripts/views/necessarySettingsWatchers.ts +++ b/src/contentScripts/views/necessarySettingsWatchers.ts @@ -100,16 +100,11 @@ export function setupNecessarySettingsWatchers() { ) const removeTheIndentFromChinesePunctuationStyleEl = injectCSS(` - .video-info-container .special-text-indent[data-title^='《'], - .video-info-container .special-text-indent[data-title^='「'], - .video-info-container .special-text-indent[data-title^='『'], - .video-info-container .special-text-indent[data-title^='【'], - p[title^='\\300c'], - p[title^='\\300e'], - p[title^='\\3010'], - h3[title^='\\300c'], - h3[title^='\\300e'], - h3[title^='\\3010'] { + .video-info-container .special-text-indent[data-title^='“'],a[title^='“'],p[title^='“'],h3[title^='“'], + .video-info-container .special-text-indent[data-title^='《'],a[title^='《'],p[title^='《'],h3[title^='《'], + .video-info-container .special-text-indent[data-title^='「'],a[title^='「'],p[title^='「'],h3[title^='「'], + .video-info-container .special-text-indent[data-title^='『'],a[title^='『'],p[title^='『'],h3[title^='『'], + .video-info-container .special-text-indent[data-title^='【'],a[title^='【'],p[title^='【'],h3[title^='【'] { text-indent: 0 !important; } `)