<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Axino.net &#187; greasemonkey</title>
	<atom:link href="http://www.axino.net/tag/greasemonkey/feed" rel="self" type="application/rss+xml" />
	<link>http://www.axino.net</link>
	<description>The other side of atom.</description>
	<lastBuildDate>Thu, 15 Jul 2010 12:45:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Kingsagex :: version 0.66</title>
		<link>http://www.axino.net/programming/javascript-programming/2010/01/kingsagex-version-0-66</link>
		<comments>http://www.axino.net/programming/javascript-programming/2010/01/kingsagex-version-0-66#comments</comments>
		<pubDate>Sun, 24 Jan 2010 22:54:46 +0000</pubDate>
		<dc:creator>Arxleol</dc:creator>
				<category><![CDATA[KingsAgeX]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[greasemonkey]]></category>
		<category><![CDATA[kingsage]]></category>

		<guid isPermaLink="false">http://www.axino.net/?p=766</guid>
		<description><![CDATA[I understand you all have been waiting long time for this and it is finally here. I took a bit of time to rest from all faculty obligations during this weekend and decided to update this script. At least for me it looks like ages since last update more then month ago on 5.12.2009. This [...]]]></description>
			<content:encoded><![CDATA[<p>I understand you all have been waiting long time for this and it is finally here. I took a bit of time to rest from all faculty obligations during this weekend and decided to update this script.</p>
<p><span id="more-766"></span></p>
<p><img class="alignleft" title="Drop down menu at  kingsage" src="http://i46.tinypic.com/1zwdgye.jpg" alt="" width="391" height="337" />At least for me it looks like ages since last update more then month ago on 5.12.2009.</p>
<p>This is very small update that eliminated several not so much usuful feature. And corrected but regarding drop down menu. Also I have applied correction to css. So that we can use nice layout gameforge provided and do I need to say that they stole my idea regarding drop down list.</p>
<p>And what did I got for that ban from server and not even thank you <img src='http://www.axino.net/wordpress/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  I mean shame on you gameforge.</p>
<p>I am again collecting bugs, reports and ideas. But I think that most of things for none-premiums is corrected with update of drop down menu.</p>
<p>Just for the sake of argument here you can see how list looks now.</p>
<p>Note that I have deleted settlement names coordinates and continents. Just to be sure gameforge doesn&#8217;t get crazy ideas again.</p>
<p>*************<br />
Version 0.66<br />
*************</p>
<p>Bug fix: Drop down list is now included in drop down menu which is opened by left arrow.</p>
<p>Feature added: Usage of CSS style for drop down menu to blend in with the rest of site.</p>
<p>Feature removed: Update of list for premium users.</p>
<p>Feature removed: Page jumper(internal feature) now list is provided as links.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.axino.net/projects/kingsagex" rel="bookmark" title="Tuesday 16.06.2009">KingsAgeX</a></li>
<li><a href="http://www.axino.net/projects/kingsagex/2009/06/kingsagex-version-05" rel="bookmark" title="Sunday 28.06.2009">KingsAgeX :: version 0.5</a></li>
<li><a href="http://www.axino.net/programming/javascript-programming/2009/12/kingsagex-version-0-62" rel="bookmark" title="Saturday 05.12.2009">Kingsagex :: version 0.62</a></li>
<li><a href="http://www.axino.net/programming/javascript-programming/2009/10/kingsagex-version-0-55" rel="bookmark" title="Saturday 03.10.2009">KingsAgeX :: version 0.55</a></li>
<li><a href="http://www.axino.net/programming/javascript-programming/2009/12/kingsage-farmer-version-0-11beta-opening-new-project" rel="bookmark" title="Sunday 13.12.2009">KingsAge Farmer :: version 0.11beta opening new project</a></li>
</ul>
<p><!-- Similar Posts took 5.002 ms --></p>
 <img src="http://www.axino.net/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=766" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.axino.net/programming/javascript-programming/2010/01/kingsagex-version-0-66/feed</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>KingsAge Farmer :: version 0.17beta</title>
		<link>http://www.axino.net/programming/javascript-programming/2009/12/kingsage-farmer-version-0-17beta</link>
		<comments>http://www.axino.net/programming/javascript-programming/2009/12/kingsage-farmer-version-0-17beta#comments</comments>
		<pubDate>Mon, 14 Dec 2009 16:51:35 +0000</pubDate>
		<dc:creator>Arxleol</dc:creator>
				<category><![CDATA[Kingsage farmer]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Browser Based]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[greasemonkey]]></category>
		<category><![CDATA[kingsage]]></category>
		<category><![CDATA[Online game]]></category>

		<guid isPermaLink="false">http://www.axino.net/?p=692</guid>
		<description><![CDATA[Since, after several months if I am not wrong gameforge decided to update kingsage I as well decided to provide update for Kingsage Farmer. *************Version 0.17************* Feature Added: Settings button now works and opens settings Feature Added: Now you will be able to change time which script waits to check status of soldiers. Limit is [...]]]></description>
			<content:encoded><![CDATA[<p>Since, after several months if I am not wrong gameforge decided to update kingsage<em> </em>I as well decided to provide update for Kingsage Farmer. <span id="more-692"></span></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; font-size: 12px; font-weight: inherit; font-style: inherit; font-family: inherit; vertical-align: baseline; padding: 0px;">*************<br style="padding: 0px; margin: 0px;" />Version 0.17<br style="padding: 0px; margin: 0px;" />*************</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; font-size: 12px; font-weight: inherit; font-style: inherit; font-family: inherit; vertical-align: baseline; padding: 0px;">Feature Added: Settings button now works and opens settings</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; font-size: 12px; font-weight: inherit; font-style: inherit; font-family: inherit; vertical-align: baseline; padding: 0px;">Feature Added: Now you will be able to change time which script waits to check status of soldiers. Limit is 5 seconds and you cannot set up less then 5 seconds. More is available. I for example am using settings at 25 seconds.</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; font-size: 12px; font-weight: inherit; font-style: inherit; font-family: inherit; vertical-align: baseline; padding: 0px;">Feature fix: Sending soldiers was corrupted after last attack but it is now fix. And sending soldiers works.</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; font-size: 12px; font-weight: inherit; font-style: inherit; font-family: inherit; vertical-align: baseline; padding: 0px;">Feature fix: Buttons didn&#8217;t work correctly now this should be fixed. For example after clicking one button you had to refresh page before you were able to click it again.</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; font-size: 12px; font-weight: inherit; font-style: inherit; font-family: inherit; vertical-align: baseline; padding: 0px;">That is all for now. If there are no big updates to kingsage you may expect new update of script somewhere after new year. Though I didn&#8217;t have time to check on KingsageX somehow Farmer recieved priority.</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; font-size: 12px; font-weight: inherit; font-style: inherit; font-family: inherit; vertical-align: baseline; padding: 0px;">Ax</p>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.axino.net/projects/kingsage-farmer" rel="bookmark" title="Sunday 13.12.2009">Kingsage farmer</a></li>
<li><a href="http://www.axino.net/programming/javascript-programming/2009/12/kingsage-farmer-version-0-11beta-opening-new-project" rel="bookmark" title="Sunday 13.12.2009">KingsAge Farmer :: version 0.11beta opening new project</a></li>
<li><a href="http://www.axino.net/projects/kingsagex/2009/06/kingsagex-version-05" rel="bookmark" title="Sunday 28.06.2009">KingsAgeX :: version 0.5</a></li>
<li><a href="http://www.axino.net/programming/javascript-programming/2009/12/kingsagex-version-0-62" rel="bookmark" title="Saturday 05.12.2009">Kingsagex :: version 0.62</a></li>
<li><a href="http://www.axino.net/projects/kingsagex/2009/06/kingsagex-version-04beta" rel="bookmark" title="Thursday 18.06.2009">KingsAgeX :: version 0.4BETA</a></li>
</ul>
<p><!-- Similar Posts took 4.786 ms --></p>
 <img src="http://www.axino.net/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=692" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.axino.net/programming/javascript-programming/2009/12/kingsage-farmer-version-0-17beta/feed</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
		<item>
		<title>KingsAge Farmer :: version 0.11beta opening new project</title>
		<link>http://www.axino.net/programming/javascript-programming/2009/12/kingsage-farmer-version-0-11beta-opening-new-project</link>
		<comments>http://www.axino.net/programming/javascript-programming/2009/12/kingsage-farmer-version-0-11beta-opening-new-project#comments</comments>
		<pubDate>Sun, 13 Dec 2009 03:01:27 +0000</pubDate>
		<dc:creator>Arxleol</dc:creator>
				<category><![CDATA[Kingsage farmer]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[greasemonkey]]></category>
		<category><![CDATA[kingsage]]></category>
		<category><![CDATA[Online game]]></category>

		<guid isPermaLink="false">http://www.axino.net/?p=680</guid>
		<description><![CDATA[Well, instead of searching for ladies in the clubs, pubs and other places one may find them. I spent my Friday and Saturday night programming. And here is result of some 10 to 12 hours work. Very simple and not that smart farmer, yet very useful for everyone  . Before you start writing about bugs. Please read very [...]]]></description>
			<content:encoded><![CDATA[<p>Well, instead of searching for ladies in the clubs, pubs and other places one may find them. I spent my Friday and Saturday night programming. And here is result of some 10 to 12 hours work.</p>
<p><span id="more-680"></span></p>
<p>Very simple and not that smart farmer, yet very useful for everyone <img src='http://www.axino.net/wordpress/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  .</p>
<p>Before you start writing about bugs. Please read very carefully:</p>
<p>Two buttons settings and on hold currently do not have any functions. To start farming please first add some farms. There is add farm button in the info page of every village. However, if you find yourself in problem. So you clicked on button but nothing happened that just means that you should go and disable all other scripts, you may enable them later on but there is some conflicts I haven&#8217;t yet resolved.</p>
<p>When you add few farms you may go and check them in the drop down menu by clicking on farms.</p>
<p>And that is all. Current time between refreshes is 10 seconds.</p>
<p>This farmer is not yet that smart well it is only able to follow list and go in circles. After list is complete it will continue from beginning.</p>
<p>Each attack will consist out of 100 soldiers.</p>
<p>That&#8217;s all folks. It is 4 in the morning and I am going to sleep. Though I have strange feeling that this text is a bit strange <img src='http://www.axino.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I will happily read your comments.</p>
<p>Happy f4rming</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; padding: 0px; border: 0px initial initial;">*************<br />
Version 0.11<br />
*************</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; padding: 0px; border: 0px initial initial;">Feature Added: Listing of added farms</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; padding: 0px; border: 0px initial initial;">Feature Added: Starting and stopping farmer</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; padding: 0px; border: 0px initial initial;">Feature Added: Adding farms and checking if farms are already added</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; padding: 0px; border: 0px initial initial;">Feature Added: Auto-refreshing every 10 seconds</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; padding: 0px; border: 0px initial initial;">Feature Added: Auto-attacking farm.</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; padding: 0px; border: 0px initial initial;">Feature Added: Reviving list when comes to the end.</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; padding: 0px; border: 0px initial initial;">Feature Added: Drop down menu for listing and other things regarding auto-farmer</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; padding: 0px; border: 0px initial initial;">Feature Added: Opening and closing down over image of squire swords.</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; padding: 0px; border: 0px initial initial;">Feature Added: Drop down menu will remember choice made and therefore keeps it open or closed depending on last choice.</p>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.axino.net/projects/kingsage-farmer" rel="bookmark" title="Sunday 13.12.2009">Kingsage farmer</a></li>
<li><a href="http://www.axino.net/programming/javascript-programming/2009/12/kingsage-farmer-version-0-17beta" rel="bookmark" title="Monday 14.12.2009">KingsAge Farmer :: version 0.17beta</a></li>
<li><a href="http://www.axino.net/programming/javascript-programming/2010/01/kingsagex-version-0-66" rel="bookmark" title="Sunday 24.01.2010">Kingsagex :: version 0.66</a></li>
<li><a href="http://www.axino.net/projects/kingsagex/2009/06/kingsagex-version-05" rel="bookmark" title="Sunday 28.06.2009">KingsAgeX :: version 0.5</a></li>
<li><a href="http://www.axino.net/projects/kingsagex" rel="bookmark" title="Tuesday 16.06.2009">KingsAgeX</a></li>
</ul>
<p><!-- Similar Posts took 4.921 ms --></p>
 <img src="http://www.axino.net/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=680" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.axino.net/programming/javascript-programming/2009/12/kingsage-farmer-version-0-11beta-opening-new-project/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Correction of auto-updater for Greasemonkey scripts</title>
		<link>http://www.axino.net/tutorial/2009/12/correction-of-auto-updater-for-greasemonkey-scripts</link>
		<comments>http://www.axino.net/tutorial/2009/12/correction-of-auto-updater-for-greasemonkey-scripts#comments</comments>
		<pubDate>Tue, 08 Dec 2009 18:53:33 +0000</pubDate>
		<dc:creator>Arxleol</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[greasemonkey]]></category>
		<category><![CDATA[how to]]></category>

		<guid isPermaLink="false">http://www.axino.net/?p=677</guid>
		<description><![CDATA[In the auto-updater for userscripts there was small bug. It is now of course corrected. //this function check if there is new version of script available window.checkVersion = function&#40;&#41;&#123; &#160; var tmp = new Date&#40;&#41;.getTime&#40;&#41;; //Obtains time in milliseconds &#160; var tm = GM_getValue&#40;&#34;tcv&#34;, 0&#41;; // Obtains value when last check was performed, default value [...]]]></description>
			<content:encoded><![CDATA[<p>In the auto-updater for userscripts there was small bug. It is now of course corrected.</p>
<p><span id="more-677"></span> <code><br />
</code></p>
<p><code></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">//this function check if there is new version of script available</span>
window.<span style="color: #660066;">checkVersion</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> tmp <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Date<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getTime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//Obtains time in milliseconds</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> tm <span style="color: #339933;">=</span> GM_getValue<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;tcv&quot;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// Obtains value when last check was performed, default value is 0</span>
&nbsp;
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>tm <span style="color: #339933;">==</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">//Checks if check was performed before</span>
&nbsp;
GM_setValue<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;tcv&quot;</span><span style="color: #339933;">,</span> parseInt<span style="color: #009900;">&#40;</span>tmp<span style="color: #339933;">/</span><span style="color: #CC0000;">1000</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//If check was not performed this means that user just installed latest version of script, and we therefore save time in seconds when check was performed</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>tmp<span style="color: #339933;">/</span><span style="color: #CC0000;">1000</span> <span style="color: #339933;">-</span> parseInt<span style="color: #009900;">&#40;</span>tm<span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;=</span> <span style="color: #CC0000;">90000</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">// This part checks whether check was performed in last 25 hours. You can set your own timing by chaining value 90000 to something else. Note that this value is in seconds.</span>
&nbsp;
GM_setValue<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;tcv&quot;</span><span style="color: #339933;">,</span> parseInt<span style="color: #009900;">&#40;</span>tmp<span style="color: #339933;">/</span><span style="color: #CC0000;">1000</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//Now we save time so that it was checked for new version.</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//this part connects to userscripts meta site and checks values for your script</span>
GM_xmlhttpRequest<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
method<span style="color: #339933;">:</span> <span style="color: #3366CC;">'GET'</span><span style="color: #339933;">,</span>
url<span style="color: #339933;">:</span> <span style="color: #3366CC;">'http://userscripts.org/scripts/source/51469.meta.js'</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">//Here you will change number 51469 to number of your script</span>
headers<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
<span style="color: #3366CC;">'User-agent'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'Mozilla/4.0 (compatible) Greasemonkey'</span><span style="color: #339933;">,</span>
<span style="color: #3366CC;">'Accept'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'application/html,application/xml,text/xml'</span><span style="color: #339933;">,</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
<span style="color: #000066;">onload</span><span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>responseDetails<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> text <span style="color: #339933;">=</span> responseDetails.<span style="color: #660066;">responseText</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//We obtain contents of the site</span>
vs<span style="color: #339933;">=</span>text.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//We split content by rows</span>
vers <span style="color: #339933;">=</span> vs<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">4</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">substring</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">12</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// Here we obtain version of the script if by some case you have your @version tag in some other row then fifth then change number 4 to some other value that responds to your code</span>
&nbsp;
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>version <span style="color: #339933;">!=</span> parseFloat<span style="color: #009900;">&#40;</span>vers<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">// We check if new version is out</span>
<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;New version of KingsAgeX is out!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #006600; font-style: italic;">// This is notification to user that new version is available</span>
window.<span style="color: #660066;">location</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;http://userscripts.org/scripts/source/51469.user.js&quot;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//If new version is out install new version of the script. NOTE: that you have to change number 51469 to the number of your script on userscripts.</span>
&nbsp;
window.<span style="color: #660066;">reload</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

<p></code></p>
<p>This is corrected version of auto-updater. Now problem was that alert saying that new version is available would fire each 25 hours or depending how you set timer.</p>
<p>To solve this alert was moved into the loop when new version is confirmed.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.axino.net/tutorial/2009/11/how-to-write-script-updater-for-greasemonkey-scripts" rel="bookmark" title="Thursday 05.11.2009">How to write script updater for Greasemonkey scripts</a></li>
<li><a href="http://www.axino.net/programming/javascript-programming/2009/11/kingsagex-version-0-59" rel="bookmark" title="Wednesday 04.11.2009">Kingsagex :: version 0.59</a></li>
<li><a href="http://www.axino.net/tutorial/2009/10/javascript-settimeout-in-greasemonkey" rel="bookmark" title="Sunday 25.10.2009">javascript setTimeout() in greasemonkey</a></li>
<li><a href="http://www.axino.net/programming/javascript-programming/2009/12/kingsagex-version-0-62" rel="bookmark" title="Saturday 05.12.2009">Kingsagex :: version 0.62</a></li>
<li><a href="http://www.axino.net/projects/kingsagex" rel="bookmark" title="Tuesday 16.06.2009">KingsAgeX</a></li>
</ul>
<p><!-- Similar Posts took 5.002 ms --></p>
 <img src="http://www.axino.net/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=677" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.axino.net/tutorial/2009/12/correction-of-auto-updater-for-greasemonkey-scripts/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kingsagex :: version 0.62</title>
		<link>http://www.axino.net/programming/javascript-programming/2009/12/kingsagex-version-0-62</link>
		<comments>http://www.axino.net/programming/javascript-programming/2009/12/kingsagex-version-0-62#comments</comments>
		<pubDate>Fri, 04 Dec 2009 23:35:58 +0000</pubDate>
		<dc:creator>Arxleol</dc:creator>
				<category><![CDATA[KingsAgeX]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[greasemonkey]]></category>
		<category><![CDATA[kingsage]]></category>

		<guid isPermaLink="false">http://www.axino.net/?p=671</guid>
		<description><![CDATA[OK there were a lot of bugs reported since the last version and its been more then two weeks since the last version. So I&#8217;ve decided to revise the code and make necessary changes. First of all auto-attacking functions from KingsAgeX are out. Soon I will publish new script that will have single function and that will [...]]]></description>
			<content:encoded><![CDATA[<p>OK there were a lot of bugs reported since the last version and its been more then two weeks since the last version. So I&#8217;ve decided to revise the code and make necessary changes. First of all auto-attacking functions from KingsAgeX are out. Soon I will publish new script that will have single function and that will be auto-attacking. Now let me explain why I have decided on such step. Because KingsAgeX from the beginning was intended as extension of already available functions in kingsage.org and later other servers.</p>
<p><span id="more-671"></span></p>
<p>If you were wandering why is there X in the name it was intended as eXtends. However, over the course of time and more and more functions being added into the script it is getting a bit clouded and so I made decision to split functionality and put auto-attacking function in completely separate script and project. Reasons are many but the biggest one is that auto-attacking feature is robust and large and because it is maneuvering trough several web pages there is possibility that in some future update problems might arise. On the other hand having it separated will make it easier for me to update both scripts. Not that my good habit of writing comments for each line of code helped <img src='http://www.axino.net/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  . Soon I will publish auto-attacking script. I know you anxiously await.  Probably during end of next week or beginning of week after next one!</p>
<p>All that being said, I would also like to ask someone with preferably good writing scripts to write short how to guide in hopes to explain functionality of the script. Of course if you are having site link would be provided or some kind of reference will surely be provided. This is not my idea but the problem is that something obvious to me as script writer is not obvious to someone else as script user. And with this I would like to fix the gap between the two. Please contact me about this at: arxleol [at] gmail dot com or leave a comment.</p>
<p>Simple, example of this is the usage of buttons in castle view because many people figure that things should be inversed.</p>
<p>And before you check changes from previous version. Is drop down list neccessery for the premium version? Now that administrators have stolen my idea and provided this as premium feature.</p>
<p>*************<br style="padding: 0px; margin: 0px;" />Version 0.62<br style="padding: 0px; margin: 0px;" />*************</p>
<p>Feature added: Showing currently selected option for settlement name shortener and drop down list jumping to the same view.</p>
<p>Feature added: Because none premiums couldn&#8217;t see options in castle view I&#8217;ve decided to add another set for checking whether user has premium or not. So if you do not see options in castle view go to profile-&gt;settings-&gt;basic settings and click no premium.</p>
<p>Bugfix: Alert that jumped each day saying that there is new version of the script. This will not happen anymore. Now every 25 hours script will check if there is new version.</p>
<p>Bugfix: Options in castle view are now shown correctly for premium users instead overlapping production list.</p>
<p>Bugfix: Runtime calculator wasn&#8217;t working for premium users now its fixed. and works.</p>
<p>Feature removed: Auto-attacking executions</p>
<p>Feature removed: Attack panel</p>
<p>Feature removed: Saving delayed attack</p>
<p>P.S. If you are wandering by accident what happened with version 0.61 I jumped it because it was quick update only few hours after 0.60 so it was not noteworthy. Just simple accident in update.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.axino.net/programming/javascript-programming/2010/01/kingsagex-version-0-66" rel="bookmark" title="Sunday 24.01.2010">Kingsagex :: version 0.66</a></li>
<li><a href="http://www.axino.net/projects/kingsagex/2009/06/kingsagex-version-05" rel="bookmark" title="Sunday 28.06.2009">KingsAgeX :: version 0.5</a></li>
<li><a href="http://www.axino.net/projects/kingsagex" rel="bookmark" title="Tuesday 16.06.2009">KingsAgeX</a></li>
<li><a href="http://www.axino.net/programming/javascript-programming/2009/10/kingsagex-version-0-56" rel="bookmark" title="Thursday 22.10.2009">KingsAgeX :: version 0.56</a></li>
<li><a href="http://www.axino.net/projects/kingsagex/2009/06/kingsagex-version-04beta" rel="bookmark" title="Thursday 18.06.2009">KingsAgeX :: version 0.4BETA</a></li>
</ul>
<p><!-- Similar Posts took 5.226 ms --></p>
 <img src="http://www.axino.net/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=671" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.axino.net/programming/javascript-programming/2009/12/kingsagex-version-0-62/feed</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
		<item>
		<title>Kingsagex :: version 0.60</title>
		<link>http://www.axino.net/programming/javascript-programming/2009/11/kingsagex-version-0-60</link>
		<comments>http://www.axino.net/programming/javascript-programming/2009/11/kingsagex-version-0-60#comments</comments>
		<pubDate>Fri, 20 Nov 2009 01:52:40 +0000</pubDate>
		<dc:creator>Arxleol</dc:creator>
				<category><![CDATA[KingsAgeX]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Browser Based]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[greasemonkey]]></category>
		<category><![CDATA[kingsage]]></category>
		<category><![CDATA[Online game]]></category>

		<guid isPermaLink="false">http://www.axino.net/?p=619</guid>
		<description><![CDATA[Another milestone 6k installations. And here is version 0.60 of the kingsageX. *************Version 0.60************* Feature Added: Satellite view of the server. Bugfix: Auto-attacker should work now for all servers. Bugfix: Attack panel will not jump now in the forums and will not post itself in posts. As always any suggestions are welcomed. In next version I expect [...]]]></description>
			<content:encoded><![CDATA[<p>Another milestone 6k installations. And here is version 0.60 of the kingsageX. <span id="more-619"></span>*************<br style="padding: 0px; margin: 0px;" />Version 0.60<br style="padding: 0px; margin: 0px;" />*************</p>
<p>Feature Added: Satellite view of the server.</p>
<p>Bugfix: Auto-attacker should work now for all servers.</p>
<p>Bugfix: Attack panel will not jump now in the forums and will not post itself in posts.</p>
<p>As always any suggestions are welcomed. In next version I expect to finish auto-attacker that will work with all units and multiple settlements.</p>
<p>Ax<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.axino.net/programming/javascript-programming/2009/10/kingsagex-version-0-57" rel="bookmark" title="Wednesday 28.10.2009">KingsAgeX :: version 0.57 milestone</a></li>
<li><a href="http://www.axino.net/projects/kingsagex" rel="bookmark" title="Tuesday 16.06.2009">KingsAgeX</a></li>
<li><a href="http://www.axino.net/programming/javascript-programming/2009/10/kingsagex-version-0-55" rel="bookmark" title="Saturday 03.10.2009">KingsAgeX :: version 0.55</a></li>
<li><a href="http://www.axino.net/projects/kingsagex/2009/06/kingsagex-version-04beta" rel="bookmark" title="Thursday 18.06.2009">KingsAgeX :: version 0.4BETA</a></li>
<li><a href="http://www.axino.net/projects/kingsagex/2009/06/kingsagex-version-05" rel="bookmark" title="Sunday 28.06.2009">KingsAgeX :: version 0.5</a></li>
</ul>
<p><!-- Similar Posts took 4.773 ms --></p>
 <img src="http://www.axino.net/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=619" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.axino.net/programming/javascript-programming/2009/11/kingsagex-version-0-60/feed</wfw:commentRss>
		<slash:comments>47</slash:comments>
		</item>
		<item>
		<title>How to write script updater for Greasemonkey scripts</title>
		<link>http://www.axino.net/tutorial/2009/11/how-to-write-script-updater-for-greasemonkey-scripts</link>
		<comments>http://www.axino.net/tutorial/2009/11/how-to-write-script-updater-for-greasemonkey-scripts#comments</comments>
		<pubDate>Thu, 05 Nov 2009 09:02:14 +0000</pubDate>
		<dc:creator>Arxleol</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[greasemonkey]]></category>

		<guid isPermaLink="false">http://www.axino.net/?p=592</guid>
		<description><![CDATA[I wrote script KingsageX and wanted to have auto-updater. So that anyone who uses script gets notified when new version is out. As I had many requests, emails and such that script doesn&#8217;t work but what in fact happened was that people didn&#8217;t updated their script to new version. If you have similar problems or [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote script KingsageX and wanted to have auto-updater. So that anyone who uses script gets notified when new version is out. As I had many requests, emails and such that script doesn&#8217;t work but what in fact happened was that people didn&#8217;t updated their script to new version. If you have similar problems or just want that all of your users have script updated to the latest version keep reading.<span id="more-592"></span>Also I would like to note that I wanted this solution to be as simple as possible.</p>
<p>So we will work here on the example of kingsageX but your script will not require many changes.</p>
<p>First thing to do is to add variable version to the script. At the time of writing I was working on kingsageX version 0.60 so here is example:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">//Current scripts version</span>
<span style="color: #003366; font-weight: bold;">var</span> version <span style="color: #339933;">=</span> <span style="color: #CC0000;">0.60</span><span style="color: #339933;">;</span></pre></div></div>

<p>Second thing important for checking purposes is to check UserScript tag field it should resemble following:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// ==UserScript==</span>
<span style="color: #006600; font-style: italic;">// @name KingsAgeX</span>
<span style="color: #006600; font-style: italic;">// @namespace http://axino.net/code/</span>
<span style="color: #006600; font-style: italic;">// @description script that extends functionallity of the free online game KingsAge</span>
<span style="color: #006600; font-style: italic;">// @version 0.60</span>
<span style="color: #006600; font-style: italic;">// @author Arxleol</span>
<span style="color: #006600; font-style: italic;">// @copyright Axino.net (http://www.axino.net/)</span>
<span style="color: #006600; font-style: italic;">// @include http://*.kingsage.*/*</span>
<span style="color: #006600; font-style: italic;">// @include http://*.kingsage.*.*/*</span>
<span style="color: #006600; font-style: italic;">// ==/UserScript==</span></pre></div></div>

<p>I suggest that version is fifth field but if you have version somewhere else I will instruct later what additional change needs to be done.</p>
<p>Now here is function that checks if there is new update available or as a matter of fact checks whether there is new version available.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">//this function check if there is new version of script available</span>
window.<span style="color: #660066;">checkVersion</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #003366; font-weight: bold;">var</span> tmp <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Date<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getTime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//Obtains time in milliseconds </span>
&nbsp;
	<span style="color: #003366; font-weight: bold;">var</span> tm <span style="color: #339933;">=</span> GM_getValue<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;tcv&quot;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// Obtains value when last check was performed, default value is 0</span>
&nbsp;
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>tm <span style="color: #339933;">==</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">//Checks if check was performed before</span>
&nbsp;
		GM_setValue<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;tcv&quot;</span><span style="color: #339933;">,</span> parseInt<span style="color: #009900;">&#40;</span>tmp<span style="color: #339933;">/</span><span style="color: #CC0000;">1000</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//If check was not performed this means that user just installed latest version of script, and we therefore save time in seconds when check was performed</span>
&nbsp;
	<span style="color: #009900;">&#125;</span><span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>tmp<span style="color: #339933;">/</span><span style="color: #CC0000;">1000</span> <span style="color: #339933;">-</span> parseInt<span style="color: #009900;">&#40;</span>tm<span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;=</span> <span style="color: #CC0000;">90000</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">// This part checks whether check was performed in last 25 hours. You can set your own timing by chaining value 90000 to something else. Note that this value is in seconds.</span>
&nbsp;
			GM_setValue<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;tcv&quot;</span><span style="color: #339933;">,</span> parseInt<span style="color: #009900;">&#40;</span>tmp<span style="color: #339933;">/</span><span style="color: #CC0000;">1000</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//Now we save time so that it was checked for new version.</span>
&nbsp;
                        <span style="color: #006600; font-style: italic;">//this part connects to userscripts meta site and checks values for your script</span>
			GM_xmlhttpRequest<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
			    method<span style="color: #339933;">:</span> <span style="color: #3366CC;">'GET'</span><span style="color: #339933;">,</span>
			    url<span style="color: #339933;">:</span> <span style="color: #3366CC;">'http://userscripts.org/scripts/source/51469.meta.js'</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">//Here you will change number 51469 to number of your script</span>
			    headers<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
			        <span style="color: #3366CC;">'User-agent'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'Mozilla/4.0 (compatible) Greasemonkey'</span><span style="color: #339933;">,</span>
			        <span style="color: #3366CC;">'Accept'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'application/html,application/xml,text/xml'</span><span style="color: #339933;">,</span>
			    <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
			    <span style="color: #000066;">onload</span><span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>responseDetails<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
			    	<span style="color: #003366; font-weight: bold;">var</span> text <span style="color: #339933;">=</span> responseDetails.<span style="color: #660066;">responseText</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//We obtain contents of the site</span>
			    	vs<span style="color: #339933;">=</span>text.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//We split content by rows</span>
			    	vers <span style="color: #339933;">=</span> vs<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">4</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">substring</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">12</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// Here we obtain version of the script if by some case you have your @version tag in some other row then fifth then change number 4 to some other value that responds to your code</span>
&nbsp;
			    	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>version <span style="color: #339933;">!=</span> parseFloat<span style="color: #009900;">&#40;</span>vers<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">// We check if new version is out</span>
		                	<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;New version of KingsAgeX is out!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #006600; font-style: italic;">// This is notification to user that new version is available</span>
			    		window.<span style="color: #660066;">location</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;http://userscripts.org/scripts/source/51469.user.js&quot;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//If new version is out install new version of the script. NOTE: that you have to change number 51469 to the number of your script on userscripts.</span>
&nbsp;
			    		window.<span style="color: #660066;">reload</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
			    	<span style="color: #009900;">&#125;</span>
&nbsp;
			    <span style="color: #009900;">&#125;</span>
			<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>		
&nbsp;
		<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Now I now there are some changes but this updater is not as intrusive as some others and works for sure <img src='http://www.axino.net/wordpress/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>The very last thing to do is to call function for updating. You can call it from anywhere in your code.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">//check for new version</span>
window.<span style="color: #660066;">checkVersion</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>If you have any questions please do ask? If you liked it well then write it so I know <img src='http://www.axino.net/wordpress/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> <strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.axino.net/tutorial/2009/12/correction-of-auto-updater-for-greasemonkey-scripts" rel="bookmark" title="Tuesday 08.12.2009">Correction of auto-updater for Greasemonkey scripts</a></li>
<li><a href="http://www.axino.net/programming/javascript-programming/2009/11/kingsagex-version-0-59" rel="bookmark" title="Wednesday 04.11.2009">Kingsagex :: version 0.59</a></li>
<li><a href="http://www.axino.net/programming/javascript-programming/2009/12/kingsagex-version-0-62" rel="bookmark" title="Saturday 05.12.2009">Kingsagex :: version 0.62</a></li>
<li><a href="http://www.axino.net/projects/2009/06/kingsagex-project" rel="bookmark" title="Sunday 14.06.2009">KingsAgeX project</a></li>
<li><a href="http://www.axino.net/programming/javascript-programming/2009/12/kingsage-farmer-version-0-17beta" rel="bookmark" title="Monday 14.12.2009">KingsAge Farmer :: version 0.17beta</a></li>
</ul>
<p><!-- Similar Posts took 5.318 ms --></p>
 <img src="http://www.axino.net/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=592" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.axino.net/tutorial/2009/11/how-to-write-script-updater-for-greasemonkey-scripts/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Kingsagex :: version 0.59</title>
		<link>http://www.axino.net/programming/javascript-programming/2009/11/kingsagex-version-0-59</link>
		<comments>http://www.axino.net/programming/javascript-programming/2009/11/kingsagex-version-0-59#comments</comments>
		<pubDate>Wed, 04 Nov 2009 22:13:48 +0000</pubDate>
		<dc:creator>Arxleol</dc:creator>
				<category><![CDATA[KingsAgeX]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Browser Based]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[greasemonkey]]></category>
		<category><![CDATA[kingsage]]></category>
		<category><![CDATA[Online game]]></category>

		<guid isPermaLink="false">http://www.axino.net/?p=587</guid>
		<description><![CDATA[This is just minor update to fix fiasco from previous week. The following update includes auto-updater that should work correctly and checks once a day if there is new version of the script.*************Version 0.59*************Feature Added: Auto-updater. I wrote it myself checks for version on userscripts directly. INSTALL NEW VERSION HERESimilar Posts: KingsAgeX :: version 0.58 [...]]]></description>
			<content:encoded><![CDATA[<p>This is just minor update to fix fiasco from previous week. The following update includes auto-updater that should work correctly and checks once a day if there is new version of the script.<span id="more-587"></span>*************<br style="padding: 0px; margin: 0px;" />Version 0.59<br style="padding: 0px; margin: 0px;" />*************<br style="padding: 0px; margin: 0px;" />Feature Added: Auto-updater. I wrote it myself checks for version on userscripts directly.</p>
<p><a style="color: #ffffff; text-decoration: underline; padding: 0px; margin: 0px;" href="http://userscripts.org/scripts/source/51469.user.js">INSTALL NEW VERSION HERE</a><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.axino.net/programming/javascript-programming/2009/10/kingsagex-version-0-58-emergency-update" rel="bookmark" title="Friday 30.10.2009">KingsAgeX :: version 0.58 emergency update</a></li>
<li><a href="http://www.axino.net/programming/javascript-programming/2009/10/kingsagex-version-0-57" rel="bookmark" title="Wednesday 28.10.2009">KingsAgeX :: version 0.57 milestone</a></li>
<li><a href="http://www.axino.net/projects/kingsagex" rel="bookmark" title="Tuesday 16.06.2009">KingsAgeX</a></li>
<li><a href="http://www.axino.net/programming/javascript-programming/2009/12/kingsagex-version-0-62" rel="bookmark" title="Saturday 05.12.2009">Kingsagex :: version 0.62</a></li>
<li><a href="http://www.axino.net/projects/kingsage-farmer" rel="bookmark" title="Sunday 13.12.2009">Kingsage farmer</a></li>
</ul>
<p><!-- Similar Posts took 4.719 ms --></p>
 <img src="http://www.axino.net/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=587" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.axino.net/programming/javascript-programming/2009/11/kingsagex-version-0-59/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>KingsAgeX :: version 0.58 emergency update</title>
		<link>http://www.axino.net/programming/javascript-programming/2009/10/kingsagex-version-0-58-emergency-update</link>
		<comments>http://www.axino.net/programming/javascript-programming/2009/10/kingsagex-version-0-58-emergency-update#comments</comments>
		<pubDate>Fri, 30 Oct 2009 19:53:39 +0000</pubDate>
		<dc:creator>Arxleol</dc:creator>
				<category><![CDATA[KingsAgeX]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Browser Based]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[greasemonkey]]></category>
		<category><![CDATA[Online game]]></category>

		<guid isPermaLink="false">http://www.axino.net/?p=569</guid>
		<description><![CDATA[Unfortunately in the previous version of script bug occured and script needs to be removed from computer manually, therefore I wrote the following guide. This is as the name says emergency update and no new features are presented but auto-updater is removed. ************* Version 0.58 emergency update ************* Feature Removed: Auto-updater. INSTALL NEW VERSION HERESimilar [...]]]></description>
			<content:encoded><![CDATA[<p>Unfortunately in the previous version of script bug occured and script needs to be removed from computer manually, therefore I wrote the following<a href="http://www.axino.net/projects/kingsagex/2009/10/remove-kingsagex-0-57-version"> guide</a>. This is as the name says emergency update and no new features are presented but auto-updater is removed.</p>
<p><span id="more-569"></span></p>
<p>*************<br />
Version 0.58 emergency update<br />
*************<br />
Feature Removed: Auto-updater.</p>
<p><a href="http://userscripts.org/scripts/source/51469.user.js">INSTALL NEW VERSION HERE</a><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.axino.net/programming/javascript-programming/2009/11/kingsagex-version-0-59" rel="bookmark" title="Wednesday 04.11.2009">Kingsagex :: version 0.59</a></li>
<li><a href="http://www.axino.net/programming/javascript-programming/2009/10/kingsagex-version-0-57" rel="bookmark" title="Wednesday 28.10.2009">KingsAgeX :: version 0.57 milestone</a></li>
<li><a href="http://www.axino.net/programming/javascript-programming/2009/12/kingsagex-version-0-62" rel="bookmark" title="Saturday 05.12.2009">Kingsagex :: version 0.62</a></li>
<li><a href="http://www.axino.net/projects/kingsagex" rel="bookmark" title="Tuesday 16.06.2009">KingsAgeX</a></li>
<li><a href="http://www.axino.net/projects/kingsagex/2009/06/kingsagex-version-05" rel="bookmark" title="Sunday 28.06.2009">KingsAgeX :: version 0.5</a></li>
</ul>
<p><!-- Similar Posts took 4.913 ms --></p>
 <img src="http://www.axino.net/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=569" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.axino.net/programming/javascript-programming/2009/10/kingsagex-version-0-58-emergency-update/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove KingsageX 0.57 version</title>
		<link>http://www.axino.net/projects/kingsagex/2009/10/remove-kingsagex-0-57-version</link>
		<comments>http://www.axino.net/projects/kingsagex/2009/10/remove-kingsagex-0-57-version#comments</comments>
		<pubDate>Fri, 30 Oct 2009 02:25:15 +0000</pubDate>
		<dc:creator>Arxleol</dc:creator>
				<category><![CDATA[KingsAgeX]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[greasemonkey]]></category>

		<guid isPermaLink="false">http://www.axino.net/?p=560</guid>
		<description><![CDATA[Well, unfortunately there was serious error in kingsagex version 0.57. and therefore you will have to remove it and install new update that will come out later today. I am really sorry that this happened but as Romans said: &#8220;Errare humanum est&#8221;! First click with right click on the monkey image you see in lower [...]]]></description>
			<content:encoded><![CDATA[<p>Well, unfortunately there was serious error in kingsagex version 0.57. and therefore you will have to remove it and install new update that will come out later today. <span id="more-560"></span>I am really sorry that this happened but as Romans said: &#8220;Errare humanum est&#8221;!</p>
<p>First click with right click on the monkey image you see in lower right corner of your browser.</p>
<div id="attachment_561" class="wp-caption alignnone" style="width: 160px"><a href="http://www.axino.net/wordpress/wp-content/uploads/2009/10/managegreasemonkeyscripts.png"><img class="size-thumbnail wp-image-561 " title="managegreasemonkeyscripts" src="http://www.axino.net/wordpress/wp-content/uploads/2009/10/managegreasemonkeyscripts-150x150.png" alt="managegreasemonkeyscripts" width="150" height="150" /></a><p class="wp-caption-text">click to enlarge</p></div>
<p>Now that you have clicked on image new window will open. in this window select <strong>51469</strong> as following image shows.</p>
<div id="attachment_567" class="wp-caption alignnone" style="width: 160px"><a href="http://www.axino.net/wordpress/wp-content/uploads/2009/10/select.png"><img class="size-thumbnail wp-image-567" title="select" src="http://www.axino.net/wordpress/wp-content/uploads/2009/10/select-150x150.png" alt="click to enlarge" width="150" height="150" /></a><p class="wp-caption-text">click to enlarge</p></div>
<p>After you selected <strong>51469 </strong>click uninstall and it will clear from your system.</p>
<p>Later today I will put out update that will fix this serious bug.</p>
<p>Unfortunately, error occurred because I tried to use auto-update feature but haven&#8217;t checked into it so much as it shows it is not that good solution, so later on I will try to solve this problem of auto-updating.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.axino.net/programming/javascript-programming/2009/12/kingsagex-version-0-62" rel="bookmark" title="Saturday 05.12.2009">Kingsagex :: version 0.62</a></li>
<li><a href="http://www.axino.net/programming/javascript-programming/2009/11/kingsagex-version-0-59" rel="bookmark" title="Wednesday 04.11.2009">Kingsagex :: version 0.59</a></li>
<li><a href="http://www.axino.net/projects/kingsagex/2009/06/kingsagex-version-05" rel="bookmark" title="Sunday 28.06.2009">KingsAgeX :: version 0.5</a></li>
<li><a href="http://www.axino.net/programming/javascript-programming/2009/10/kingsagex-version-0-58-emergency-update" rel="bookmark" title="Friday 30.10.2009">KingsAgeX :: version 0.58 emergency update</a></li>
<li><a href="http://www.axino.net/projects/kingsagex" rel="bookmark" title="Tuesday 16.06.2009">KingsAgeX</a></li>
</ul>
<p><!-- Similar Posts took 4.957 ms --></p>
 <img src="http://www.axino.net/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=560" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.axino.net/projects/kingsagex/2009/10/remove-kingsagex-0-57-version/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
