Skip to content

Instantly share code, notes, and snippets.

@Konstantinusz
Created January 3, 2021 03:36
Show Gist options
  • Save Konstantinusz/d591619cd99d60e80987207e41e72d29 to your computer and use it in GitHub Desktop.
Save Konstantinusz/d591619cd99d60e80987207e41e72d29 to your computer and use it in GitHub Desktop.
Youtube lejátszási lista eleimeinek kikeresése a JavaScript konzolról
titles=Array.from(document.querySelectorAll("#video-title")).map(z=>z.innerText)
ids=Array.from(document.querySelectorAll("div#content a#thumbnail")).map(z=>(z.href.match(/\?v\=(.*?)\&/))[1]).splice(1,document.querySelectorAll("div#content a#thumbnail").length-1)
console.log(JSON.stringify(ids.map((z,i)=>[z,titles[i]])))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment