There are 5 previous versions of this script.
typeof(CheckForUpdate)!='undefined' && CheckForUpdate.init(<>
// ==UserScript==
// @name Neopets : The Snowager [Silent version]
// @namespace http://gm.wesley.eti.br/neopets
// @description Silently visit the Snowager every 8 hours
// @author w35l3y
// @email w35l3y@brasnet.org
// @copyright 2009, w35l3y (http://gm.wesley.eti.br/includes)
// @license GNU GPL
// @homepage http://gm.wesley.eti.br/includes
// @version 1.0.1.1
// @include http://www.neopets.com/*
// @exclude http://www.neopets.com/colorpallette.phtml
// @exclude http://www.neopets.com/neomail_block_check.phtml?*
// @exclude http://www.neopets.com/ads/*
// @exclude http://www.neopets.com/games/play_flash.phtml?*
// @exclude http://www.neopets.com/iteminfo.phtml?*
// @require http://userscripts.org/scripts/source/54389.user.js
// @require http://userscripts.org/scripts/source/38788.user.js
// @require http://userscripts.org/scripts/source/53965.user.js
// @require http://userscripts.org/scripts/source/54000.user.js
// @cfu:meta http://userscripts.org/scripts/source/@cfu:id.meta.js
// @cfu:url http://userscripts.org/scripts/source/@cfu:id.user.js
// @cfu:interval 3 days
// @cfu:id uso:script
// @cfu:version version
// @cfu:timestamp uso:timestamp
// @uso:script 54076
// @uso:timestamp 12:01 20/07/2009
// ==/UserScript==
</>, typeof TheSnowagerCheckForUpdateCallback == 'function' && TheSnowagerCheckForUpdateCallback || undefined);
/**************************************************************************
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
**************************************************************************/
if (NeopetsDocument.Username)
(function()
{ // script scope
var nst = NeopetsDocument.Time(true);
var compare = new Date(nst);
compare.setMinutes(0, 0, 0);
var h = nst.getHours();
var n = "TheSnowager-LastAccess-" + NeopetsDocument.Username;
if (GM_getValue(n, "0") != compare.valueOf() && /(?:06|14|22)$/.test("0" + h))
{
GM_setValue(n, "" + compare.valueOf());
var nr = new HttpRequest();
//nr.options.headers['Referer'] = 'http://www.neopets.com/winter/snowager.phtml';
nr.open('GET', 'http://www.neopets.com/winter/snowager2.phtml', function(e)
{
// https://addons.mozilla.org/en-US/firefox/addon/10636
// Description Snowager Page
// URL ^http:\/\/www\.neopets\.com\/winter\/snowager2\.phtml
// Function referrer to specified site
// Config... http://www.neopets.com/winter/snowager.phtml
Neopets.addMessage('<span style="color:red">[The Snowager]</span>');
//GM_log(e.responseText);
var msg = e.responseXML.evaluate("//td[@class='content']//div[@class='errormess' and b] | //td[@class='content']//center//b", e.responseXML, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
Neopets.addMessage(msg.textContent);
if (/^div$/i.test(msg.tagName))
{
alert('[The Snowager]\nYou haven\'t installed properly Mason or its configuration is incorrect.');
}
});
nr.send();
}
var sd = new Date(nst);
sd.setHours(h + 8 - ( ( 2 + h ) % 8 ), 0, 30);
setTimeout(arguments.callee, sd.valueOf() - nst.valueOf());
})();
/*
</td> <td class="content">
<b>The Snowager</b>
<p>
<center><img src='http://images.neopets.com/winter/iceworm_awake.gif' width=150 height=150 border=0><p><b>You dont want to try and enter again for a while...<br>the Snowager may wake up...<br>Come back later.</b><form action='icecaves.phtml' method='post'><input type='submit' value='Back to the Ice Caves'></form></center>
<br clear="all" />
<br>
<hr noshade size="1" color="#E4E4E4">
##########################################################################
</td> <td class="content">
<b>The Snowager</b>
<p>
<p><center><img src='http://images.neopets.com/winter/iceworm_sleep.gif' width=150 height=150 border=0><p><b>The Snowager moves slightly in its sleep.. you decide to run just in case it wakes up!</b><p></center>
<center>
<form action='icecaves.phtml' method='post'>
<input type='submit' value='Back to the Ice Caves'>
</form>
</center>
<br clear="all" />
<br>
<hr noshade size="1" color="#E4E4E4">
*/
