From bf3ef2498ec52cf839dc12c7e431ee985b4cff1d Mon Sep 17 00:00:00 2001 From: Prateek Chaubey <41151614+prateek-chaubey@users.noreply.github.com> Date: Mon, 19 Aug 2024 03:04:15 +0530 Subject: [PATCH] Fixed Functions --- scripts/script.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/script.js b/scripts/script.js index 6b0343f..4c8fe54 100644 --- a/scripts/script.js +++ b/scripts/script.js @@ -1,6 +1,6 @@ /*****YTPRO******* Author: Prateek Chaubey -Version: 3.4.60 +Version: 3.4.62 URI: https://github.com/prateek-chaubey/ */ @@ -367,7 +367,8 @@ window.location.hash="settings"; var scripts = document.getElementsByTagName('script'); for(var i=0;i 0){ -fetch(scripts[i].src).then((res) => res.text()).then((r) => extractFunctions(r)); +var sUrl="https://www.youtube.com/s/player/"+scripts[i].src.match(`(?<=player\/).*(?=\/player)`)+"/player_ias.vflset/en_US/base.js"; +fetch(sUrl).then((res) => res.text()).then((r) => extractFunctions(r)); } }