From 483051ab9adabceeb30beb20db5929d5f22c7bf6 Mon Sep 17 00:00:00 2001 From: RocketBoy <91538975+ApeDevOne@users.noreply.github.com> Date: Thu, 16 May 2024 14:12:42 +0530 Subject: [PATCH] Update background.js --- background.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/background.js b/background.js index e9bb110..c930158 100644 --- a/background.js +++ b/background.js @@ -1,8 +1,7 @@ -// background.js function changeSubtitleSize(size) { const textContainer = document.querySelector('.shaka-text-container'); if (textContainer) { - const textSpans = textContainer.querySelectorAll('.shaka-text-wrapper'); + const textSpans = textContainer.querySelectorAll('.shaka-text-region span span'); textSpans.forEach(span => { span.style.fontSize = `${size}px`; });