fix: skip builtin ignore selector when autoscan disabled

This commit is contained in:
Gabe
2025-10-31 00:22:26 +08:00
parent 7343db78a5
commit 635e588bcc
3 changed files with 17 additions and 4 deletions

View File

@@ -165,14 +165,14 @@ class YouTubeCaptionProvider {
this.#ytControls = ytControls;
const kissControls = document.createElement("div");
kissControls.className = "kiss-bilingual-subtitle-controls";
kissControls.className = "notranslate kiss-subtitle-controls";
Object.assign(kissControls.style, {
height: "100%",
});
const toggleButton = document.createElement("button");
toggleButton.className =
"ytp-button notranslate kiss-bilingual-subtitle-button";
"ytp-button kiss-subtitle-button";
toggleButton.title = APP_NAME;
Object.assign(toggleButton.style, {
color: "white",