Created
April 9, 2020 16:28
-
-
Save nopium/5c6c2afba2e3c3bc41776867ebb0fd3c to your computer and use it in GitHub Desktop.
Revisions
-
nopium created this gist
Apr 9, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ var els = document.getElementsByClassName("yt-simple-endpoint"); var links = {}; for (var e in els ) { if( els[e].href && els[e].href.indexOf('watch')!=-1 ) { var link = els[e].href.split('&list')[0]; links[link] = link; } } for(var l in Object.keys(links)) { console.log(l); }