Skip to content

Commit

Permalink
fix: do not translate texts inside element with class name screen_out…
Browse files Browse the repository at this point in the history
…, blind, ico_view
  • Loading branch information
plateaukao committed Feb 13, 2024
1 parent f108c52 commit 20daac8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,11 @@ highlightSelection();
) {
continue;
}
if (child.closest('img, button, code') || child.tagName === "SCRIPT") {
if (child.closest('img, button, code') || child.tagName === "SCRIPT"
|| child.classList.contains("screen_out")
|| child.classList.contains("blind")
|| child.classList.contains("ico_view")
) {
continue;
}
if (
Expand Down

0 comments on commit 20daac8

Please sign in to comment.