{"size": 451, "ext": "js", "max_stars_repo_path": "Userscript/domManipulation.js", "max_stars_repo_name": "OB42/Scrapeasy", "max_stars_repo_stars_event_min_datetime": "2016-07-07T08:23:01.000Z", "max_stars_repo_stars_event_max_datetime": "2016-12-13T10:23:32.000Z", "max_issues_repo_path": "Userscript/domManipulation.js", "max_issues_repo_name": "OB42/Scrapeasy", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Userscript/domManipulation.js", "max_forks_repo_name": "OB42/Scrapeasy", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.7368421053, "max_line_length": 101, "alphanum_fraction": 0.5698447894}
/*text nodes count as child elements in JS but not in CSS,
in order to get an accurate index for an element, we need to use this function to ignore text nodes*/
function removeTextNodes(list) {
    var temp = [];
    [].slice.call(list).filter(function(n) {
        if (n.nodeType !== 3) {
            temp.push(n);
        }
    })
    return temp;
}

function getIndex(e) {
    var i = 1;
    while (e = e[prev]) {
        i++;
    }
    return i;
}