From 1fa58cad31c095681d68723ee4ecb58914977c65 Mon Sep 17 00:00:00 2001 From: Gabe Yuan Date: Mon, 18 Mar 2024 11:02:33 +0800 Subject: [PATCH] fix: rules --- src/config/rules.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/config/rules.js b/src/config/rules.js index cade31e..c04d8c3 100644 --- a/src/config/rules.js +++ b/src/config/rules.js @@ -163,9 +163,13 @@ const RULES_MAP = { }, "m.youtube.com": { selector: `.slim-video-information-title .yt-core-attributed-string, .media-item-headline .yt-core-attributed-string, .comment-text .yt-core-attributed-string, .typography-body-2b .yt-core-attributed-string, #ytp-caption-window-container .ytp-caption-segment`, + selectStyle: `-webkit-line-clamp: unset; max-height: none; height: auto;`, + parentStyle: `-webkit-line-clamp: unset; max-height: none; height: auto;`, }, "www.youtube.com": { selector: `h1, #video-title, #content-text, #title, yt-attributed-string>span>span, #ytp-caption-window-container .ytp-caption-segment`, + selectStyle: `-webkit-line-clamp: unset; max-height: none; height: auto;`, + parentStyle: `-webkit-line-clamp: unset; max-height: none; height: auto;`, }, "bard.google.com": { selector: `.query-content ${DEFAULT_SELECTOR}, message-content ${DEFAULT_SELECTOR}`,