I\'m running the following javascript code in firefox extension
highlightLinks: function(e) { var anchors = e.target.getElementsByTagName(\"a\"); let file =
first tip, altough it won't save too much time, is not using anchors.length in the condition of the for-loop. better use:
for(var i = 0, num = anchors.length; i < num, i++) {...}