rem: var URLs=new Array(), loc=getBrowser().contentWindow.location; 
add: var URLs=[], loc=getBrowser().contentWindow.location; 
context: getURLs:function() {	var URLs=new Array(), loc=getBrowser().contentWindow.location;	try {	//check for validity	if ('about:'==loc.protocol) return URLs;	//get the URL	var path=loc.href;	//strip off the scheme and host	path=path.replace(/^.*:\/\/[^\/]*\//, '');	//and the trailing slash if there	path=path.replace(/\/$/, '');	var host=loc.host;	var scheme=loc.protocol+'//';	var emptyPath=(''==path);	//strip hash if there	if (path.indexOf('#')>0) {		path=path.replace(/#.*/, '');		URLs[URLs.length]=scheme+host+'/'+path;	}	//strip querystring if there	if (path.indexOf('?')>0) {		path=path.replace(/\?.*/, '');		URLs[URLs.length]=scheme+host+'/'+path;	}	//strip files/directories if there	while (path.indexOf('/')>0) {		path=path.replace(/\/[^\/]*$/, '');		URLs[URLs.length]=scheme+host+'/'+path+'/';	}	//host only	if (!emptyPath) URLs[URLs.length]=scheme+host+'/';	//strip subdomains if there	while (host.match(/\..*\./)) {		host=host.replace(/[^.]*\./, '');		URLs[URLs.length]=scheme+host+'/';	}	} catch (e) { this.dumpErr(e); }	return URLs;},
meta: 2321	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2321/20f97aa967cf88ccc889b1642856f10002c524f7/uppity.js/buggy/trunk/content/uppity.js