Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
Fixed Hiding shorts and downloader
  • Loading branch information
prateek-chaubey authored Oct 22, 2024
1 parent 8a822ee commit b0d31dd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 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.65
Version: 3.4.66
URI: https://github.com/prateek-chaubey/
*/

Expand Down Expand Up @@ -174,7 +174,7 @@ const N_TRANSFORM_NAME_REGEXPS = [

// LavaPlayer regexps
const N_TRANSFORM_REGEXP = 'function\\(\\s*(\\w+)\\s*\\)\\s*\\{' +
'var\\s*(\\w+)=(?:\\1\\.split\\(""\\)|String\\.prototype\\.split\\.call\\(\\1,""\\)),' +
'var\\s*(\\w+)=(?:\\1\\.split\\(.*?\\)|String\\.prototype\\.split\\.call\\(\\1,.*?\\)),' +
'\\s*(\\w+)=(\\[.*?]);\\s*\\3\\[\\d+]' +
'(.*?try)(\\{.*?})catch\\(\\s*(\\w+)\\s*\\)\\s*\\' +
'{\\s*return"enhanced_except_([A-z0-9-]+)"\\s*\\+\\s*\\1\\s*}' +
Expand Down Expand Up @@ -1436,6 +1436,12 @@ for( x in document.getElementsByTagName("ytm-reel-shelf-renderer")){
try{document.getElementsByTagName("ytm-reel-shelf-renderer")[x].remove();
}catch{}

for( x in document.getElementsByTagName("ytm-shorts-lockup-view-model")){
try{document.getElementsByTagName("ytm-shorts-lockup-view-model")[x].remove();
}catch{}

}

}
}

Expand Down

0 comments on commit b0d31dd

Please sign in to comment.