twitter archive to website tool

containerElements = document.querySelectorAll('div[role="presentation"]')[34].parentElement.parentElement.childNodes; var allImgs = [];
containerElements.forEach(function (element, i) {
var fileName = element.childNodes[0].childNodes[0].childNodes[2].childNodes[1].childNodes[0].innerHTML.match(/>(.*)\./)[1];
var driveId = element.innerHTML.match(/data-id="(.*?)"/)[1];
allImgs.push([fileName,driveId]);
});
console.log(allImgs);

input tweets.js file from twitter archive here:

paste Array from google drive:


**(preview will attempt to load all images at once, this could be laggy)**

Disable preview?