Skip to content

Commit

Permalink
fix rule: youtube
Browse files Browse the repository at this point in the history
  • Loading branch information
fishjar committed May 22, 2024
1 parent 7fc0997 commit 10112f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const RULES_MAP = {
"www.youtube.com": {
selector: `h1>.ytd-watch-metadata, #video-title, #title, #content-text>span, #snippet-text, yt-attributed-string.ytd-text-inline-expander>span, span.caption-visual-line>span, #chat-messages #message, .ytp-caption-segment`, // 翻译字幕
// selector: `h1>.ytd-watch-metadata, #video-title, #title, #content-text>span, #snippet-text, yt-attributed-string.ytd-text-inline-expander>span, span.caption-visual-line>span, #chat-messages #message`, // 不翻译字幕
keepSelector: `img, #content-text>a, span[dir="auto"]:has(a), span:has(img)`,
keepSelector: `img, #content-text>a, span[dir="auto"]:has(a), span:has(img), [role="tooltip"]`,
// injectCss: `ytd-expander[should-use-number-of-lines][collapsed]>#content.ytd-expander { -webkit-line-clamp: unset; max-height: none; height: auto; }`,
},
"bard.google.com": {
Expand Down

0 comments on commit 10112f4

Please sign in to comment.