javascript twitter export follow(ers/ing)

var ttResultsList = [];
var currentPosition = -1;

function exportTT() {
    let cList = [];

    if (currentPosition < window.scrollY) {
        window.scrollTo(0, document.body.scrollHeight);
        for (const d of document.querySelectorAll('div[data-testid="UserCell"]')) {
            let img = d.getElementsByTagName('img')[0].src;
            let usr = d.getElementsByTagName('a')[0].href;

            ttResultsList.push([usr, img]);
        }
        currentPosition = parseInt(window.scrollY);
    } else {
        console.clear();
        console.log('finished');
        console.dir(ttResultsLis);
        // console.save(ttResultsList);
    }
}

setInterval(exportTT, 1000);