"новичок" кода не поймет

Так, по-моему мнению, код читается лучше:
(function(i) {
var colors = ["red", "green", "blue"], use_color;
[].forEach.call(document.querySelectorAll("#t1 tr"), function(row, index, next_row) {
next_row=next_row[++index];
if(row.cells[i].textContent == next_row.cells[i].textContent){
use_color=use_color || colors.shift();
row.style.backgroundColor = use_color;
next_row.style.backgroundColor = use_color;
}else if(use_color){
colors.push(use_color);
use_color=undefined;
};
});
})(0);