for(var i=external.tab_count-1; i>=0; i--){ var sURL=external.get_tab(0, i).document.URL; for(var j=0; j