View foo.js
(() => { | |
let links = []; | |
document.querySelectorAll('#video-titles') | |
.forEach(node => links.push(node.title)) | |
return links; | |
})() |