// ==UserScript==
// @name Booty Grab on Dolphin Tanks. The Newest Way!+
// @description The Newest way to play booty grab.
// @include *
// @exclude
http://www.gaiaonline.com/aquariumViewer/FishTankViewer.html?userEnvironmentId=*&gsiUrl=www&isInEdit=false&firstTime=&location=popUp&quality=low&version=*&graphicsServer=http://s.cdn.gaiaonline.com/images/Gaia_Flash/aquarium/&isGameActive=true// @exclude
http://www.gaiaonline.com/aquariumViewer/FishTankViewer.html?userEnvironmentId=*&gsiUrl=www&isInEdit=false&firstTime=&location=popUp&quality=low&version=*&graphicsServer=http://s.cdn.gaiaonline.com/images/Gaia_Flash/aquarium/&isGameActive=false// @require
http://sizzlemctwizzle.com/updater.php?id=69585// @version 5
// ==/UserScript==
function seconds2HMS(inputval){
var hh = Math.floor(inputval / 3600);
var ss_remaining = (inputval - (hh * 3600));
var mm = Math.floor(ss_remaining / 60);
var ss = (ss_remaining - (mm * 60));
if(hh<10){
hh='0'+hh;
}
if(mm<10){
mm='0'+mm;
}
if(ss<10){
ss='0'+ss;
}
return hh+':'+mm+':'+ss;
}
function checkTank(tankId,open){
var vs=120;
if(!open){
open=false;
}
GM_xmlhttpRequest({
method: "GET",
url: 'http://www.gaiaonline.com/chat/gsi/index.php?'+'v=json&m=[[6500%2C[1]]%2C[6510%2C["'+tankId+'"%2C0%2C1]]%2C[6511%2C["'+tankId+'"%2C0]]%2C[6512%2C["'+tankId+'"%2C0]]%2C[107%2C["null"]]]&X='+(new Date().getTime().toString().substring(0, 10)),
onload: function(r){
try{
if(typeof JSON != 'undefined'){
var json=JSON.parse(r.responseText);
}
else{
var json=eval(r.responseText);
}
var gaiaT=json[0][2]['gaia_curr_time'];
try{
var glowT=json[1][2][tankId]['game_info'][1]["open_time"];
}
catch(e){}
if(glowT){
if(json[1][2][tankId]['game_info'][1]["instance_id"]!=GM_getValue('instance_id~'+tankId,0)){
var aquaN=json[1][2][tankId]['name'];
if(aquaN=='<undefined string>'||!aquaN){
aquaN=tankId;
}
GM_setValue('instance_id~'+tankId,json[1][2][tankId]['game_info'][1]["instance_id"]);
if(glowT<=gaiaT){
if(glowT+720>gaiaT){
if (confirm(aquaN+' ('+tankId+') has been glowing for '+seconds2HMS(gaiaT-glowT)+'.')===true){
GM_openInTab('');
}
else{
//alert("Okay");
}
}
else{
//alert('over');
}
}
else{
alert(aquaN+' ('+tankId+') will glow in '+seconds2HMS(glowT-gaiaT));
if(open===true){
}
else{
}
}
}
}
else{
//alert('not glowing');
}
}
catch(e){GM_log('n'+e)}
}
});
}
function checkTanks(){
var time=Number(new Date().getTime().toString().substring(0,10));
if(time>=GM_getValue('date',time-20)+20){
GM_setValue('date',time);
checkTank(4362839,false);//HellsNobody-my aquarium
checkTank(5081629,false);//sachara
checkTank(5916899,false);//Penelope Kitty
checkTank(5661737,false);//arrowMaker
checkTank(5319161,false);//jellykans
checkTank(6396299,false);//Nipster Joe - Blue Bayou - 22
checkTank(1570309,false);//Aryan
checkTank(4960941,false);//Berrie Mulaine
checkTank(3991587,false);//HellsAlice
checkTank(97853,false);//SweetKitty
checkTank(5781643,false);//Pink Spartans
checkTank(5074505,false);//Miko Tadita
checkTank(389709, false);//rainzdropz - 22
checkTank(1835301,false);//Uesugi Ling Ling
checkTank(3790013,false);//Merlaine
checkTank(577097,false);//Rhianae
checkTank(345515,false);//Aislanaire
checkTank(67193,false);//water spirit - sushi
checkTank(2223001,false);//Lord Uesugi Kenshin
checkTank(5599775,false);//Princess Uesugi Yuli
checkTank(62862921,false);//Purple Warrior Princess
checkTank(3921317,false);//Humphreypoptart
checkTank(4573755,false);//BlueWolf
checkTank(576969,false);//Sellecia
checkTank(4162525,false);//Arianica
checkTank(1594069,false);//Feevil
checkTank(5444551,false);//pureheart - land of cute fishes = humphrey thread 13012
checkTank(417729,false);//Deb_Sapphire
checkTank(5994943,false);//Felinophiles alter ego - The Cats Reservoir
checkTank(1810761,false);//sandcoffin1994 - Nautical Nocturnal
checkTank(4072873,false);//David2074
checkTank(540140,false);//Isele
checkTank(3756873,false);//The Infamous Manny-kun
checkTank(3766963,false);//Ananais
checkTank(6098665,false);//HellsConfessor
checkTank(569056,false);//Lady Arianais
checkTank(4356635,false);//sweetiecakes31635
checkTank(6186551,false);//HellsWatchman
checkTank(2364193,false);//Beachcomber - a little piece of heaven -12
checkTank(6183545,false);//Mikeguin8-Bump Me, Plz
checkTank(4681343,false);//Coco208 - Aquatic Sanctuary- pg 8
checkTank(1435347,false);//shamantra - Tranquility Place
checkTank(4487235,false);//Wing of Tranquility-- Wings --
checkTank(2558151,false);//Dances with Scissors - 22 - tank you very much
checkTank(725619,false);//Felinophile - Marine Vivarium
checkTank(3859011,false);//Wind Silver Dragon/Tap for the Love of the Fish
checkTank(598009,false);//Fred66
checkTank(1129505,false);//Elegant Walnut
checkTank(1192853,false);//Midnight Maskerade - The Kiddie Pool
checkTank(357433,false);//GillaGrrl
checkTank(6570281,false);//oo_fiona_oo - Fiona's basement
}
}
checkTanks();
setTimeout(checkTanks,1);