rem: for (var i = 0; i < matches.length; i++) { match = matches[i].replace('[[',"").replace(']]',""); 
add: if (matches) { for (var i = 0; i < matches.length; i++) { match = matches[i].replace('[[','').replace(']]',''); 
context: function keyhandler(e) {	if (e.which == 32) { // spacebar		var matches = e.target.value.match(lnre);				for (var i = 0; i < matches.length; i++) {			match = matches[i].replace('[[',"").replace(']]',"");			GM_xmlhttpRequest({ 				method: 'POST',				url: 'http://ln.taoriver.net:8123/',				headers: {'User-Agent': 'Greasemonkey', 'Accept': 'application/xml,text/xml'},				data: '<?xml version="1.0"?><methodCall><methodName>lnquery.lookup</methodName><params><param><string>'+namespace_url+'</string></param><param><string>'+matches[i]+'</string></param></params></methodCall>',				onload: function (details) { 						var url = details.responseText.match(answerre)[1];//						alert('url for '+oldword+': ' + details.responseText);						e.target.value = e.target.value.replace(new RegExp("\\[\\["+match+"\\]\\]", "gim"), '<a href="'+url+'">'+match+'</a>');					}			});		}	}}
meta: 10034	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10034/eee5eb1d49bb4ef7e375977c2b4ae10e4a6a9c9c/lnlink.user.js/clean/lngreasemonkey/lnlink.user.js