codice:
// ==UserScript==
// @name           Google Test
// @namespace      Fantasy Script
// @description    Test Comandi
// @include        http://www.google.it/
// ==/UserScript==

var lista = [];
var tempoMassimo = 10;
var i = 0;
var millisec=0;
var ev = 0;

casellaTesto = document.getElementById("lst-ib");


function chiamata(){
	millisec=Math.round(Math.random()*1000*tempoMassimo);
	casellaTesto.value = lista[i];
	i = i+1;
	if (!(lista==undefined)) chiamata();
		else alert("Basta");	
}

GM_xmlhttpRequest({
	method: "GET",
	synchronous: true,
	url: "http://www.andreaemarta.it/gs/lista1.txt",
	onload: function(response) {
	alert(response.responseText);
 	lista = response.responseText.split("\n");
	chiamata();
 	}
});
In questa versione non dovrebbe lasciare nella casella di testo l'ultima voce del file di testo?..invece lascia "Undefined"..