<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>Here's a fix to the change in the city names. The island location was added to the city names.

After this line:
&lt;code&gt;var city_idmainView = getNodeValue(&quot;id('breadcrumbs')/*[@class='city']&quot;);&lt;/code&gt;

I added the 5 lines:
&lt;pre&gt;
var island_id = getNodeValue(&quot;id('breadcrumbs')//a[@title='Back to the island']&quot;);
if (island_id == undefined){
	island_id = &quot;&quot;;
}
city_idmainView = TrimIsland(island_id)+&quot; &quot;+city_idmainView;	
&lt;/pre&gt;

Make sure you've applied Coop's previous fix w/ the extra white space to the line below (see previous posting from Coops) 
&lt;code&gt;city_idmainView = getNode_value(&quot;//option[@class='avatarCities' and text()=' &quot;+city_idmainView+&quot;']&quot;, 0);&lt;/code&gt;

Also added a TrimIsland Function:
&lt;pre&gt;
/**************************************************************************************************
* TrimIsland Function ******************************************************************/

function TrimIsland(str){
	var a = str.indexOf('[');
	var b = str.indexOf(']');
	str = str.substring(a,b+1);
	return str;
}
&lt;/pre&gt;	

I'm new to greasemonkey scripts, but this seems to fix part of the recent problems..</body>
  <body-html>&lt;p&gt;Here's a fix to the change in the city names. The island location was added to the city names.&lt;/p&gt;

&lt;p&gt;After this line:
&lt;br /&gt;&lt;code&gt;var city_idmainView = getNodeValue(&quot;id('breadcrumbs')/*[@class='city']&quot;);&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;I added the 5 lines:
&lt;br /&gt;&lt;pre&gt;
var island_id = getNodeValue(&quot;id('breadcrumbs')//a[@title='Back to the island']&quot;);
if (island_id == undefined){
	island_id = &quot;&quot;;
}
city_idmainView = TrimIsland(island_id)+&quot; &quot;+city_idmainView;	
&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;Make sure you've applied Coop's previous fix w/ the extra white space to the line below (see previous posting from Coops) 
&lt;br /&gt;&lt;code&gt;city_idmainView = getNode_value(&quot;//option[@class='avatarCities' and text()=' &quot;+city_idmainView+&quot;']&quot;, 0);&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Also added a TrimIsland Function:
&lt;br /&gt;&lt;pre&gt;
/**************************************************************************************************
* TrimIsland Function ******************************************************************/

function TrimIsland(str){
	var a = str.indexOf('[');
	var b = str.indexOf(']');
	str = str.substring(a,b+1);
	return str;
}
&lt;/pre&gt;	&lt;/p&gt;

&lt;p&gt;I'm new to greasemonkey scripts, but this seems to fix part of the recent problems..&lt;/p&gt;</body-html>
  <created-at type="datetime">2008-06-27T18:43:59Z</created-at>
  <forumable-id type="integer">25124</forumable-id>
  <forumable-type>Script</forumable-type>
  <id type="integer">40349</id>
  <topic-id type="integer">13150</topic-id>
  <updated-at type="datetime">2008-11-16T23:47:25Z</updated-at>
  <user-agent nil="true"></user-agent>
  <user-id type="integer">57537</user-id>
</post>
