fix: youtube rule

This commit is contained in:
Gabe
2025-10-10 13:59:17 +08:00
parent 251e57ec61
commit 8cc3801dc5

View File

@@ -191,7 +191,7 @@ const RULES_MAP = {
"www.youtube.com": {
rootsSelector: `ytd-page-manager`,
ignoreSelector: `aside, button, footer, form, header, pre, mark, nav, #player`,
transEndHook: `({ parentNode }) => {parentNode.parentElement.style.cssText += "-webkit-line-clamp: unset; max-height: none; height: auto;";}`,
transEndHook: `({ parentNode }) => {parentNode?.parentElement?.style.cssText += "-webkit-line-clamp: unset; max-height: none; height: auto;";}`,
textStyle: OPT_STYLE_DASHBOX,
},
};