Skip to content

Commit

Permalink
Fixed Functions
Browse files Browse the repository at this point in the history
  • Loading branch information
prateek-chaubey authored Aug 18, 2024
1 parent f407fc2 commit bf3ef24
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/script.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*****YTPRO*******
Author: Prateek Chaubey
Version: 3.4.60
Version: 3.4.62
URI: https://github.com/prateek-chaubey/
*/

Expand Down Expand Up @@ -367,7 +367,8 @@ window.location.hash="settings";
var scripts = document.getElementsByTagName('script');
for(var i=0;i<scripts.length;i++){
if(scripts[i].src.indexOf("/base.js") > 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));
}
}

Expand Down

0 comments on commit bf3ef24

Please sign in to comment.