fix: Adapt to the new UI of youtube

This commit is contained in:
Gabe
2025-10-22 21:14:39 +08:00
parent 6d327d17af
commit 504f4cafa0
2 changed files with 2 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ export function createLoadingSVG() {
export function createLogoSVG({ export function createLogoSVG({
width = "100%", width = "100%",
height = "100%", height = "100%",
viewBox = "-20 -20 70 70", viewBox = "0 -5 70 70",
isSelected = false, isSelected = false,
} = {}) { } = {}) {
const svg = createSVGElement("svg", { const svg = createSVGElement("svg", {

View File

@@ -199,7 +199,7 @@ class YouTubeCaptionProvider {
} }
}; };
this.#toggleButton = toggleButton; this.#toggleButton = toggleButton;
this.#ytControls?.before(kissControls); this.#ytControls?.prepend(kissControls);
} }
#isSameLang(lang1, lang2) { #isSameLang(lang1, lang2) {