Mob Wars - Hit Hunt & Heal

By Hit HuntHeal Last update Jan 24, 2012 — Installed 383,741 times.

There are 270 previous versions of this script.

the source is over 100KB, syntax highlighting in the browser is too slow

// ==UserScript==
// @name           HitHuntHeal
// @namespace      http://hhh/
// @description    Hitlist hunt heal and level combined
// @include https://*hithuntheal.com/*
// @include http://*hithuntheal.com/*
// @include https://www.facebook.com/dialog*
// @include http://www.facebook.com/home.php?sk=cg*
// @include https://www.facebook.com/home.php?sk=cg*
// @include https://*mobwars*
// @include https://*fbcdn.net*
// @include https://99.198.122.90*
// @include https://*.metamoki.com*
// @include http://*.metamoki.com*
// @include https://*amazonaws.com*
// @include https://*apps.facebook.com/mobwars*
// @exclude https://*facebook.com/extern*
// @exclude http://*channel.facebook.com/*
// @exclude http://*user.js*
// @exclude http://*mofo*
// @exclude https://*mofo*
// @exclude https://*captcha*
// @exclude https://*render*
// @exclude http://*static*facebook*
// @exclude http://*forums.metamoki.com*
// @exclude https://*forums.metamoki.com*
// @exclude http://*.hithuntheal.com/chat*
// ==/UserScript==

var hhhversion = "y0096c";

// Copyright (C) 2009, 2010, 2011 Hit Hunt Heal, All rights reserved
// Unauthorized duplication prohibited under penalty of law.  No guarantees have been presented with delivery and use of this
// software.   All users use at their own risk and benefit. This is NOT FREE software.   It is copyrighted and you have no right
// to distribute, use or copy this software without written permission from the author.  
// USE OF THIS SOFTWARE IS AT YOUR OWN RISK!!  IF YOU GET BANNED OR HAVE ISSUES, IT IS YOUR PROBLEM - NOT THE AUTHORS.   THE USE OF
// THIS SOFTWARE CONFIRMS YOUR AGREEMENT TO THESE PRINCIPLES.




function hitHuntHeal(){function cd(){function l(){v&&clearTimeout(v);B=GM_getValue("lastpage","");e("returnToWhereYouCameFrom started..."+B+"^^^^^^"+C);if(""!=B&&0<B.length&&B!=window.location.href&&0>xc.indexOf(de)){h=!1;e(I+"/Redirecting to lastpage="+B);n("Returning to page we came from (bookmarked)..."+B);xxxtime=6300;if(zb||sb||ba||dd)xxxtime=15E3;0<B.indexOf("facebook.com/home.php")&&(xxxtime=4300);setTimeout(function(){window.location.href=B},xxxtime)}else""==B&&(e("returnToWhereYouCameFrom() done, reloading page"),
n("Reloading page because we're finished grabbing bonuses, contracts and enforcers."),h=!1,setTimeout(function(){window.location.href=C},2E3))}function u(){e("Here in getbonusresults(), elaps1="+W);GM_xmlhttpRequest({method:"GET",url:"https://mobwars-prod-ssl.metamoki.com/hospital/",headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},overrideMimeType:"text/plain; charset=x-user-defined",onload:function(a){da=document.createElement("div");da.innerHTML=a.responseText;
result1=da.getElementsByTagName("INPUT");for(x1=0;x1<result1.length;x1++)result1[x1].parentNode.removeChild(result1[x1]);result1=da.getElementsByClassName("commentInput");for(x1=0;x1<result1.length;x1++)result1[x1].parentNode.removeChild(result1[x1]);result1=da.getElementsByTagName("comment");for(x1=0;x1<result1.length;x1++)result1[x1].parentNode.removeChild(result1[x1]);result1=da.getElementsByClassName("a");for(x1=0;x1<result1.length;x1++)result1[x1].parentNode.removeChild(result1[x1]);$("#postspot").html("<br><br>");
$("#mwstat2").html("&nbsp;");resultArray=da.getElementsByClassName("alert");for(x1=0;x1<resultArray.length;x1++)s=resultArray[x1].innerHTML,workingvar=document.getElementById("postspot").innerHTML,$("#postspot").html(s+workingvar);a=parseInt(Ka.getTime()/1E3);a=0+parseInt(a);GM_setValue("lastboost",a);l()}})}function E(){cc.length=0;e("buildFriendList() started...");$("ul#friendsTop li").each(function(a){var c=$(this).attr("id"),c=c.substring(2,c.length);e(a+"Found an ID!"+c);cc.push(c)});setTimeout(function(){n("got my friends... #:"+
cc.length);unsafeWindow.FriendSelector.initMobFriends();setTimeout(function(){S()},5E3)},1E3)}function S(){Lb.length=0;e("buildInMobList() started...");$("ul#friendsTop li").each(function(a){var c=$(this).attr("id"),c=c.substring(2,c.length);e(a+"Found an ID!"+c);Lb.push(c)});setTimeout(function(){0==cc.length&&(n("HHH: Mooching enforcers off Mob members for EXPERIENCE...."),ia());if(0<cc.length)n("got my mob members... #:"+Lb.length),Lb.sort(),cc.sort(),$("body").html("<body></body>"),yc.length=
0,$("body").append("HHH: Scroll to the bottom of this page for a link to add all of these one by one via automated loop!!!<p/>"),jQuery.each(cc,function(a,e){var c=jQuery.inArray(e,Lb);0>c&&"addfriends"==nc&&(yc.push(e),$("body").append('<a style="color:yellow; background-color:#800000;" target="_blank";  href="https://apps.facebook.com/mobwars/mob/do.php?join_id='+e+'">'+a+"/"+Lb.length+": ID # "+e+" is not in your mob, click here to ADD them!!!</a><br/>"));0>c&&"removefriends"==nc&&(yc.push(e),
$("body").append('<a style="color:yellow; background-color:#800000;" target="_blank";  href="https://www.facebook.com/profile.php?id='+e+'">'+a+"/"+Lb.length+": ID # "+e+" REMOVE this lousy butt! He is not in your mob.!!!</a><br/>"))}),"addfriends"==nc&&$("body").append('<br/><a id="doallnow" style="color:yellow; background-color:#800000;">DO ALL OF THEM NOW!!!!!!</a><br/>'),$("#doallnow:first").bind("click",function(){$("body").html("<body></body>");H();n("Seeking Mob Members from among friends.");
e("Seeking Mob Members among friends.")})},1E3);$(".close img").click()}function H(){if(0<yc.length){var a=yc.pop();e("Trying to add USER ID :"+a);GM_xmlhttpRequest({method:"GET",url:"https://mobwars-prod-ssl.metamoki.com/mob/do.php?join_id="+a+"&ajax_callback=mw_aj_2_r&signed_request="+z,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},onload:function(c){m=document.createElement("div");var c=c.responseText,b=c.indexOf("setInnerFBML")+14,c=c.substring(b,c.length);
m.innerHTML=c;e("response="+c);$('[id*="mw_alert"]:first',m).each(function(){var c=$(this).text();e("results found from AddUser..."+c);$("body").prepend('<br/><font style="color:yellow; background-color:#800000;">ID:'+a+" Response:"+c+"</font>")});0<yc.length?setTimeout(function(){H()},2E3):$("body").prepend('<br/><font style="color:yellow; background-color:#800000;">ALL MOBSTER LINKS COMPLETE/ATTEMPTED</font>')}})}}function xa(){zd&&3<=r&&setTimeout(function(){e("Clicking GIFTING button");$(this);
unsafeWindow.MobWars.UI.show_dialog({render_url:"gifting",dialogID:"gifting",tab:"All"});setTimeout(function(){$('.btn_blueModal .mid:contains("SEND"):first').each(function(a){n("Minihelper:  Clicked SEND ENERGY!");foundgiftbutton=!0;var c=$(this).text();e(a+"Found "+c);cb(this);setTimeout(function(){unsafeWindow.FriendSelector.initMobFriends();cc.length=0;setTimeout(function(){S()},8E3)},8E3)})},3E3)},1E3)}function tb(){zd&&1<=r&&setTimeout(function(){e("Clicking GIFTING button");$(this);unsafeWindow.MobWars.UI.show_dialog({render_url:"gifting",
dialogID:"gifting",tab:"all"});setTimeout(function(){$('.btn_blueModal .mid:contains("SEND"):first').each(function(a){n("Minihelper:  Clicked SEND ENERGY!");foundgiftbutton=!0;var c=$(this).text();e(a+"Found "+c);cb(this);setTimeout(function(){"addfriends"==nc&&unsafeWindow.FriendSelector.initFriendsPlaying();"removefriends"==nc&&unsafeWindow.FriendSelector.initFriends();setTimeout(function(){E()},8E3)},8E3)})},3E3)},1E3)}function ia(){var a=!0;if(0<Lb.length){var c=Lb.pop();0<jQuery.inArray(c,Ne)&&
(a=!1,e("SKIPPING ID "+c+" - because you told me to..."),n("SKIPPING ID "+c+" - because you told me to..."),setTimeout(function(){ia()},900));ee++;var b="https://mobwars-prod-ssl.metamoki.com/city/do.php?signed_request="+z+"&action=factory_recruit&factory_id=304&mw_ref=feed_factory&user_id="+c+"&ajax_callback=mw_aj_2_r";e("NY ID "+c+"/calling="+b);a&&GM_xmlhttpRequest({method:"GET",url:b,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},overrideMimeType:"text/plain; charset=x-user-defined",
onload:function(b){m=document.createElement("div");var d=b.responseText,d=b.responseText,d=d.replace(/\\u003c/g,"<"),d=d.replace(/\\"/g,'"'),d=d.replace(/\\\//g,"/"),d=d.replace(/\\n/g,"");e("xxt2="+d);b=m.innerHTML=d;d=b.indexOf("setInnerFBML")+14;b=b.substring(d,b.length);e(" resp,mooch:"+b);$('[id*="mw_alert"]:first',m).each(function(){var e=$(this).text(),b="#800000";0<e.indexOf("now an Enf")&&(b="green");n('<font id="clickstat" style="background-color: '+b+'; color:yellow">Mob Member '+ee+" of "+
(Lb.length+ee)+"/NY ID:"+c+", Response:"+$(this).text()+"</font>");if(0<e.indexOf("an Enforce")||0<e.indexOf("inactive"))a=!1,setTimeout(function(){ia()},500)});a&&setTimeout(function(){var b="https://mobwars-prod-ssl.metamoki.com/city/do.php?signed_request="+z+"&action=factory_recruit&factory_id=303&mw_ref=feed_factory&user_id="+c+"&ajax_callback=mw_aj_2_r";e("Chicago ID "+c+"/calling="+b);a&&GM_xmlhttpRequest({method:"GET",url:b,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},
overrideMimeType:"text/plain; charset=x-user-defined",onload:function(b){m=document.createElement("div");var d=b.responseText,d=b.responseText,d=d.replace(/\\u003c/g,"<"),d=d.replace(/\\"/g,'"'),d=d.replace(/\\\//g,"/"),d=d.replace(/\\n/g,"");e("xxt2="+d);b=m.innerHTML=d;d=b.indexOf("setInnerFBML")+14;b=b.substring(d,b.length);e(" resp,mooch:"+b);$('[id*="mw_alert"]:first',m).each(function(){var e=$(this).text(),b="#800000";0<e.indexOf("now an Enf")&&(b="green");n('<font id="clickstat" style="background-color: '+
b+'; color:yellow">... Chicago ID:'+c+", Response:"+$(this).text()+"</font>");if(0<e.indexOf("an Enforce")||0<e.indexOf("inactive"))a=!1,setTimeout(function(){ia()},500)});var q="https://mobwars-prod-ssl.metamoki.com/city/do.php?signed_request="+z+"&action=factory_recruit&factory_id=304&mw_ref=feed_factory&user_id="+c+"&ajax_callback=mw_aj_2_r";e("London ID "+c+"/calling="+q);a&&setTimeout(function(){GM_xmlhttpRequest({method:"GET",url:q,headers:{"Content-Type":"application/x-www-form-urlencoded",
Cookie:document.cookie},overrideMimeType:"text/plain; charset=x-user-defined",onload:function(b){m=document.createElement("div");var d=b.responseText,d=b.responseText,d=d.replace(/\\u003c/g,"<"),d=d.replace(/\\"/g,'"'),d=d.replace(/\\\//g,"/"),d=d.replace(/\\n/g,"");e("xxt2="+d);b=m.innerHTML=d;d=b.indexOf("setInnerFBML")+14;b=b.substring(d,b.length);e(" resp,mooch:"+b);$('[id*="mw_alert"]:first',m).each(function(){var e=$(this).text(),b="#800000";0<e.indexOf("now an Enf")&&(b="green");n('<font id="clickstat" style="background-color: '+
b+'; color:yellow">... London ID:'+c+", Response:"+$(this).text()+"</font>");if(0<e.indexOf("an Enforce")||0<e.indexOf("inactive"))a=!1,setTimeout(function(){ia()},500)});var q="https://mobwars-prod-ssl.metamoki.com/city/do.php?signed_request="+z+"&action=factory_recruit&factory_id=305&mw_ref=feed_factory&user_id="+c+"&ajax_callback=mw_aj_2_r";e("Vegas ID "+c+"/calling="+q);a&&setTimeout(function(){GM_xmlhttpRequest({method:"GET",url:q,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},
overrideMimeType:"text/plain; charset=x-user-defined",onload:function(b){m=document.createElement("div");var d=b.responseText,d=b.responseText,d=d.replace(/\\u003c/g,"<"),d=d.replace(/\\"/g,'"'),d=d.replace(/\\\//g,"/"),d=d.replace(/\\n/g,"");e("xxt2="+d);b=m.innerHTML=d;d=b.indexOf("setInnerFBML")+14;b=b.substring(d,b.length);e(" resp,mooch:"+b);$('[id*="mw_alert"]:first',m).each(function(){var e=$(this).text(),b="#800000";0<e.indexOf("now an Enf")&&(b="green");n('<font id="clickstat" style="background-color: '+
b+'; color:yellow">... Vegas ID:'+c+", Response:"+$(this).text()+"</font>");if(0<e.indexOf("an Enforce")||0<e.indexOf("inactive"))a=!1,setTimeout(function(){ia()},500)});var q="https://mobwars-prod-ssl.metamoki.com/city/do.php?signed_request="+z+"&action=factory_recruit&factory_id=306&mw_ref=feed_factory&user_id="+c+"&ajax_callback=mw_aj_2_r";e("Moscow ID "+c+"/calling="+q);a&&setTimeout(function(){GM_xmlhttpRequest({method:"GET",url:q,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},
overrideMimeType:"text/plain; charset=x-user-defined",onload:function(b){m=document.createElement("div");var d=b.responseText,d=b.responseText,d=d.replace(/\\u003c/g,"<"),d=d.replace(/\\"/g,'"'),d=d.replace(/\\\//g,"/"),d=d.replace(/\\n/g,"");e("xxt2="+d);b=m.innerHTML=d;d=b.indexOf("setInnerFBML")+14;b=b.substring(d,b.length);e(" resp,mooch:"+b);$('[id*="mw_alert"]:first',m).each(function(){var e=$(this).text(),b="#800000";0<e.indexOf("now an Enf")&&(b="green");n('<font id="clickstat" style="background-color: '+
b+'; color:yellow">... Moscow ID:'+c+", Response:"+$(this).text()+"</font>");if(0<e.indexOf("an Enforce")||0<e.indexOf("inactive"))a=!1,setTimeout(function(){ia()},500)});var q="https://mobwars-prod-ssl.metamoki.com/city/do.php?signed_request="+z+"&action=factory_recruit&factory_id=307&mw_ref=feed_factory&user_id="+c+"&ajax_callback=mw_aj_2_r";a&&setTimeout(function(){GM_xmlhttpRequest({method:"GET",url:q,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},overrideMimeType:"text/plain; charset=x-user-defined",
onload:function(b){m=document.createElement("div");var d=b.responseText,d=b.responseText,d=d.replace(/\\u003c/g,"<"),d=d.replace(/\\"/g,'"'),d=d.replace(/\\\//g,"/"),d=d.replace(/\\n/g,"");e("xxt2="+d);b=m.innerHTML=d;d=b.indexOf("setInnerFBML")+14;b=b.substring(d,b.length);e(" resp,mooch:"+b);$('[id*="mw_alert"]:first',m).each(function(){var e=$(this).text(),b="#800000";0<e.indexOf("now an Enf")&&(b="green");n('<font id="clickstat" style="background-color: '+b+'; color:yellow">... Dubai ID:'+c+", Response:"+
$(this).text()+"</font>");if(0<e.indexOf("an Enforce")||0<e.indexOf("inactive"))a=!1,setTimeout(function(){ia()},500)});var q="https://mobwars-prod-ssl.metamoki.com/city/do.php?signed_request="+z+"&action=factory_recruit&factory_id=310&mw_ref=feed_factory&user_id="+c+"&ajax_callback=mw_aj_2_r";e("Tokyo ID "+c+"/calling="+q);a&&setTimeout(function(){GM_xmlhttpRequest({method:"GET",url:q,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},overrideMimeType:"text/plain; charset=x-user-defined",
onload:function(b){m=document.createElement("div");var d=b.responseText,d=b.responseText,d=d.replace(/\\u003c/g,"<"),d=d.replace(/\\"/g,'"'),d=d.replace(/\\\//g,"/"),d=d.replace(/\\n/g,"");e("xxt2="+d);b=m.innerHTML=d;d=b.indexOf("setInnerFBML")+14;b=b.substring(d,b.length);e(" resp,mooch:"+b);$('[id*="mw_alert"]:first',m).each(function(){var e=$(this).text(),b="#800000";0<e.indexOf("now an Enf")&&(b="green");n('<font id="clickstat" style="background-color: '+b+'; color:yellow">... Tokyo ID:'+c+", Response:"+
$(this).text()+"</font>");if(0<e.indexOf("an Enforce")||0<e.indexOf("inactive"))a=!1});setTimeout(function(){ia()},500)}})},500)}})},500)}})},500)}})},500)}})},500)}})},500)}})}else n("HHH: Finished all Mobsters...")}function M(){var a=Math.floor(500*Math.random()*parseInt(ha)+450*Math.random()+Qa);postvalue="http://hithuntheal.com/passcheck5.php?myuserid="+D+"&hhhpasswd="+dc+"&signed_request="+z+"&lastcyclestart="+oc+"&epochseconds="+ca+"&numactions="+K+"&realname="+Ad+"&myparms="+escape(la)+"&hhhv="+
hhhversion+"&rand="+a;e("here in checkPassword:"+postvalue+"/reload="+h);Math.random();parseInt(ha);Math.random();3<D.length&&"Not Detected"!=D?setTimeout(function(){GM_xmlhttpRequest({method:"GET",url:postvalue,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},overrideMimeType:"text/plain; charset=x-user-defined",onload:function(a){e("passresult1");Bd(a)}})},300):r=1}function Bd(a){e("processPassresult here..."+h);if(ub())e("processPassResult- instance tripped"+
I+"/"+ta),n(" HHH: processPassResult(duplicate instance).  Stopping for safety!!!<br>");else{var b=(new DOMParser).parseFromString(a.responseText,"application/xml"),b=document.createElement("div");b.innerHTML=a.responseText;ua="";xserverepoch=b.getElementsByTagName("epochseconds");if(0<xserverepoch.length)Oe=xserverepoch[0].textContent;$("#hhhurl",b).each(function(){Xa=$(this).text();e("got HHHURL!!!='"+Xa+"'");GM_setValue("hhhurl",Xa)});oldhhhstatusvalue=GM_getValue("hhhstatus",-1);$("#hhhstatus",
b).each(function(){g=$(this).text();GM_setValue("hhhstatus",g);Fa=g;e("got hhhstatus/hhhstatusvalue="+r+"/hhhstatus="+Fa);0>oldhhhstatusvalue&&0<parseInt(g)&&(e("got new status, was expired before!"),h=!1,Mb=0,GM_setValue("lastrequest",0),setTimeout(function(){window.location.href=C},2E3))});$("#cfgsubmit",b).each(function(){g=$(this).value()});serveractions=0;xserveractions=b.getElementsByTagName("numactions");if(0<xserveractions.length)serveractions=xserveractions[0].textContent;xrewardx=b.getElementsByTagName("rewardx");
if(0<xrewardx.length)rewardx=xrewardx[0].textContent;xsetaction=b.getElementsByTagName("setaction");if(0<xsetaction.length)setaction=xsetaction[0].textContent;$("#hhhpwresult",b).each(function(){0<this.length&&(validstatus=$(this).text(),e("validstatus="+validstatus))});Oe>oc&&(K=0+parseInt(serveractions),GM_setValue("numactions",K),oc=0+parseInt(ca),GM_setValue("cyclestart",oc));0>r&&0>=C.indexOf("hithuntheal")&&!1==Pe&&""!=D&&""!=r&&(Bf(),Ra(-1))}}function Bf(){e("renewSub-x, hhhsv="+r+"/hhhs="+
Fa);p=0;GM_setValue("hittohealratio",p);logmsg='<span id="rigstat" style="font-size: x-large; background-color:#800000; color:yellow; ">'+logmsg+"</span>";Pe=!0;$("body").prepend(logmsg);n(logmsg);0==Xa.indexOf("expired.php")&&setTimeout(function(){window.location.href="https://hithuntheal.com"},3E3);alert("HHH: Your are either a new user (never configured) or your subscription appears to have , please go to configure page to confirm!!!\r\nIf you are new, you will receive a message to ALLOW POPUPS from this site.  Please allow popups as HHH opens new tabs as a regular part of it's function.");
fe()}function b(a,e){var a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"),b=RegExp("[\\?&]"+a+"=([^&#]*)").exec(e);return null==b?"":b[1]}function cb(a){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,1,1,1,1,!1,!1,!1,!1,0,null);a.dispatchEvent(e);K=parseInt(GM_getValue("numactions",0))+1;Ab=parseInt(GM_getValue("levelactions",0)+1);GM_setValue("numactions",K);GM_setValue("levelactions",Ab)}function La(){var a=Math.floor(500*Math.random()*parseInt(ha)+450*Math.random()+
Qa);if(!A&&!G&&!ya&&!Ba)e("We should not be healing.  We are not hunting, in hospital, chaining etc...."),h=!1;else if(a=0<p?Math.floor(500*Math.random()*parseInt(ha)+450*Math.random()+Qa):2*Math.floor(500*Math.random()*parseInt(ha)+450*Math.random())+Qa,Qa=100,v&&clearTimeout(v),5<jb&&(e("recd 5 null responses, stopping.."),h=!1,GM_setValue("stopotherheals",!0),za(),resp1="We have detected the server responding back over and over with no response.  If we keep up this behavior it might be detected as a bot.  So we're stopping here for you to look at it  manually!",
j(),alert(resp1)),4==K%zc&&0<r&&!N)Nb(1);else if(4==K%10&&N&&(A&&5>p||G))Cd(2);else if(h){if(oa>L&&h||h&&(2==p||3==p||5==p))e("# cycles exceeded or HHR changed, reloading"+oa+"/"+L+"/"+p),GM_setValue("stopotherheals",!0),setTimeout(function(){h=!1;window.location.href=Ga+va},a);if(t>=Bb&&0<p&&4>p&&0<oa&&!N||t>=O&&4==p&!N&&(!A||0==Sa&&A)||t>=Ac&&4==p&&N){var b=0;0<Sa&&A&&"yes"==Ob?(b=parseInt(150+1E3*Sa/8),delayx=parseInt(b/1E3),5<delayx&&(delayx=5,b=5E3),1<delayx&&"yes"==Ob&&n("HHH: Delaying "+delayx+
" seconds because target is weak.<br/>")):b=50;N&&n("Attempting to suicide!!!");(0<ha||0<Sa||1E3<Qa)&&!N?setTimeout(function(){ed()},a+b):ed()}else h&&(0==ha?Ma(1):(e("Calling healMe()"),setTimeout(function(){Ma(1)},a)))}}function Ma(a){randomnumberx2=GM_getValue("randomnumberx",0);var b=parseInt(Math.floor(500*Math.random()*parseInt(ha)+450*Math.random()+Qa));1==a?GM_setValue("randomnumberx",b):b=0;var d=ub();if(d)e("healMe - instance tripped"+I+"/"+ta),n(" HHH: Detected HHH activity (duplicate instances).  Stopping for safety!!!<br>"),
b=0,GM_setValue("randomnumberx",b);else if(O=A||G?0==p?parseInt(U*Cb/100)+1:parseInt(U*Y/100)+1:parseInt(U*Ya/100)+1,k(I+"/"+oa+"/healMe() - cur_health="+t+"/secondheal="+Bb+"/minhealth="+O+"/hhhsv="+r),v&&clearTimeout(v),A&&N&&n("HHH: Trying to suicide.. HEAL issued.."),A&&(2>oa&&(2>p||4==p)||"undefined"==t||parseInt(t)>=parseInt(Bb)&&1==p&&1==a||parseInt(t)>=parseInt(O)&&1==a||21==a)&&h)if(GM_setValue("randomnumberx",0),randomnumberx2=b=0,oa++,d=ub())e("healMe - instance tripped"+I+"/"+ta),n(" HHH: Detected HHH activity (duplicate instances).  Stopping for safety!!!<br>"),
b=0,GM_setValue("randomnumberx",b);else{if((parseInt(t)>=parseInt(O)||"undefined"==t)&&h)ea++,GM_setValue("canonlyheal",ea);k("Calling checkHealth! returnto="+a+"/hhr="+p);Ra(5)}else if((!N||N&&parseInt(t)<parseInt(O))&&h&&0<=r||21==a){if(A||G)R=setTimeout(function(){b=0;(""==la||""==D)&&Ra(-1);GM_setValue("randomnumberx",b);h=!1;window.location.href=Ga+va},60500);P=ge;parmcombinedy="action=heal&alert_container=mw_aj_1_r&ajax_callback=mw_aj_2_r&signed_request="+z;e(I+"/Calling heal#"+oa+"..."+a+"/"+
ge+"/parmcombinedy="+parmcombinedy);GM_xmlhttpRequest({method:"POST",url:P+"?signed_request="+z,data:parmcombinedy,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},onerror:function(d){e("HHH: Post request for HEAL failed with an error! s="+d.status+"/st="+d.statusText+"/sc="+d.statusCode+"/rs="+d.readyState+"/rh="+d.responseHeaders+"/rt="+d.responseText+"/fin="+d.finalUrl);n("HHH: Post request for HEAL failed with an error! (Network error)");randomnumberx2=b=0;R&&
clearTimeout(R);za();e("healMe - ONERROR tripped"+I+"/"+ta);n(" HHH: Heal request failed (no response). Reloading<br>");(a=parseInt(t)>=parseInt(O))&&Dd(Ta);(a=parseInt(t)<parseInt(O))&&setTimeout(function(){Ma(-3)},100);1==a&&(randomnumberx2=GM_getValue("randomnumberx",b),randomnumberx2==b?(GM_setValue("randomnumberx",0),randomnumberx2=b=0,GM_setValue("randomnumberx2",0)):(e("1We detected a duplicate process, "+b+"!="+randomnumberx2),GM_setValue("randomnumberx",0),randomnumberx2=b=0,GM_setValue("randomnumberx2",
0),h=!1,setTimeout(function(){window.location.href=C},1E3)));oldhealth=t;d=Math.floor(50*Math.random()*parseInt(ha)+450*Math.random());Ca=!1;e("heal finished, returnto="+a);-1==a?e("heal and stop"):1==a&&h?h&&0==p?setTimeout(function(){La(m)},d):h&&La(m):9==a&&h?oa>L&&h||h&&5!=p?(h=!1,GM_log("2# cycles exceeded or HHR changed - stopping and reloading"),GM_setValue("stopotherheals",!0),setTimeout(function(){window.location.href=Ga+va},110)):setTimeout(function(){Ra(9)},280):-11==a?(e("return to hitListHunt.."),
h=!0,Ua()):-13==a?(h=!0,e("healed, going to attackbounty.."),c(P,Qe,Ed)):-16==a?(h=!0,e("healed, going back to DC Boss.."),Fd()):21==a&&h?(e("Heal completed..."),Bc(21)):1<a&&4>a&&h&&X(5)},onload:function(d){rt=d.responseText;for(k("rt="+rt);0<rt.indexOf("<img");){var q=rt.indexOf("<img"),f=rt.indexOf(">",q+1)+1;k("Removing img: Xpos1="+q+"/pos2="+f);rt=rt.substr(0,q)+rt.substr(f)}for(;0<rt.indexOf("<IMG");)q=rt.indexOf("<IMG"),f=rt.indexOf(">",q+1)+1,k("Removing img: pos1="+q+"/pos2="+f),rt=rt.substr(0,
q)+rt.substr(f);k("rt(2)="+rt);m=document.createElement("div");m.innerHTML=rt;rt=d.responseText;y(m);R&&clearTimeout(R);ub()&&(e("healMe - duplicate instance tripped"+I+"/"+ta),n(" HHH: Heal duplicate instance.<br>"),h=!1);30>d.responseText.length&&-1!=a&&5>jb&&(jb++,e("Got null response.  counting it!"+jb));1==a&&(randomnumberx2=GM_getValue("randomnumberx",b),randomnumberx2==b?(GM_setValue("randomnumberx",0),randomnumberx2=b=0,GM_setValue("randomnumberx2",0)):(e("1We detected a duplicate process, "+
b+"!="+randomnumberx2),GM_setValue("randomnumberx",0),randomnumberx2=b=0,GM_setValue("randomnumberx2",0),h=!1,setTimeout(function(){window.location.href=C},1E3)));oldhealth=t;d=Math.floor(50*Math.random()*parseInt(ha)+450*Math.random());Ca=!1;-1==a?e("heal and stop/2"):oldhealth==t&&t<O&&2E3>Qa&&(A||G)&&!he?(e(oldhealth+"/"+t+"/"+O+"/"+jb+" nullresponses/didnt heal, why?? "+m.innerHTML),setTimeout(function(){e("starting heal again - after checking parms.");Ma(a)},1E3)):1==a&&h?h&&0==p?setTimeout(function(){La(m)},
d):h&&La(m):9==a&&h?oa>L&&h||h&&5!=p?(h=!1,GM_log("2# cycles exceeded or HHR changed - stopping and reloading"),GM_setValue("stopotherheals",!0),setTimeout(function(){window.location.href=Ga+va},110)):setTimeout(function(){Ra(9)},280):-11==a?(e("return to hitListHunt.."),h=!0,setTimeout(function(){Ua()},110)):-13==a?(h=!0,e("healed, going to attackbounty.."),c(P,Qe,Ed)):-16==a?(h=!0,e("healed, going back to DC Boss.."),Fd()):21==a&&h?(e("Heal completed..."),Bc(21)):22==a&&h?(e("Heal completed..."),
Dd(Ta)):1<a&&4>a&&h&&X(5)}})}else N&&Db(5)}function Gd(){kb();$(".cur_health").each(function(){t=$(this).text()});$(".cur_health_max").each(function(){U=$(this).text()});db=""+GM_getValue("healcost",0);5==p?X(1):6==p&&X(2)}function fd(){pa=new Date;nowtime=pa.getTime();Cc=parseInt(nowtime);$("#hhhresult").prepend((""+pa).substr(16,8)+"."+(""+nowtime).substr(10,3)+" <span id='replacethis'>Check health - request sent.</span><br />");e("checkFast: checkurl="+Re+"/checkparms="+Se);var a=$.ajax({type:"POST",
url:Re,data:Se,dataType:"text xml",headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},success:function(a){m.innerHTML=a;k("got response in checkFast..."+a);R&&clearTimeout(R);$(".cur_health",m).each(function(){t=$(this).text();k("Setting cur_health on page..."+t);$(".cur_health_update").text(t+"/"+U)});a=new Date;a=a.getTime();a=new Date;a=a.getTime();for(Ha=parseInt(parseInt(a)-Cc)/1E3;5>(""+Ha).length;)Ha+="0";var a=GM_getValue("cycleswithoutheal",0),b="Health OK&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
parseInt(t)<parseInt(U*Cb/100)&&(b="Need to Heal&nbsp;");parseInt(t)==parseInt(U)?(b="Fully Healed&nbsp;",a++):Sa=0;GM_setValue("cycleswithoutheal",a);k(t+"/"+U+"/cycleswithoutheal="+a+"/hospcycles="+L);if(a>3*L-5)tmpvar=3*L,e(tmpvar+" cycles detected with no incoming hits!  Stopping before we possibly trigger bot detection!! "+ea),v&&clearTimeout(v),GM_setValue("stopotherheals",!0),a=0,GM_setValue("cycleswithoutheal",a),alertval="We have stopped the script because we have detected "+tmpvar+" cycles with no weakness to heal! This means your level partner is not hitting you *and* you are healed...  We are stopping you now so you can correct the situation!  If you want to delay this warning to a larger count increase your # of cycles per page load and this detection threshold will increase with that setting. (This message is triggered at 3 full healing cycles without your health going below FULLY healed.)",
j(),alert(alertval),h=!1,window.location.href=C;if(ga>=gd&&h&&6!=p&&0!=p&&(4==oa%10||4==a%10)&&A)j(),alert("HHH:  Stopped because you have reached or exceeded the level at which you told me to stop on the configure page!"),h=!1,GM_setValue("numcycles",0),GM_setValue("cycleswithoutheal",0),window.location.href=C;$("#replacethis").html(b+"&nbsp;&nbsp;&nbsp; "+Ha+" secs");parseInt(t)>=parseInt(U*Cb/100)&&h?(e("Still healed, check again. "+t+"/"+U),a++,e("cycleswithoutheal="+a+"/hospcycles="+L+"reload="+
h+"/hittoheal="+p),0==a%L&&h&&"yes"==Dc&&A&&(e("trying reverse hit because canonlyheal="+ea),n("HHH:Trying reverse hit because no incoming hits for some time..."),ea=0,GM_setValue("canonlyheal",ea),Db(3)),fd()):(e("calling healFast"+t+"/"+U),X(2))}});R=setTimeout(function(){a.abort();e("timeout triggered -recalling checkFast");X(2)},4E3)}function X(a){pa=new Date;nowtime=pa.getTime();Cc=parseInt(nowtime);$("#hhhresult").prepend((""+pa).substr(16,8)+"."+(""+nowtime).substr(10,3)+" <span id='replacethis'>Heal request sent.</span><br />");
P=ge+"?signed_request="+z;ie="action=heal&alert_container=mw_aj_1_r&ajax_callback=mw_aj_1_r";e("healfast: urlz1="+P+"/healparms="+ie);$.ajax({type:"POST",url:P,data:ie,dataType:"text xml",headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},error:function(){e("HHH: HEAL failed with an network error");n("HHH: HEAL failed with an network error");GM_setValue("randomnumberx",0);randomnumberx2=randomnumberx=0;R&&clearTimeout(R);Ec&&clearTimeout(Ec);za();h=!1;setTimeout(function(){window.location.href=
Hd},1E3)},success:function(b){m.innerHTML=b;m.innerHTML=m.innerHTML.replace(/var=/g,"id=");m.innerHTML=m.innerHTML.replace(/fbml_render_/g,"");m.innerHTML=m.innerHTML.replace(/app8743457343_/g,"");R&&clearTimeout(R);Ec&&clearTimeout(Ec);healthval="";K++;0==K%200&&(GM_setValue("numactions",K),$("#hhhresult").html("<br />"));y(m);var b='<span id="mwstat2" style="font-size: medium;  background-color: black; color:yellow"><a id="actionct">[24hrAct:'+K+"]</a>",b=b+("[Win:"+Eb+"]&nbsp[Loss:"+Pb+"]"),b=
b+("[Bank:"+ec+"]"),c=Id(db);$("#spanwins:first").html(b+("[HealCost:"+c+"]&nbsp;&nbsp; &nbsp;")+"</span>");$("#spanwins").each(function(a){0<a&&$(this).remove()});str3=""+m.innerHTML;pa=new Date;nowtime=pa.getTime();for(Ha=parseInt(parseInt(nowtime)-Cc)/1E3;5>(""+Ha).length;)Ha+="0";b=!1;0<str3.indexOf("doctor helped")&&(oa++,b=!0,c=str3.indexOf("doctor helped")+10,c=str3.indexOf("$",c),c=str3.substring(c,str3.length-1),c=""+(0+parseInt(c.replace(/[,\t\n \;\&\$]/g,""))),db=""+(parseInt(db)+parseInt(c)),
eb=0,GM_setValue("cycleswithoutheal",0),$("#replacethis").html('<font style="color:green; font-size: LARGE;">Healed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;'+Ha+" secs"));c=!1;0<str3.indexOf("a few seconds")&&(b=c=!0,$("#replacethis").html('<font style="color:yellow; font-size: LARGE;">Recd WAIT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>&nbsp; &nbsp;&nbsp;&nbsp;'+
Ha+" secs"));0<str3.indexOf("already at full")&&(oa++,b=!0,$("#replacethis").html('<font style="color:yellow; font-size: LARGE;">ALREADY FULL HEALTH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>&nbsp; &nbsp;&nbsp;&nbsp;'+Ha+" secs"));if(!b){b=$("#content",m).html();e("response="+m.innerHTML);n("HHH: Invalid response to heal request from mob wars server, trying again!</br>"+b);e("HHH: Invalid response received to heal request."+c+"/"+a+"/"+h);var d=a;a=-1;0<m.innerHTML.indexOf("facebook.com/login.php")?
setTimeout(function(){e("reloading now..."+C);window.location.href=C},3300):(vb(m),setTimeout(function(){X(d)},3300))}k(c+":healFast return: aoption="+a+"/str3="+str3);!c&&1==a&&h?setTimeout(function(){pc(0)},1):c&&1==a&&h?setTimeout(function(){X(1)},300):c&&2==a&&h?setTimeout(function(){X(2)},300):!c&&2==a&&h&&fd()}});R=setTimeout(function(){e("timeout triggered -call HEAL again.... healFast");$("#replacethis").html('<font style="color:red">TIMEOUT, TRY AGAIN&nbsp;&nbsp;&nbsp;&nbsp;</font>');var b=
a;a=-1;Ra(-1);setTimeout(function(){X(b)},300)},5E3)}function vb(a){oldsignedrequest=z;$("input[name='signed_request']",a).each(function(){z=$(this).attr("value");""!=z&&oldsignedrequest!=z&&!1!=z&&(e(C+":Found SIGNED REQUEST: "+z),GM_setValue("signedrequest",z))});$("form[action*='signed_request']:last",a).each(function(){var a=$(this).attr("action"),b=a.indexOf("signed_request=");0<b&&(b+=15,z=a.substr(b),e(b+"/Found:"+z));""!=z&&oldsignedrequest!=z&&!1!=z&&(e(C+":Found SIGNED REQUEST:"+z),GM_setValue("signedrequest",
z))});z!=oldsignedrequest&&""!=z&&e("HHH: Rec'd new authentication:"+z)}function pc(a){pa=new Date;nowtime=pa.getTime();Cc=parseInt(nowtime);var b=ja+3;v=setTimeout(function(){h=!1;za();e("timeout triggered - reloading page.");n("HHH: Hit request TIMEOUT ("+b+" seconds, no response) - Reloading page to try again.");setTimeout(function(){window.location.href=Hd},3E3)},1E3*ja+3E3);7!=a?$("#hhhresult").prepend((""+pa).substr(16,8)+"."+(""+nowtime).substr(10,3)+" <span id='replacethis'>Hit request sent.</span><br />"):
$("#hhhresult").prepend((""+pa).substr(16,8)+"."+(""+nowtime).substr(10,3)+" <span id='replacethis2'>Hit request sent.</span><br />");urlz3="https://mobwars-prod-ssl.metamoki.com/fight/do.php?signed_request="+z;e("hitFast: "+urlz3+"/////"+Cf);hitactionparms="action=attack&force="+ja+"&alert_container=alert_messages_"+Na+"&target_id="+Na;parmcombinedx=hitactionparms+"&ajax_callback=mw_aj_2_r";$.ajax({type:"POST",url:urlz3,data:parmcombinedx,dataType:"text xml",headers:{"Content-Type":"application/x-www-form-urlencoded",
Cookie:document.cookie},error:function(){e("HHH: HIT failed with an ERROR!, trying again");n("HHH: HIT failed with an ERROR!, trying again");GM_setValue("randomnumberx",0);randomnumberx2=randomnumberx=0;v&&clearTimeout(v);Jd&&clearTimeout(Jd);za();e("hit - ONERROR tripped"+I+"/"+ta);n(" HHH: hit request failed (no response). Reloading<br>");R&&clearTimeout(R);Ec&&clearTimeout(Ec);za();h=!1;setTimeout(function(){window.location.href=C},1E3)},success:function(b){m=document.createElement("div");var c;
c=b.replace(/\\&quot;/g,"");c=c.replace(/\\u003c/g,"<");c=c.replace(/\\"/g,'"');c=c.replace(/\\/g,"");c=c.replace(/\\\//g,"/");c=c.replace(/\\n/g,"");c=c.replace(/%5C%22/g,"");m.innerHTML=c;e(I+": got response from hit."+m.innerHTML);y(m);winval=healthval="";attdealt=$(".att_dam:contains('dealt') .value",m).text();attrecd=$(".att_dam:contains('received') .value",m).text();e("attdealt="+attdealt+"/attrecd="+attrecd);if((0<b.indexOf("stamina to attack")||0<b.indexOf("when your stamina regenerates")||
0<b.indexOf("do not have enough Stamina"))&&Da<ja)document.title="You are out of stamina!!!",winval+="You are out of stamina!!!",document.backgroundColor="blue",fb=!0,e("out of stamina msg detected"),h=!1,"no"!=wb&&(GM_setValue("returnto",Ga+va),GM_setValue("lastpage",Ga+va)),e("Going to GODFATHER PAGE"),window.location.href="https://mobwars-prod-ssl.metamoki.com/godfather/";0<$(".banner_won",m).length&&(winval+='<font style="color:green; font-size: LARGE;">WIN&nbsp;'+Fc+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>",
Eb++);idied=b.indexOf("You have been killed");idied1=b.indexOf("much damage and died");idied2=b.indexOf("were assassinated");idied4=b.indexOf("You Have Been Killed");c=!1;0<b.indexOf("user is currently too weak")&&(winval+='<font style="color:yellow; font-size: LARGE;">TARGET WEAK&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>',c=!0);0<b.indexOf("You are too weak")&&(winval+='<font style="color:yellow; font-size: LARGE;">YOU ARE WEAK</font>');0<b.indexOf("unable to attack")&&(winval+='<font style="color:yellow; font-size: LARGE;">UNABLE TO ATTACK</font>');
if(0<b.indexOf("WERE DEFEATED")||0<$(".banner_lose",m).length)winval+='<font style="color:red; font-size: LARGE;">LOSS '+Fc+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>";0<b.indexOf("Missing target")&&(winval+='<font style="color:yellow; font-size: LARGE;">MISSING TARGET ID!  DEFINE YOUR LEVEL PARTNER!</font>',h=!1);0<b.indexOf("already in a fight")&&(winval+='<font style="color:yellow; font-size: LARGE;">BUSY</font>');if(0<idied||0<idied1||0<idied2||0<idied4)e("I died"),winval+='<font style="color:red; font-size: LARGE;">DIED!!! -- DANGER DANGER YOU DIED!!!</font>',
0<Kd&&alert("YOU DIED!  STOPPING BECAUSE YOU ASKED ME TO!");pa=new Date;nowtime=pa.getTime();for(Ha=parseInt(parseInt(nowtime)-Cc)/1E3;5>(""+Ha).length;)Ha+="0";""==winval&&(healthval=b);4>winval.length&&($("#content",m).html(),winval+='<font style="color:red">Caution!  Unknown/bad response received from server. This is a game related issue!   We don\'t know how to handle it so we are delaying a bit, then healing!!!</font><br/>Result from server:'+b,h=!1,setTimeout(function(){window.top.location.href=
window.top.location.href},2E3));$("#replacethis").html("Hit - "+winval+"    "+Ha+' secs<font style="color:green"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+Te+"<b/></font>");$("#replacethis2").html("Hit - "+winval+"    "+Ha+' secs<font style="color:green"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+Te+"<b/></font>");var b='<span id="mwstat2" style="font-size: medium;  background-color: black; color:yellow"><a id="actionct">[24hrAct:'+K+"]</a>",b=b+("[Win:"+Eb+"]&nbsp[Loss:"+Pb+"]"),b=b+("[Bank:"+ec+"]"),d=Id(db);
$("#spanwins").html(b+("[HealCost:"+d+"]&nbsp;&nbsp; &nbsp;")+"</span>");e("XX4");ma++;GM_setValue("numcycles",ma);e("done with hit, hhr="+p+"/passvar1="+a+"/targetweak="+c+"/winval.length="+winval.length);3==p&&7==a?t<U?X(5):"true"==c?setTimeout(function(){pc(7)},500):setTimeout(function(){pc(7)},10):3!=p&&6!=a&&parseInt(t)>parseInt(O)&&0>m.innerHTML.indexOf("You are too weak to fight")&&h?c?setTimeout(function(){pc(0)},500):pc(0):h&&3!=p&&6!=a&&(e("going to heal="+ma+"/"+L),4>winval.length?setTimeout(function(){X(1)},
3100):49==ma%50?setTimeout(function(){X(1)},100):setTimeout(function(){X(1)},10));v&&clearTimeout(v);Jd&&clearTimeout(Jd)}})}function Gc(a){2==ma%25&&(A||G)&&fc();4==K%zc&&0<r&&!N?Nb(1):4==K%10&&N&&(A&&5>p||G)&&Cd(3);4==ma%20&&Ra(0);Db(a)}function hd(a){depamt2=parseInt(a);depformatted=Df(depamt2);n("HHH: Attempting deposit of ..."+depformatted+"<br>");e("xxxx Attempting deposit of ..."+depformatted+"/reload="+h);ma=0;GM_setValue("numcycles",0);P="https://mobwars-prod-ssl.metamoki.com/bank/do.php";
la=GM_getValue("myparms","");parmcombined="signed_request="+z+"&action=deposit&deposit_amount="+depamt2+"&ajax_callback=mw_aj_2_r";GM_xmlhttpRequest({method:"POST",url:P,data:parmcombined,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},onload:function(a){m=document.createElement("div");m.innerHTML=a.responseText;e(I+" resp:deposit!, reloading:"+a.responseText+"/reload="+h);ua="";var b=a.responseText,b=a.responseText,b=b.replace(/\\u003c/g,"<"),b=b.replace(/\\"/g,
'"'),b=b.replace(/\\\//g,"/"),b=b.replace(/\\n/g,"");m.innerHTML=b;e("we have deposit! response is above!"+m.innerHTML);y(m);za();A&&setTimeout(function(){window.location.href=window.location.href},1E3);G&&setTimeout(function(){h=!0;GM_setValue("stopotherheals",!1);Ua()},2E3)}})}function ed(){if(gb>L&&h&&!N&&(A||G))e("hit count exceeds hospital cycles, time to reload page"+Ga+"*"+va),h=!1,window.location.href=Ga+va;2==gb%25&&0<r&&(A||G)&&fc();shouldistop=GM_getValue("stopotherheals");h&&!N&&Db(1);
h&&N&&(Db(5),h=!1)}function Db(a){var b=Math.floor(500*Math.random()*parseInt(ha)+450*Math.random()+Qa);gb++;e("here in hitme! hit:"+gb);N&&A&&(tempforce=ja,ja=10,n(" HHH: You have been listed and HAVE NOT died...  Need to suicide."));N&&A&&(ja=tempforce);Hc=t;Ca=!0;GM_setValue("justhit",Ca);v&&clearTimeout(v);A&&(v=setTimeout(function(){h=!1;b=0;GM_setValue("randomnumberx",b);e("timeout triggered-immediate reload. HITME");window.location.href="https://apps.facebook.com/mobwars/hospital/index.php"},
7E3));N&&n("HHH: Trying to suicide.. Hit issued..");ub()?(e("hitting- instance tripped"+I+"/"+ta),n(" HHH: Detected duplicate instance hitting. Stopping for safety!!!<br>"),b=0,GM_setValue("randomnumberx",b)):(urlz3="https://mobwars-prod-ssl.metamoki.com/fight/do.php?signed_request="+z,hitactionparms=0==p?"action=attack&force=1&target_id="+Na:"action=attack&force="+ja+"&target_id="+Na,parmcombinedx=hitactionparms+"&alert_container=mw_aj_1_r&ajax_callback=mw_aj_2_r&signed_request="+z,h&&0<=r&&GM_xmlhttpRequest({method:"POST",
url:urlz3,data:parmcombinedx,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},onerror:function(c){e("HHH: Post request for HIT failed with an error! s="+c.status+"/st="+c.statusText+"/sc="+c.statusCode+"/rs="+c.readyState+"/rh="+c.responseHeaders+"/rt="+c.responseText+"/fin="+c.finalUrl);n("HHH: Post request for HIT failed with an error! (Network error)");GM_setValue("randomnumberx",0);randomnumberx2=b=0;v&&clearTimeout(v);za();e("hit - ONERROR tripped"+I+"/"+ta);
n(" HHH: hit request failed (no response). Reloading<br>");1==a&&h?h&&0<ha?setTimeout(function(){La(m)},Ic):h&&0==ha&&La(m):1>a&&h?setTimeout(function(){X(5)},Ic):9==a&&h?gb>L&&h?(h=!1,e("3stopping because # of cycles exceeded"),GM_setValue("stopotherheals",!0),setTimeout(function(){window.location.href=Ga+va},110)):Gc(9):2==a?chainLoop():3==a&&e("hitMe(3) called, not returning, dead end on purpose...");5==a&&(e(I+"/suicide- returning to cycleCheck..."+Ic),h=!0,setTimeout(function(){La(m)},Ic))},
onload:function(b){Ca=!0;GM_setValue("justhit",Ca);m=document.createElement("div");m.innerHTML=b.responseText;y(m);b=Math.floor(500*Math.random()*parseInt(ha)+450*Math.random());ua="";100>m.innerHTML.length||0<m.innerHTML.indexOf("login.php")?jb++:jb=0;5<=jb&&(GM_setValue("myparms",""),la="",jb=0,GM_setValue("lastpage",window.location.href),e("I've received 5 null responses in a row!!!, going to get new authentiction!"),n("HHH: I've received 5 null responses in a row!!!, going to get new authentiction!"),
setTimeout(function(){window.location.href="https://apps.facebook.com/mobwars/"},2E3));v&&clearTimeout(v);ub()&&(e("hit - duplicate instance tripped"+I+"/"+ta),n(" HHH: hit duplicate instance.<br>"),h=!1);1==a&&h?h&&0<ha?setTimeout(function(){La(m)},b):h&&0==ha&&La(m):1>a&&h?setTimeout(function(){X(5)},b):9==a&&h?gb>L&&h?(h=!1,e("3stopping because # of cycles exceeded"),GM_setValue("stopotherheals",!0),setTimeout(function(){window.location.href=Ga+va},110)):Gc(9):2==a?chainLoop():3==a&&e("hitMe(3) called, not returning, dead end on purpose...");
5==a&&(e(I+"/suicide- returning to cycleCheck..."+b),h=!0,setTimeout(function(){La(m)},b))}}))}function fc(){ub()?(e("useEnergy - duplicate instance tripped"+I+"/"+ta),n(" HHH: useEnergy duplicate instance.<br>"),h=!1):(1==fa&&(ka=1),10==fa&&(ka=30),19==fa&&(ka=40),21==fa&&(ka=45),22==fa&&(ka=45),330==fa&&(ka=10),301==fa&&(ka=15),334==fa&&(ka=30),500==fa&&(ka=20),501==fa&&(ka=30),502==fa&&(ka=40),503==fa&&(ka=60),504==fa&&(ka=50),505==fa&&(ka=50),509==fa&&(ka=116),""!=ka&&0<parseInt(ka)?Jc():530==
parseInt(fa)&&(urlz="https://mobwars-prod-ssl.metamoki.com/jobs/?show_loc=los_angeles&signed_request="+z,e("calling url: "+urlz),GM_xmlhttpRequest({method:"GET",url:urlz,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},overrideMimeType:"text/plain; charset=x-user-defined",onload:function(a){rt=a.responseText;for(k("rt="+rt);0<rt.indexOf("<img");){var a=rt.indexOf("<img"),b=rt.indexOf(">",a+1)+1;k("Removing img: Xpos1="+a+"/pos2="+b);rt=rt.substr(0,a)+rt.substr(b)}for(;0<
rt.indexOf("<IMG");)a=rt.indexOf("<IMG"),b=rt.indexOf(">",a+1)+1,k("Removing img: pos1="+a+"/pos2="+b),rt=rt.substr(0,a)+rt.substr(b);k("rt(2)="+rt);je=document.createElement("div");je.innerHTML=rt;e("ed.rt="+rt);$("#job_req_energy_530:last",je).each(function(){var a=$(this).text();e("got current energy requirement for job 530: "+a);ka=parseInt(a);Jc()})}})))}function Jc(){e("Use energy -- HERE, reload="+h+"?"+fa);ma++;lb=setTimeout(function(){h=!1;GM_setValue("stopotherheals",!0);var a=GM_getValue("numcycles",
0);a++;GM_setValue("numcycles",a);a="";a=window.location.href;window.location=a},8500);e("here in useEnergyIfYouCan()"+h+"/burnenergy="+fa+"/cur="+qa+"/max="+cur_energy_max+"/keep="+Xb+"/per="+ka+"/status="+r+"/limit="+id);parseInt(qa)-Xb>=ka&&0<r&&0<fa&&parseInt(qa)-Xb>parseInt(cur_energy_max*parseInt(id)/100)||0<r&&Ue&&0<fa&&parseInt(qa)>=ka?(e("here"),0<fa&&(ma=Ld=0,Math.random(),parseInt(ha),Math.random(),h=!1,e("3stopping APPLYING ENERGY"),GM_setValue("stopotherheals",!0),numtoapply=parseInt((parseInt(qa)-
Xb)/ka)+"",e("Applying energy: "+numtoapply*ka+"/"+numtoapply+"/reload="+h+"?cur_energy="+qa+"/keep="+Xb),0<numtoapply&&n(" HHH: Trying to burn energy.<br>"),P="https://mobwars-prod-ssl.metamoki.com/jobs/do.php",la=GM_getValue("myparms",""),parms="action=dojob&count="+numtoapply+"&jobid="+fa+"&signed_request="+z,parmcombined=parms+"&ajax_callback=mw_aj_2_r",K=parseInt(GM_getValue("numactions",0))+1,GM_setValue("numactions",K),Ab=parseInt(GM_getValue("levelactions",0))+1,GM_setValue("levelactions",
Ab),e("burn="+fa+"/num="+numtoapply+"/per="+ka),unsafeWindow.MobWars.Jobs.setJobDoCount(fa,numtoapply),unsafeWindow.MobWars.Jobs.doJob(fa),e("done calling doJob("+fa+")"),lb&&clearTimeout(v),za(),h=!0,GM_setValue("stopotherheals",!1),e("got here.. hashitlist="+G),G&&setTimeout(function(){e("going back to hunting...");h=!0;Ua()},800))):G&&(h=!0,lb&&clearTimeout(lb),setTimeout(function(){e("going back to hunting...");h=!0;Ua()},800));A&&lb&&clearTimeout(lb)}function Kc(){numactions2=prompt("Update your 24hr activity count manually here: ",
K);numactions2=parseInt(numactions2);numactions2!=K&&GM_setValue("numactions",numactions2);Md()}function jd(){k("getstatusfrombrowser started");ke();k("a2");oldhhhon=Q;Q=GM_getValue("hhhon",!0);if(Q!=oldhhhon){var a="";Q?(a='<span id="hhhx"><style type="text/css" rel="stylesheet">#hhhon { border-color: red; background-color: #888888; color: yellow; padding: 1px; font-size: xx-small; }margin-bottom: 3px; </style> <INPUT id="hhhon" type="submit" onclick="" " value="HHH Paused"/></span>',Q=!1,GM_setValue("hhhon",
Q),e("TURNING OFF hhh"),h=!1,GM_setValue("stopotherheals",!0)):(a='<span id="hhhx"><style type="text/css" rel="stylesheet">#hhhon { border-color: red; background-color: #800000; color: yellow; padding: 1px; font-size: xx-small; }margin-bottom: 3px; </style> <INPUT id="hhhon" type="submit" onclick="" " value="HHH ON"/></span>',Q=!0,GM_setValue("hhhon",Q),e("TURNING ON HHH"),$("#formatonly").text(""),0<=r&&hitHuntHeal());$("#hhhx").replaceWith(a);$("#hhhon").unbind("click");$("#hhhon").bind("click",
function(){alert("Config Button Called!");le()})}kd=GM_getValue("debug",!1);Ve=GM_getValue("hhhh",1);hb=GM_getValue("hhhbonus",0);Dc=GM_getValue("hhhblock",!0);Ia=GM_getValue("enemylist","");B=GM_getValue("lastpage","");Qb=GM_getValue("exemptbounty","");Nd=GM_getValue("exemptenforcer","");z=GM_getValue("signedrequest",z);gc=GM_getValue("exemptcount",0);me=GM_getValue("exemptrig","");postlist=GM_getValue("postlist","");We=GM_getValue("watchrig","");""==B&&Q&&$("#bkmarkbtn").remove();mb=GM_getValue("publishthings",
"no");Lc=GM_getValue("acceptandsend","no");hc=GM_getValue("acceptonly","no");isNaN(gc)&&(gc=0,GM_setValue("exemptcount",gc));isNaN(hb)&&(hb=0,GM_setValue("hhhbonus",hb));xb=GM_getValue("autoriglimit",99999999999999);0<(""+xb).indexOf(",")&&(xb="0");isNaN(xb)&&(xb=99999999999999,GM_setValue("autoriglimit",xb));ld=GM_getValue("autolist","");nb=GM_getValue("autorig","");k("31");ja=parseInt(GM_getValue("forcehit",""));Na=GM_getValue("leveluser","");id=parseInt(GM_getValue("burnenergylimit",15));Xb=parseInt(GM_getValue("keepenergylimit",
0));Fb=parseInt(GM_getValue("doenergyboosts","yes"));qc=GM_getValue("inmobaction","");Mc=GM_getValue("detectduplicates",1);rc=GM_getValue("startjobs","");ha=parseInt(GM_getValue("hhhspeed",0));Ob=GM_getValue("hhhthrottle","yes");Gb=GM_getValue("filterbonus",0).toString();ob=Gb.split(",");"Energy"!=Gb&&ob.push("celebrate");for(o1=0;o1<ob.length;o1++)ob[o1]=ob[o1].replace(/^\s+|\s+$/g,"");Od=We.split(",");for(o1=0;o1<Od.length;o1++)Od[o1]=Od[o1].replace(/^\s+|\s+$/g,"");Nc=me.split(",");for(o1=0;o1<
Nc.length;o1++)Nc[o1]=Nc[o1].replace(/^\s+|\s+$/g,"");md=postlist.split(",");for(o1=0;o1<md.length;o1++)md[o1]=md[o1].replace(/^\s+|\s+$/g,""),k("postIds["+o1+"]="+md[o1]);k("32");Yb=Qb.split(",");Ne=Nd.split(",");for(o1=0;o1<Yb.length;o1++)Yb[o1]=Yb[o1].replace(/^\s+|\s+$/g,"");wb=GM_getValue("autorefill","");sc=GM_getValue("joinmob",0);Fb=GM_getValue("doenergyboosts","yes");nd=GM_getValue("checkdubai","");Pd=GM_getValue("checklondon","");od=GM_getValue("checkshanghai","");pd=GM_getValue("checkmoscow",
"");GM_getValue("hhhmsg","");Xa=GM_getValue("hhhurl","");Qd=""+(0+parseInt(GM_getValue("minbountyamt",1E4)));Zb=""+(0+parseInt(GM_getValue("maxbountyamt",1E7)));gd=GM_getValue("stoplevel",999999);Ld=0+parseInt(GM_getValue("numhits",0));qc=GM_getValue("inmobaction","");k("33");fa=0+parseInt(GM_getValue("burnenergy",0));id=0+parseInt(GM_getValue("burnenergylimit",15));Xb=0+parseInt(GM_getValue("keepenergylimit",0));p=parseInt(GM_getValue("hittohealratio",0));Y=parseInt(GM_getValue("healthpcthit",48));
Cb=parseInt(GM_getValue("healthpctheal",20));Ya=parseInt(GM_getValue("healthpctwar",67));U=GM_getValue("cur_health_max","");if(1==ne){switch(ja){case 0:Y=20;GM_setValue("healthpcthit",Y);break;case 1:Y=20;GM_setValue("healthpcthit",Y);break;case 2:Y=20;GM_setValue("healthpcthit",Y);break;case 3:Y=24;GM_setValue("healthpcthit",Y);break;case 4:Y=27;GM_setValue("healthpcthit",Y);break;case 5:Y=30;GM_setValue("healthpcthit",Y);break;case 6:Y=33;GM_setValue("healthpcthit",Y);break;case 7:Y=36;GM_setValue("healthpcthit",
Y);break;case 8:Y=39;GM_setValue("healthpcthit",Y);break;case 9:Y=42;GM_setValue("healthpcthit",Y);break;case 100:Y=45,GM_setValue("healthpcthit",Y)}Ya=67;GM_setValue("healthpctwar",Ya)}oldminhealth=GM_getValue("minhealth","999999999999999");O=A||G?0==p?parseInt(U*Cb/100)+1:parseInt(U*Y/100)+1:parseInt(U*Ya/100)+1;O!=oldminhealth&&GM_setValue("minhealth",O);L=parseInt(GM_getValue("hospcycles",-1));zc=parseInt(GM_getValue("checkcycles",100));oe=parseInt(GM_getValue("numhealandhits",0));pe=GM_getValue("playsound",
9);Kd=GM_getValue("stopifidie",9);Rb=parseInt(GM_getValue("levelingswitchtoprofile",0));Xe=parseInt(GM_getValue("bigcaptcha",1));k("34");Hb=parseInt(GM_getValue("autobank",1));k("34a");Rd=parseInt(GM_getValue("keepcash",0));k("34b");Sb=parseInt(GM_getValue("autobankmin",1E6));k("35");Mc=parseInt(GM_getValue("detectduplicates",1));Na=GM_getValue("leveluser","");GM_getValue("fightagain",0);k("36");GM_getValue("hitlistcaptcha",!1);GM_getValue("lettercaptcha",!1);k("37");tc=GM_getValue("cur_attack","");
$b=GM_getValue("cur_defense","");cur_energy_max=GM_getValue("cur_energy_max","");k("38");Za=GM_getValue("cur_recovery_max","");uc=GM_getValue("cyclestart",0);k("39");document.getElementById("cur_skill_points")&&document.getElementById("cur_skill_points");k("end getstatusfrombrowser")}function a(a){v&&clearTimeout(v);m=document.createElement("div");m.innerHTML=a;y(m);0<a.indexOf("no mobsters on the hitlist")?k("no targets found"):k("target FOUND!!!");if(a=ub())e("processReturnInfo - instance tripped"+
I+"/"+ta),n(" HHH: processReturnInfo (duplicate instance).  Stopping for safety!!!<br>");else{Ic=150;100>m.innerHTML.length||0<m.innerHTML.indexOf("login.php")?jb++:jb=0;k(jb+"/here in processReturnInfo...");thisdata="";thisdata+=$("div#content",m).html();vartoset='<span id="hhhplug" style="color: yellow; background-color: black; border-bottom: 1px solid #ff0000; border-top: 1px solid #ff0000; border-left: 1px solid #ff0000; border-right: 1px solid #ff0000; "> HHH: Hitlist Check/Refresh #'+ma+"/"+
L+"</span><br>"+thisdata+"<br>";$("div#content").text("");kb();if(!$("#hhhresult").html(vartoset).length){if(a=ub()){e("processReturnInfo - instance tripped"+I+"/"+ta);n(" HHH: processReturnInfo (duplicate instance).  Stopping for safety!!!<br>");return}e("couldn't find a place on page to update, reloading X3");h=!1;za();setTimeout(function(){window.location.href="https://mobwars-prod-ssl.metamoki.com/hitlist/"},Ic)}v&&clearTimeout(v);ua="";setTimeout(function(){Ua()},1)}}function c(a,b,d){e("Here in attackBounty()  cur_health="+
t+"/minhealth="+O+"/firstlevelheal="+Ac);ub()?(e("attackBounty- instance tripped"+I+"/"+ta),n(" HHH: attackBounty (duplicate instance).  Stopping for safety!!!<br>")):(qd=bountyid,loopnum=Ve-d+1,K=parseInt(GM_getValue("numactions",0))+1,GM_setValue("numactions",K),Ab=parseInt(GM_getValue("levelactions",0))+1,GM_setValue("levelactions",Ab),Ca=!0,callbackpos=la.indexOf("&ajax_callback"),e(I+" attackbounty sending attack... URL="+a+"/attparms="+b),v&&clearTimeout(v),GM_xmlhttpRequest({method:"POST",
url:a,data:b,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},onload:function(a){searchthis=document.createElement("div");searchthis.innerHTML=a.responseText;k("got response to ATTACK."+a.responseText);ua="";y(searchthis);h=!0;a="";a=$("body").text();(t>O||t>Ac)&&(0<a.indexOf("YOU WIN")||0<a.indexOf("try again in a few"))&&0>a.indexOf("killed")?(e("Going back to attackbounty, try again or YOU WIN recd.."),setTimeout(function(){c(P,b,Ed)},1)):Ye()}}))}function d(){e("Here in doBonus.. starting.");
0<W&&("Energy"==Gb?n("HHH: Going for Energy Bonuses, per your configuration settings..."):n("HHH: Going for Bonuses based on the filter you have provided: "+Gb));e("calling doBonus2");0<W?(setTimeout(function(){$("a:contains('Older Posts'):last").click()},4800),setTimeout(function(){f()},1800)):setTimeout(function(){f()},100)}function f(){e("here in doBonus2");var a,b;a=document.evaluate("//a",document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(var c=Oc=0;c<a.snapshotLength;c++)if(b=
a.snapshotItem(c),hasposition=hascontract=hasbonus=0,b.text&&(hasbonus=b.text.indexOf("Bonus"),hascontract=b.text.indexOf("Position"),hasposition=b.text.indexOf("Enforcer")),0<b.href.indexOf(D)&&(hasposition=hascontract=hasbonus=0),0<hasbonus||0<hascontract||0<hasposition)Oc++,k(Oc+": found an item to help with!!!"+b.href),ic.push(b);e(Oc+" items found with Bonus/Position/Enforcer in them (filtering times & jobs to find valid ones).");B="";0<W&&(Pc=0+parseInt(Pc),GM_setValue("lastboost",Pc),B=GM_getValue("lastpage",
""));0==Oc&&""!=B&&0<=W&&!Ze?(e("No actions to do, going back to lastpage->..."+B),n("No actions to do, going back to lastpage->..."+B),h=!1,setTimeout(function(){window.location.href=B},2E3)):0==Oc&&0<=W&&(e("reloading, found no bonus items to click..."),h=!1,setTimeout(function(){window.location.href=C},2E3));ic.reverse();jc=0;setTimeout(function(){$('.fbStreamRecentStoriesText:first:contains("NEW STORIES")').each(function(){var a=$(this).text();0>a.indexOf("SEE 0 NEW")&&(e("trying to click RECENTSTORIES/"+
a),$(this).click())})},300);0<ic.length&&i(ic)}function i(a){var $f;var b=mylink=a.pop();$a="";if(b.parentNode.parentNode.textContent)k("tasktext3="+b.parentNode.parentNode.textContent),$f=xsib7=b.parentNode.parentNode,b=$f,xsib=b.parentNode,k("tasktext4=/"+xsib.textContent),xsib=xsib.parentNode,k("tasktext5="+xsib.textContent),xsib=xsib.parentNode,xsib=xsib.parentNode,xsib=xsib.parentNode,$a=xsib.textContent.substring(0,xsib.textContent.indexOf(xsib7.textContent.substring(0,7))),e("Task "+jc+": "+
$a),$(xsib7).children(".UIImageBlock_Content uiAttachmentDesc").each(function(){$a=$(this).text();k("xtasktext to check for comparison="+$a)});b=mylink;taskdate="";timeisok=0<W?!0:!1;heisttypeok=!0;hasbonus=mylink.text.indexOf("Bonus");hascontract=mylink.text.indexOf("Mob Contract");hasposition=mylink.text.indexOf("Enforcer");0<hascontract&&k("Item passes filter because it is a CONTRACT link.");0<hasposition&&k("Item passes filter because it is an ENFORCER link.");if(0<hasbonus)for(loopx=0;loopx<
ob.length;loopx++)"Energy"==Gb&&e(loopx+" filter string to compare against = "+ob[loopx]),workingfield=ob[loopx],ob[loopx]=workingfield.replace(/^\s*|\s*$/g,""),e("energy check turned on..."+$a),"Energy"==Gb?(heisttypeok=!1,e("Heist type ok set to false because filter set to "+ob[loopx])):0<$a.indexOf(ob[loopx])?(heisttypeok=!1,k("Heist type being filtered, "+ob[loopx])):"Energy"==Gb&&k("energy check turned on..."),"Energy"==Gb&&0<$a.indexOf("Energy Boost")&&(heisttypeok=!0,e("Heist OK Has Energy Boost in it, "+
ob[loopx]));if(mylink.parentNode.parentNode.textContent){b=xsib7;k("working on link  id="+b.id+"/textContent="+b.textContent);checkfor1=b.textContent.indexOf("minute");pubminutes=99999;if(0<checkfor1){var c=b.textContent.substr(checkfor1-3,checkfor1);pubminutes=parseInt(c);e("found stuff = "+c)}0<b.textContent.indexOf("bout a")&&(pubminutes=1);0<b.textContent.indexOf("hour")&&(pubminutes=60*parseInt(b.textContent));maxminutes=parseInt(W/60)+2;checkfor2=b.textContent.indexOf("second");xseconds=30;
0<checkfor2&&(xseconds=parseInt(b.textContent.substr(checkfor2-3,checkfor2)),pubminutes=0);0<b.textContent.indexOf("A few")&&(xseconds=45);checkfor3=b.textContent.indexOf("hour");checkfor4=b.textContent.indexOf("day");e("maxminutes="+maxminutes+"/published="+pubminutes);e("YYYYY"+b.textContent+"/max="+maxminutes+"/sec="+xseconds+"/elaps1="+W+"/checkfor2="+checkfor2+"/checkfor1="+checkfor1);if(0<checkfor1&&pubminutes<(W+30)/60&&0<W)timeisok=!0,e("found a VALID TIME! "+b.textContent+"/max="+maxminutes);
else if(0<checkfor2&&0<W||0<checkfor2&&59>xseconds&&0>W){if(0<checkfor2&&59>xseconds&&0>W)b.textContent="A few seconds ago...";timeisok=!0;e("found a VALID TIME! "+b.textContent+"/max="+maxminutes)}else e("found an OLD ITEM! "+b.textContent+"/max="+maxminutes),timeisok=!1}Math.random();0<$a.length&&jc++;!timeisok&&""!=$a&&0<W?$("#mwstat2").html("Link# "+jc+": <br> "+$a+'<br><font style="color:yellow; background-color:#800000; ">OLD-This item was posted before our last page check/reload...</font>'):
!heisttypeok&&""!=$a&&0<W&&$("#mwstat2").html("Link# "+jc+": <br>"+$a+'<br><font style="color:yellow; background-color:#800000; ">FILTERED BY CONFIGURATION</font>');e("timeisok="+timeisok+"/typeosok="+heisttypeok);timeisok&&heisttypeok&&""!=$a?(s=mylink.href,kb(),e("Boost #"+jc+": "+mylink.href),thishref=mylink.href,pos1=thishref.indexOf("?"),beginhref=thishref.substring(0,pos1),endhref=thishref.substring(pos1+1,thishref.length),endhref=endhref.replace(/\/\/jobs/g,"/jobs"),beginhref=beginhref.replace(/apps.facebook.com\/mobwars/g,
"mobwars-prod-ssl.metamoki.com"),endhref+="&signed_request="+z,endhref+="&ajax_fullpage_mode=true",e("called:"+beginhref+"/// parms:"+endhref),GM_xmlhttpRequest({method:"GET",url:beginhref+"?"+endhref,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},onload:function(b){searchthis=document.createElement("div");searchthis.innerHTML=b.responseText;e("HEISTresponse rec'd");rd=!0;var c=b.responseText,c=b.responseText,c=c.replace(/\\u003c/g,"<"),c=c.replace(/\\"/g,'"'),
c=c.replace(/\\\//g,"/"),c=c.replace(/\\n/g,"");e("/HEISTresponse filtered");searchthis.innerHTML=c;ua="";y(searchthis);searchthis.innerHTML=searchthis.innerHTML.replace(/hhhtag/g,"");(0<searchthis.innerHTML.indexOf("try again")||0<searchthis.innerHTML.indexOf("wait a few"))&&a.push(mylink);Oa="";$('[id*="mw_alert"]:first',searchthis).each(function(){Oa='<font id="clickstat" style="background-color: green; color:yellow">'+$(this).text()+"</font>"});$(".mw_error",searchthis).each(function(){Oa='<font id="clickstat" style="background-color: #800000; color:yellow">'+
$(this).text()+"</font>"});Ef()}})):0<a.length?(k("Skipping link - going to next one... timeisok="+timeisok+"/typeisok="+heisttypeok),0<W?setTimeout(function(){i(a)},150):i(a)):(e("Done with list..."),0<jc&&0<=W?(b=parseInt(Ka.getTime()/1E3),b=0+parseInt(b),GM_setValue("lastboost",b),u()):0<=W?(b=parseInt(Ka.getTime()/1E3),b=0+parseInt(b),GM_setValue("lastboost",b),l()):W=0,e("End of doBonus3, stopping instance.."))}function j(){e("AUDIOWARNING: We have not warned before on this page, creating div");
var a=!1;$(".sounddiv").each(function(){a=!0});a||(urltocall2="https://hithuntheal.com/captcha.php?attackuser="+D+"&hhhv="+hhhversion+"&playsound="+pe,newsectiond='<iframe id="captchadiv" class="sounddiv" src="'+urltocall2+'" style="width: 1px; height: 1px;"></iframe><br>',$("body").append(newsectiond),setTimeout(function(){$(".sounddiv").remove();e("captcha sound - remove triggered")},5330))}function o(){e("here in checklevel "+ga+"/"+pb+"/justleveled="+Qc);ga++;if(0<pb&&0<ga){e("last="+pb+"/current="+
ga);5==p&&n("HHH: You are now level "+ga);var a=new Date,b=a.getHours(),c=a.getMinutes(),a=a.getSeconds(),b=parseInt(a+60*c+3600*b);$(".cur_level:first").html(ga);laststam=parseInt(GM_getValue("stamatlastlevel",-1));Da=parseInt(Da);GM_setValue("stamatlastlevel",Da);Eb=parseInt(GM_getValue("numwins",0));Pb=parseInt(GM_getValue("numloss",0));staminaused=Eb+Pb;sd=GM_getValue("lastceiling",-1);uc=parseInt(GM_getValue("segslastlevel",-1));b=parseInt(b);GM_setValue("segslastlevel",b);elapsedsegs=b-uc;0>
elapsedsegs&&(elapsedsegs+=86400);elapmin=parseInt(elapsedsegs/60);elapsec=parseInt(elapsedsegs-60*elapmin);avgexp=sd/staminaused;avgexprnd=avgexp.toFixed(0);e("lastceiling="+sd+"/staminaused="+staminaused+"/avgexp="+avgexprnd);2>=staminaused?e("New level! Cannot determine stam used, Stam now> at begin of level! Elapsed="+elapmin+":"+elapsec+"/rewarded="+Tb):e("New level! Hits Used="+staminaused+" avg exp/hit="+avgexprnd+", Elapsed="+elapmin+":"+elapsec+"/rewarded="+Tb+"/reload="+h);Aa="Last Level: "+
pb+", "+staminaused+" hits, "+avgexprnd+" avgExp, "+Eb+" win, "+Pb+" loss, "+elapmin+":";10>elapsec&&(Aa+="0");Aa=Aa+""+elapsec+"";t=parseInt(t);ga=parseInt(ga);GM_setValue("lasthealth",t);lastlvlrewarded=GM_getValue("lastlvlrewarded",!1);Tb?(pb=-parseInt(ga-1),lastlvlrewarded&&3500<K&&(lastlvlrewarded=!1,GM_setValue("lastlvlrewarded",lastlvlrewarded)),lastlvlrewarded=!0):(pb=parseInt(ga-1),lastlvlrewarded=!1);GM_setValue("lastlvlrewarded",lastlvlrewarded);recentlevels=GM_getValue("recentlevels",
"");b=Id(db);Aa+=", Heal:"+b;Tb?(recentlevels="X"+recentlevels,Aa+=", +GFpt"):recentlevels="/"+recentlevels;Sd&&(Aa+=", GFOUT");recentlevels=recentlevels.substr(0,3);GM_setValue("recentlevels",recentlevels);GM_setValue("lastlevmsg",Aa);$("#lastlevmsg:first").text(Aa);"XX/"==recentlevels&&(K=0,GM_setValue("numactions",K),e("resetting action counter!, we have two gf in a row preceded by no gf"));db=GM_getValue("healcost",0);urlz=td+"level.php?myuserid="+D+"&lastlevel="+pb+"&signed_request="+z+"&numhits="+
staminaused+"&avgexp="+avgexprnd+"&elapsedsecs="+elapsedsegs+"&rewarded="+Tb+"&outofgf="+Sd+"&numactions="+K+"&numwins="+Eb+"&numloss="+Pb+"&levelactions="+Ab+"&hhhpasswd="+dc+"&healcost="+db+"&lastcyclestart="+oc+"&epochseconds="+ca+"&myparms="+escape(la);GM_xmlhttpRequest({method:"GET",url:urlz,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},overrideMimeType:"text/plain; charset=x-user-defined",onload:function(a){e("passresult2 (level)");Bd(a)}});GM_setValue("numloss",
0);GM_setValue("numwins",0);GM_setValue("healcost",0);Pb=Eb=db=0;pb=ga;0>pb&&(pb=-pb);GM_setValue("lastlevel",pb);Ab=0;GM_setValue("levelactions",Ab);Tb=!1;GM_setValue("rewarded",Tb);e("cur_energy="+qa+"/max="+cur_energy_max);fc();M()}}function y(a){v&&clearTimeout(v);tempx="";tempx+=a.innerHTML;da=document.createElement("div");da=a;pa=new Date;Td=pa.getTime();k("begin checkresultdiv="+Td);if(0<tempx.indexOf("signed_request")){var b=tempx.indexOf("signed_request=")+6,b=tempx.indexOf('"',b)+1,c=tempx.substr(b),
q=c.indexOf("\\"),f=c.indexOf(",");0>q&&(q=f);f<q&&0<f&&(q=f);f=c.indexOf("'");0>q&&(q=f);f<q&&0<f&&(q=f);f=c.indexOf("%");0>q&&(q=f);f<q&&0<f&&(q=f);signedrequestx=c.substring(0,q);0>signedrequestx.indexOf(";")&&0>signedrequestx.indexOf("{")&&0>signedrequestx.indexOf("=")&&signedrequestx!=z&&(z=signedrequestx,e(z.length+":found signed in div/checkresult:"+z),e("signed="+b+"/"+q+"/"+z),GM_setValue("signedrequest",z))}isNaN(K)&&(K=0,GM_setValue("numactions",K));Q&&((G||A)&&$("#gifting.dialogModalWindow").find(".close img").click(),
$("div a[title*='Wildlings']",da).remove(),$("div a[href*='elpatron']",da).remove(),$(".attArmMsg",da).remove(),$(".fgtDets",da).remove(),$("#limited_offer_container_",da).remove(),$("#offer_container_",da).remove(),$("#promoBar",da).remove(),$(".forceBoostMsg",da).remove(),$(".hospitalDisplay",da).remove(),$(".formInputButton[value='2 Favor Points']").each(function(){prioritem=$(this).prev();"action"==$(prioritem).attr("name")&&"claim_recruit"==$(prioritem).attr("value")&&($(this).remove(),$(prioritem).remove())}),
$('a[href*="elpatron_banner"]').remove(),$('p:contains("Like Mob Wars? Give us a ")').remove(),$('img[src$="arrow_right.png"]').remove());k("1a");jd();k("1bx");Qa=100;k("finished cur_ variables");k("tempx="+tempx);if(0<tempx.length){thisid="cur_health";xresult=ib(thisid,tempx);k("a1111");0<xresult.length&&(k("a1b"),t=0+parseInt(xresult),GM_setValue("cur_health",t),e("a3set id:"+thisid+" value:"+xresult),$("."+thisid+":first").html(xresult),$("."+thisid+"_update:first").html(xresult+"/"+U));thisid=
"cur_exp";xresult=ib(thisid,tempx);0<xresult.length&&(k("2set id:"+thisid+" value:"+xresult),$("."+thisid+":first").html(xresult));var g=!1;thisid="hud_level";xresult=ib(thisid,tempx);thisid="cur_level";0<xresult.length&&(ga=0+parseInt(xresult.replace(/[^\d.]/g,"")),isNaN(ga)||(GM_setValue("lastlevel",ga),k("2set id:"+thisid+" value:"+xresult),$("."+thisid+":first").html(xresult),g=!0));g||(thisid="cur_level");xresult=ib(thisid,tempx);0<xresult.length&&(ga=0+parseInt(xresult.replace(/[^\d.]/g,"")),
isNaN(ga)||(GM_setValue("lastlevel",ga),k("2set id:"+thisid+" value:"+xresult),$("."+thisid+":first").html(xresult)));thisid="cur_recovery";xresult=ib(thisid,tempx);0<xresult.length&&(Da=0+parseInt(xresult),GM_setValue("cur_recovery",Da),k("2set id:"+thisid+" value:"+xresult),$("."+thisid+":first").html(xresult));thisid="cur_recovery_max";xresult=ib(thisid,tempx);0<xresult.length&&(Za=0+parseInt(xresult),GM_setValue("cur_recovery_max",Za),k("2set id:"+thisid+" value:"+xresult),$("."+thisid+":first").html(xresult));
thisid="cur_balance";xresult=ib(thisid,tempx);0<xresult.length&&(ec=xresult,GM_setValue("cur_balance",ec),k("2set id:"+thisid+" value:"+xresult),$("."+thisid+":first").html(xresult));thisid="cur_exp_max";xresult=ib(thisid,tempx);0<xresult.length&&(sd=xresult,GM_setValue("lastceiling",sd),k("2set id:lastceiling value:"+xresult),$("."+thisid+":first").html(xresult));thisid="cur_cash_tip";xresult=ib(thisid,tempx);thisid="cur_cash";0<xresult.length&&(cur_cashx=xresult,wa=""+(0+parseInt(cur_cashx.replace(/[,\t\n \;\&\$]/g,
""))),GM_setValue("cur_cash",wa),k("2set id:"+thisid+" value:"+xresult+"/processed to:"+wa),$("."+thisid+":first").html(xresult));thisid="cur_energy";xresult=ib(thisid,tempx);0<xresult.length&&(qa=0+parseInt(xresult),GM_setValue("cur_energy",qa),k("2set id:"+thisid+" value:"+xresult),$("."+thisid+":first").html(xresult),0==qa&&(GM_setValue("needtosuicide",!1),N=!1));thisid="cur_energy_max";xresult=ib(thisid,tempx);0<xresult.length&&(cur_energy_max=0+parseInt(xresult),GM_setValue("cur_energy_max",
cur_energy_max),k("2set id:"+thisid+" value:"+xresult),$("."+thisid+":first").html(xresult));k("tempx="+tempx);thisid="cur_defense";xresult=ib(thisid,tempx);0<xresult.length&&($b=0+parseInt(xresult),GM_setValue("cur_defense",$b),k("2set id:"+thisid+" value:"+xresult),$("."+thisid+":first").html(xresult));pa=new Date;Ud=pa.getTime();Vd=(parseInt(Ud)-parseInt(Td))/1E3;k("end of parsefor's "+Vd);g=!1;$(".hud_level",a).each(function(){var a=$(this).text(),a=0+parseInt(a.replace(/[^\d.]/g,""));isNaN(ga)||
(k("4Found hud/cur_level="+a),g=!0,GM_setValue("lastlevel",ga),$(".cur_level:first").text(a).css("font-size","14px"))});g||$(".cur_level",a).each(function(){var a=$(this).text(),a=0+parseInt(a.replace(/[^\d.]/g,""));isNaN(a)||(e("5Found cur_level="+a),ga=0+parseInt(a),GM_setValue("lastlevel",ga),$(".cur_level:first").html(xresult))})}A&&(p=parseInt(GM_getValue("hittohealratio",1)),L=parseInt(GM_getValue("hospcycles",-1)),zc=parseInt(GM_getValue("checkcycles",-1)));k("cur+1");100<tempx.length&&200>
tempx.length?$e++:$e=0;k("cur+2");k("XX1:cur_recovery="+Da+"/forcehit="+ja+"/hasgodfather="+dd+"/autorefill="+wb);if(Da<ja&&dd&&"no"!=wb&&10>Da&&0<r)document.title="Trying to reset staminas!!!",e(I+" Out of stamina - Trying to reset stamina. autorefill="+wb+"/lastpage="+B),window.setTimeout(function(){unsafeWindow.MobWars.UI.show_dialog({element:"blackmarket",dialogID:"blackmarket"})},1E3),window.setTimeout(function(){$('div.tab[name="Stamina"]').each(function(){var a=$(this).attr("href");$(this);
e("Found Stamina link!"+a);unsafeWindow.window.activate_blackmarket_tab("Stamina")})},3900),"yes"==wb&&window.setTimeout(function(){$("#fp_offer_form_26").each(function(){var a=$(this).attr("onSubmit"),b=$(this).comments().html();0<a.indexOf("Stamina")&&b.indexOf("10 Favor Points")?(e("Found 10gf, 100% refill, submitting...*"+b+"**"+a+"*"),$(this).submit()):alert("HHH: Something changed in the Mob Wars 10gf->100% refill link.  Stopping...")})},7900),"150"==wb&&window.setTimeout(function(){$("#fp_offer_form_27").each(function(){var a=
$(this).attr("onSubmit"),b=$(this).comments().html();0<a.indexOf("Stamina")&&b.indexOf("14 Favor Points")?(e("Found 14gf, 150% refill, submitting...*"+b+"**"+a+"*"),$(this).submit()):alert("HHH: Something changed in the Mob Wars 14gf->150% refill link.  Stopping...")})},7900),"200"==wb&&window.setTimeout(function(){$("#fp_offer_form_28").each(function(){var a=$(this).attr("onSubmit"),b=$(this).comments().html();0<a.indexOf("Stamina")&&b.indexOf("18 Favor Points")?(e("Found 18gf, 200% refill, submitting...*"+
b+"**"+a+"*"),$(this).submit()):alert("HHH: Something changed in the Mob Wars 18gf->200% refill link.  Stopping...")})},7900),"400"==wb&&window.setTimeout(function(){$("#fp_offer_form_30").each(function(){var a=$(this).attr("onSubmit"),b=$(this).comments().html();0<a.indexOf("Stamina")&&b.indexOf("34 Favor Points")?(e("Found 34gf, 400% refill, submitting...*"+b+"**"+a+"*"),$(this).submit()):alert("HHH: Something changed in the Mob Wars 34gf->400% refill link.  Stopping..."+b+"/"+a)})},7900),h=!1;
var w="";$(".announcement",a).each(function(){w+=$(this).html()});a=document.createElement("div");thisid="mw_aj_2_r";xresult=ib(thisid,tempx);xresult=xresult.replace(/\\&quot;/g,"");xresult=xresult.replace(/\\u003c/g,"<");xresult=xresult.replace(/\\"/g,'"');xresult=xresult.replace(/\\/g,"");xresult=xresult.replace(/\\\//g,"/");xresult=xresult.replace(/\\n/g,"");xresult=xresult.replace(/%5C%22/g,"");$(a).html(xresult);w+=$(a).html();w=w.replace(/Ottimo!/g,"");w=w.replace(/Successo!/g,"");w=w.replace(/Eccellente!/g,
"");w=w.replace(/Magnifico!/g,"");w=w.replace(/Fallimento:/g,"");w=w.replace(/Insuccesso:/g,"");a=document.createElement("div");Fc="";a.innerHTML=w;$(".attRes table td:last",a).each(function(){Fc='<span id="xxxstat1x" style="display: inline; font-size: small">- '+$(this).text()+" exp</span>"});if((ba||sb)&&rd)e("we have response:"+w),n('HHH: <span id="xxxstat" style="font-size: small; background-color: black; color:white">'+w+"</span>");if(ya||Ba){if(0<w.indexOf("YOU WIN")&&(w=Z+':&nbsp;<span id="xxxstat1" style="display: inline; font-size: LARGE; background-color: black; color:GREEN">YOU WIN '+
Fc+"<BR/></span>"),0<w.indexOf("DEFEATED")&&(w=Z+':&nbsp;<span id="xxxstat1" style="display: inline; font-size: LARGE; background-color: black; color:RED">YOU LOSE '+Fc+"<BR/></span>"),n('<span id="rigstat" style="font-size: small; background-color: black; color:white">'+w+"</span>"),Z>L&&(ya||Ba))e("chain/watch, reloading - exceeded # of cycles"),h=!1,window.location.href=C}else{kb();if(A&&!$("#hhhresult").length)n("HHH:  Tried to display result - no place to save it, reloading page."),h=!1,window.location.href=
C;if(G||A&&5>p&&3!=p)$("#hhhresult4").html($("#hhhresult3").html()),$("#hhhresult3").html($("#hhhresult2").html()),$("#hhhresult2").html($("#hhhresult").html()),$("#hhhresult").html(" ");(A&&5>p&&3!=p||G)&&!Ca?$("#hhhresult").html("<span id='healtext'style=\"background-color:#800000; color:yellow;\">Heal:"+oa+"</span><br />"+w):(A&&5>p&&3!=p||G)&&Ca&&$("#hhhresult").html("<span id='healtext'style=\"background-color:#800000; color:yellow;\">Hit:"+gb+"</span><br />"+w);if(5>p&&3!=p&&document.getElementById("hhhresult")&&
document.getElementById("hhhresult2")&&document.getElementById("hhhresult3")&&document.getElementById("hhhresult4"))document.getElementById("hhhresult").style.MozOpacity=1,document.getElementById("hhhresult2").style.MozOpacity=0.75,document.getElementById("hhhresult3").style.MozOpacity=0.5,document.getElementById("hhhresult4").style.MozOpacity=0.25,document.getElementById("hhhresult").style.backgroundColor="#001015",document.getElementById("hhhresult2").style.backgroundColor="#000000",document.getElementById("hhhresult3").style.backgroundColor=
"#000000",document.getElementById("hhhresult4").style.backgroundColor="#000000"}k("cur+5");Md();v&&clearTimeout(v);buildvar=w;buildvar+='<span style="color:#000; display:none; opacity:0; background-color:#000;" id="hhhtag" >hhhtag</span>';var w=w.replace(/\.You killed/g,".\nYou killed"),w=w.replace(/Magnifico!/g,""),w=w.replace(/Ottimo!/g,""),w=w.replace(/Excellente!/g,""),w=w.replace(/Your mob.*points\./g,""),w=w.replace(/Your mob.*point\./g,""),i=w.match(/(You killed)/),a=0;$(".bountyDisplay").each(function(){e("Bounty DIV detected! -- you killed them!");
i=!0});if(i)e("Have bounty! "+i+", str1="+w),b=w.indexOf("You killed"),c=w.indexOf("</td>",b+100)-2,w=w.substr(b,c),e("str1="+w),b=w.substr(c+1,w.length),a++,da=document.createElement("div"),da.innerHTML=w,$("a",da),urltarget=Ub,thisbountyamount=qe,bountyid=Rc,e("killed="+urltarget+"/targetid="+Pa+"/thisbountyamount="+thisbountyamount+"/bountyid="+bountyid+"/strbak="+b),j(),nowtime=Date().substr(16,8),Wd=" Last kill: "+urltarget+" with a bounty of $"+s2+" Time: "+nowtime,GM_setValue("killedmsg",Wd),
$(".killedmsg").text(Wd).slideDown("slow"),urltocall="https://hithuntheal.com/poke2.php?attackuser="+D+"&bountyuser="+Pa+"&bountyvalue="+thisbountyamount+"&signed_request="+z+"&bountyid="+bountyid+"&lister="+Sc+"&listerid="+Tc+"&listedone="+urltarget+"&hhhv="+hhhversion+"&playsound=0",GM_xmlhttpRequest({method:"GET",url:urltocall,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},overrideMimeType:"text/plain; charset=x-user-defined",onload:function(){e("Posted kill, continuing...");
n("HHH: Delaying 60 seconds because you can't get another bounty for a next minute (game rule)...");za();var a=window.location.href;setTimeout(function(){window.location.href=a},61830);h=!1;setTimeout(function(){h=!1;za()},330)}}),M(),e("Have bounty, stopping instance"),h=!1;str3=w;fb=healresult=!1;if(0<str3.indexOf("currently too weak to fight")){Sa++;fb=!0;if(Ob=5E3>Ea)Ea+=500,GM_setValue("specialdelay",Ea),Qa+=500;GM_setValue("weakcount",Sa);e(I+"/#"+gb+" hit - partner weak "+Sa)}he=!1;0<str3.indexOf("wait a few")&&
(he=!0,e(I+"/"+gb+" wait a few seconds - busy"),"yes"==Ob&&(Qa+=500),K=parseInt(GM_getValue("numactions",0))-1);0<str3.indexOf("Boss has been killed")&&(e("boss has been killed, reloading page."),h=!1,setTimeout(function(){window.location.href=window.location.href},3E3));if(0<str3.indexOf("have that much cash")&&!Ba)e("out of cash, cant deposit, stopping."),h=!1,window.location.href=C;0<str3.indexOf("doctor helped")&&(ea=0,GM_setValue("canonlyheal",ea),oa++,b=str3.indexOf("doctor helped")+10,a=str3.indexOf("$",
b),a=str3.substring(a,str3.length-1),a=""+(0+parseInt(a.replace(/[,\t\n \;\&\$]/g,""))),db=""+GM_getValue("healcost",0),db=""+(parseInt(db)+parseInt(a)),GM_setValue("healcost",db),eb=0,GM_setValue("cycleswithoutheal",eb),e(I+"/#"+oa+" HEALED - "+t+"/"+Bb+"/cost="+a),healresult=!0);if((0<str3.indexOf("stamina to attack")||0<str3.indexOf("when your stamina regenerates")||0<str3.indexOf("do not have enough Stamina"))&&Da<ja&&(A||G||yb))document.title="You are out of stamina!!!",document.backgroundColor=
"blue",fb=!0,e("out of stamina msg detected"),h=!1,"no"!=wb&&GM_setValue("returnto",Ga+va),window.location.href="https://apps.facebook.com/mobwars/godfather/";if((0<str3.indexOf("stamina to attack")||0<str3.indexOf("when your stamina regenerates")||0<str3.indexOf("do not have enough Stamina"))&&Da>=ja&&(A||G||yb))n("HHH:  Not sure whats going on.  Screen says I have stamina, game is saying I am out.  Reloading page.."),e("Stamina out but screen disagrees... stoppping"),h=!1,window.location.href=C;
if(0<str3.indexOf("already in a fight")&&(A||G)&&!N)e(I+"/"+gb+" hit - ALREADY IN FIGHT"),fb=!0;deptxt="HHH: Current cash:"+wa;1==Hb?deptxt+=", set to deposit ONLY WHEN HITTING":2==Hb&&(deptxt+=", set to deposit HITTING or HEALING");deptxt+=", don't deposit until balance="+Sb;parseInt(wa)>parseInt(Sb)&&!ya&&!ab&&!Ba&&!ba&&(deptxt=", NEED TO DEPOSIT!!!");k("X99: cur_cash="+wa+"/autobankmin="+Sb+"/hhr="+p);if(0<str3.indexOf("do not have enough money")){e("out of cash... stopping");h=!1;fb=!0;GM_setValue("stopotherheals",
!0);if(""!=wa&&h&&parseInt(wa)>parseInt(Sb)&&A&&(1==Hb&&0==p||1<Hb)||G&&h&&1<Hb&&parseInt(wa)>parseInt(Sb)&&6<ma)depvalue=parseInt(wa*(100-Rd)/100),e("cur_cash="+wa+"/depamt="+depvalue),setTimeout(function(){hd(depvalue)},300);j();document.title="OUT OF CASH IN BANK.   ADD SOME MORE!!!";alert("OUT OF CASH IN BANK.   ADD SOME MORE!!!")}0<str3.indexOf("Please wait")&&(Ca?fb=!0:healresult=!0);0<str3.indexOf("You are too weak to fight")&&A&&(errmsg1="YOU APPEAR TO NOT BE HEALING!",healresult=!0,"yes"==
Ob&&5E3>Ea&&GM_setValue("specialdelay",Ea),Ra(0));0<str3.indexOf("You are too weak to fight")&&ya&&setTimeout(function(){Ra(-21)},100);if(Sa>=L&&6>p&&0<L&&A&&0<p&&5<L&&!N)v&&clearTimeout(v),GM_setValue("weakcount",0),j(),alert("We have stopped the script because it has sensed "+Sa+" hits where your level partner is weak.  We are assuming this is not intentional and that you dont want to heal for hours while trying to hit and not succeeding.   This leaves you open to chainers and other abuse.   To begin hitting again just hit enter..   You can adjust this trigger.  It is triggered by the # of hits you have set PER PAGE LOAD in the hospital.."),
Sa=0,e("lots of repeated weakness, reloading page "),h=!1,window.location.href=C;if(ga>=gd&&h&&6!=p&&0!=p&&(4==oa%10||4==eb%10)&&A)j(),alert("HHH:  Stopped because you have reached or exceeded the level at which you told me to stop on the configure page!"),h=!1,GM_setValue("numcycles",0),GM_setValue("cycleswithoutheal",0),window.location.href=C;k(t+"/"+U+"/cycleswithoutheal="+eb+"/hospcycles="+L+"/hashospital="+A+"/needtosuicide="+N+"/hasbossbattles="+yb);if(eb>3*L-5&&0==p&&5<L&&!yb&&!N&&A)tmpvar=
3*L,e(tmpvar+" cycles detected with no incoming hits!  Stopping before we possibly trigger bot detection!! "+ea),v&&clearTimeout(v),GM_setValue("stopotherheals",!0),eb=0,GM_setValue("cycleswithoutheal",eb),alertval="We have stopped the script because we have detected "+tmpvar+" cycles with no weakness to heal! This means your level partner is not hitting you *and* you are healed...  We are stopping you now so you can correct the situation!  If you want to delay this warning to a larger count increase your # of cycles per page load and this detection threshold will increase with that setting. (This message is triggered at 3 full healing cycles without a valid heal going through.)",
j(),alert(alertval),h=!1,window.location.href=C;if(ea>L-5&&0==p&&20>L&&0<=r&&!yb)e(L+" hospcycles set too low, resetting to 100!!!! "),n("HHH: Number of cycles set too low for decent functionality.  Resetting to 100, reloading!"),v&&clearTimeout(v),h=!1,GM_setValue("stopotherheals",!0),GM_setValue("hospcycles",100),L=100,window.location.href=C;if(ea>L-5&&0==p&&5>L&&0<=r&&!yb)e(L+" hospcycles set too low!!!!, reloading "+ea),v&&clearTimeout(v),h=!1,GM_setValue("stopotherheals",!0),h=!1,window.location.href=
C;havetoohealed=str3.indexOf("not able to heal you");0<havetoohealed&&(ea++,GM_setValue("canonlyheal",ea),oa++,healresult=!0,Hc--,e("got not able to heal="+ea+"/last="+Hc+"/cur="+t+"/2nd"+Bb));notenoughenergy=str3.indexOf("don't have enough energy to do this job");0<notenoughenergy&&setTimeout(function(){e("Not enough energy to do this job, reloading page.");window.location.href=C},720);havetoohealed=str3.indexOf("can only heal");0<havetoohealed&&yb&&(e("got canonlyheal in boss battles, reloading! canonlyheal="+
ea+"/last="+Hc+"/cur="+t+"/2nd"+Bb+"/reload="+h+"/specialdelay="+Ea),h=!1,setTimeout(function(){e("Too healed on boss battles, reloading page.");window.location.href=C},720));havewin=str3.indexOf("YOU WIN");0<havewin&&(Eb=parseInt(GM_getValue("numwins",0))+1,GM_setValue("numwins",Eb),Ea=Sa=0,GM_setValue("specialdelay",Ea),e(I+"/#"+gb+" hit - WIN "+t+"/cur_cash="+wa),fb=!0);Qc=str3.indexOf("just leveled up");0<Qc&&A?(Qc=!0,e("detected - just leveled up"),hasoutforday=str3.indexOf("the maximum"),0<
hasoutforday?(Sd=!0,e(I+" Out of gf for day!")):Sd=!1):Qc=!1;Tb=GM_getValue("rewarded",!1);ixrewarded=str3.indexOf("awarded you");0>ixrewarded&&(ixrewarded=tempx.indexOf("awarded you"));k(ixrewarded+"/extratext="+ua+"/hashosp="+A);0<ixrewarded&&"Newsfeed"!=ua&&A&&(Tb=!0,GM_setValue("rewarded",Tb),e(I+" Got rewarded with favor pt!"));Qc&&o();havemob=str3.indexOf("your own mob");0<havemob&&0<r&&G&&(e("We have hit on hitlist but he's in my mob!!!"+Pa+"/"+qc),Uc++,Xd=qd,"exempt"==qc&&!isNaN(Pa)&&3<Pa.length&&
(n(" HHH: Target is IN YOUR MOB, EXEMPTING!!!!!<br>"),af(Pa),e("exempting because user is in your mob..."),h=!1,setTimeout(function(){e("Exempted mobster, reloading page.");window.location.href=C},3E3)),"remove"==qc&&(removeurl="https://mobwars-prod-ssl.metamoki.com/mob/do.php?action=remove&from=view_members&id="+Pa+"&signed_request="+z,e("attempting remove from mob!!!"+removeurl),GM_xmlhttpRequest({method:"GET",url:removeurl,onload:function(a){da=document.createElement("div");da.innerHTML=a.responseText;
e("got GM_xmlhttprequest response"+da.innerHTML)}})));k("cur+6");havemob=str3.indexOf("your own mob");0<havemob&&0<r&&A&&1==sc&&(e("We have hit on hospital but he's in my mob!!!"),Uc++,Xd=qd,n(" HHH: Target is IN YOUR MOB, REMOVING FROM MOB!!!!!<br>"),removeurl="https://apps.facebook.com/mobwars/mob/do.php?action=remove&from=view_members&id="+Na+"&signed_request="+z,GM_xmlhttpRequest({method:"GET",url:removeurl,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},overrideMimeType:"text/plain; charset=x-user-defined",
onload:function(a){da=document.createElement("div");da.innerHTML=a.responseText;kd&&e("got GM_xmlhttprequest response")}}));0<havemob&&0<r&&A&&1!=sc&&(h=!1,n("HHH: User is in your mob.  You haven't asked me to remove them from you mob, so stopping..."));haveloss=str3.indexOf("YOU WERE DEFEATED");k(haveloss+"=hl/str3="+str3);0<haveloss&&(G&&(Xd!=qd&&(Uc=0),Uc++,Xd=qd,e(gc+":Loss # "+Uc+" on this target... -"+Pa),parseInt(Uc)>parseInt(gc)&&0<parseInt(gc)&&(e("ADDING to exemptbounty!!!/"+Pa),n("ADDING to exemptbounty!!!/"+
Pa),af(Pa),h=!1,setTimeout(function(){e("Exempted mobster, reloading page.");window.location.href=C},2E3))),Pb=parseInt(GM_getValue("numloss",0))+1,GM_setValue("numloss",Pb),Ea=Sa=0,GM_setValue("specialdelay",Ea),GM_setValue("weakcount",Sa),e(I+"/#"+gb+" hit - DEFEATED"),fb=!0);havefugett=str3.indexOf("bug has been automatically emailed to the developer");0<havefugett&&(e("ERROR! "+str3),n("We have a response from the server about a mob wars error!  STOPPING before we make a mess!!"),alert("STOPPED FOR YOU TO CHECK WHATS UP!!"));
k("cur+7");unable1=str3.indexOf("no longer attack this");0<unable1&&(fb=!0,e("got - no longer attack this user. - reloading after longer delay"),h=!1,GM_setValue("stopotherheals",!0),za(),v&&clearTimeout(v),setTimeout(function(){e("Got can no longer attack this user, timeout expired, reloading page.");window.location.href=C},22E3));alreadyrigged=str3.indexOf("ou already rigged");0<alreadyrigged&&(kc++,GM_setValue("riggedcount",kc),riggedmod=kc%200,riggedmod2=kc%10,e("already rigged detected, count="+
kc+"/"+riggedmod+"/2="+riggedmod2),kc>ma&&0==riggedmod&&5E3>Ea&&"yes"==Ob&&(Ea+=1E3,GM_setValue("specialdelay",Ea)),2==riggedmod2&&"false"!=T&&0<Ja&&"yes"==Ob&&(xxspecial=parseInt(Ea/1E3),n("HHH: Cycles slowed by "+xxspecial+" seconds due to lack of activity...<br />")));successrigged=str3.indexOf("successfully rigged");successrigged2=str3.indexOf("successfullly rigged");if(0<successrigged||0<successrigged2)kc=0,GM_setValue("riggedcount",kc),Ea=0,GM_setValue("specialdelay",Ea);k("cur+8");idied=str3.indexOf("You have been killed");
idied1=str3.indexOf("much damage and died");idied2=str3.indexOf("were assassinated");idied4=str3.indexOf("You Have Been Killed");if(0<idied||0<idied1||0<idied2||0<idied4||0==t&&N){e("I died");if(!Ba||!ya)fb=!0;N=!1;GM_setValue("needtosuicide",!1);if(0<Kd)h=!1,j(),alert("Your mobster died!!"),setTimeout(function(){e("You died, reloading page.");window.location.href=C},1E3);else if(A||G)h=!1,GM_setValue("stopotherheals",!0),za(),a=Math.floor(500*Math.random()*parseInt(ha)+450*Math.random()+Qa),GM_setValue("randomnumberx",
a+1),n("You died!!!  Reloading page to avoid further deaths!..."),setTimeout(function(){e("You died, reloading page.");window.location.href=C},5E3);0<idied2&&(e("Assassinated - need to be healed to try again- spawning a heal."),Ma(-1))}k("cur+9a");2!=Rb&&N&&(N=!1,GM_setValue("needtosuicide",!1));""!=str3&&0>str3.indexOf("no game news feed")&&(k("cur+9b"),$(".bountyDisplay",str3).each(function(){h=!1;e("HHH: detected bounty div!!!!")}),k("cur+9c"),0<m.innerHTML.indexOf("YOU WIN")&&$("img[title='Experience']",
str3).each(function(){var a=parseInt($(this).parent().next("TD").text());k("Have EXP!: "+a+"/winsnettingzero="+Vc+"/hashospital="+A+"needtosuicide="+N);0==a&&"true"!=N&&A&&(Vc++,e("checking newsfeed..."),5>p&&Cd());5<Vc&&G&&!N&&5>p&&(Vc=0,Nb(1));if(5<Vc&&(A||Ba||ya)&&0<p&&1<=Rb)Vc=0,2==Rb?(e("You have been listed, AND HAVE NOT died -- need to suicide...."),n('<span id="rigstat" style="font-size: small; background-color:#800000; color:yellow; "> HHH: You have been listed and HAVE NOT died...  Need to suicide.'),
N=!0,GM_setValue("needtosuicide",!0)):1==Rb&&(e("I think you have been listed (wins are netting you zero exp), STOPPING (by your choice)!!!...."),h=!1,GM_setValue("stopotherheals",!0),j(),alert("Your wins are netting you zero experience.  You may be on the hitlist!!!"),n('<span id="rigstat" style="font-size: small; background-color: #800000; color:yellow"> HHH: You have been listed STOPPING (by your choice)!!!'))}));0==ea%35&&0<ea&&0==p&&1<=Da&&"yes"==Dc&&A&&(e("trying reverse hit because canonlyheal="+
ea),n("HHH:Trying reverse hit because no incoming hits for some time..."),ea=0,GM_setValue("canonlyheal",ea),Db(3));k("cur+10");!bf&&!Ca&&fb&&!G&&!ya&&!Ba&&!yb&&5>p&&3!=p&&(e("I got a hit result but I didnt just hit!!"),h=!1,v&&clearTimeout(v),setTimeout(function(){e("reloading page after delay - just to be sure");window.location.href=Ga+va},5500+1E3*parseInt(ha)));if(fb||healresult)K=parseInt(GM_getValue("numactions",0))+1,Ab=parseInt(GM_getValue("levelactions",0))+1,GM_setValue("numactions",K),
GM_setValue("levelactions",Ab);!bf&&Ca&&healresult&&!G&&!ya&&(Ca=!1,GM_setValue("justhit",Ca));Ca&&fb&&(Ca=!1,GM_setValue("justhit",Ca));1<ea&&0<r&&2==K%25&&0==p&&(A||G)&&fc();Ib=ea%35;0==ea%35&&0<ea&&0==p&&1>Da&&"yes"==Dc&&A&&(ea=0,GM_setValue("canonlyheal",ea));k("cur+11");if((shouldistop=GM_getValue("stopotherheals"))&&(A||G))e("Stopping because I was directed to by global setting..."),h=!1;k("curX:cur_cash="+wa+"/autobankmin="+Sb+"/hashospital="+A+"/hitcount="+gb+"/healcount="+oa+"/autobank="+
Hb+"/hittohealratio="+p+"/numcycles="+ma);if(""!=wa&&h&&parseInt(wa)>parseInt(Sb)&&A&&0<ma&&(1==Hb&&(0==p||6==p)||1<Hb)||G&&h&&1<Hb&&parseInt(wa)>parseInt(Sb)&&6<ma&&!ya&&!ab&&!Ba&&!ba)e("Stopping instance, making deposit!"),h=!1,depvalue=parseInt(wa*(100-Rd)/100),e("cur_cash="+wa+"/depamt="+depvalue),setTimeout(function(){hd(depvalue)},500);k("cur+14");ud=hb-W;if(h&&0<r&&0<hb&&(W>hb||0>W)&&Vb&&vd&&lc&&0<W)v&&clearTimeout(v),e("Need to do boosts!"),h=!1,$("#mwstat2").html("Checking boosts!"),setTimeout(function(){d()},
1300);pa=new Date;Ud=pa.getTime();Vd=(parseInt(Ud)-parseInt(Td))/1E3;k("end of checkResultDiv="+Vd)}function Ua(){var a=ub();if(a)e("hitlist hunt - instance tripped"+I+"/"+ta),n(" HHH: hitlist hunt (duplicate instance).  Stopping for safety!!!<br>"),GM_setValue("randomnumberx",randomnumberx);else{re=!1;v&&clearTimeout(v);v=setTimeout(function(){e("timeout triggered-immediate reload. hitListHunt");window.location.href=Ga+va},6500+1E3*parseInt(ha));ta=GM_getValue("instancenum");a=!1;t<U&&h&&!N&&1==
Yd&&(e("need to heal...., set to max heal"),unsafeWindow.MobWars.Fight.doHeal());1<=Da&&h&&(a=!1,$(".player_name a").each(function(){se=$(this).text();var a=$(this);Ub=se;var b=$(this).attr("href");startpos=b.indexOf("?user_id=")+9;Pa=b.substr(startpos,30);qe=Tc=Sc=te="";$(a).parent().parent().find(".col2 .moneyval").each(function(){s=te=$(this).text();s=s.replace(/<[^>]*>/g,"");s=s.replace(/[,\t ]/g,"");s.match(/^\$./);s=s.replace(/\$/g,"");s=s.replace(/[a-z]/g,"");s=s.replace(/[A-Z]/g,"");Pa==D&&
(s=-1);k("1,s="+s);s2=""+(0+parseInt(s));k("2,s2="+s2);qe=s2;GM_setValue("thisbountyamount",s2)});$(a).parent().parent().find(".col2 .value a:first").each(function(){e("paid by found");Sc=$(this).text();var a=$(this).attr("href");startpos=a.indexOf("?user_id=")+9;Tc=a.substr(startpos,30)});$(a).parent().parent().find("div.mid:first").each(function(){Sc=$(this).text();Rc=$(this).attr("onClick");e("found button thisonclick="+Rc);Rc="unsafeWindow."+Rc});oktohit=!0;if(parseInt(s)>=0+parseInt(Zb))oktohit=
!1,thisform.value="toobig",e("Too Big..."+s+"/"+Zb);k("x32");if(parseInt(s)<=0+parseInt(Qd))oktohit=!1,thisform.value="tootiny",e("Too Small..."+s+"/"+Zb);k("min="+Qd+"/max="+Zb);for(o1=0;o1<Yb.length;o1++)if(Pa==Yb[o1])oktohit=!1,thisform.value="exempt",e("EXEMPT!...");if(Tc==D)oktohit=!1,thisform.value="ListedByMe!",e("Cant attack someone I listed...");if(Pa==D)oktohit=!1,thisform.value="NoSuicide!",e("Cant attack myself!...");e("Found bounty!  Name="+se+"/id="+Pa+"/bounty="+te+"/lister="+Sc+"/listerid="+
Tc+"/oktohit="+oktohit);oktohit&&t<O&&h&&unsafeWindow.MobWars.Fight.doHeal();oktohit&&t>=O&&h&&(e("Trying to hit user!"),eval(Rc),y(document))}));if((2==ma||2==ma%25)&&G&&!a&&h)fc(),h=!1;v&&clearTimeout(v);Ka=new Date;ue=Ka.getHours();ve=Ka.getMinutes();we=Ka.getSeconds();loopcounter=0;N&&(alert("You have been listed, but I don't have the ability to suicide you from within the hitlist page.  Stopping so you can decide what to do!"),N=!1,GM_setValue("needtosuicide",N));1<r&&(O=parseInt(U*Ya/100)+1);
if((t<O||t<Ac)&&h&&!N&&re&&0==Yd)e("need to heal...., stopping reload"),Ma(-11),h=!1;else if(h&&!re){if(30>qa&&Ue&&h){url="https://apps.facebook.com/mobwars/godfather/do.php?action=accept&reward=energy";e("trying to refill energy!!!");qa=cur_energy_max;var b=new XMLHttpRequest;b.open("GET",url,!1);setTimeout(function(){b.send(null)},200);setTimeout(function(){window.location.href="https://mobwars-prod-ssl.metamoki.com/hitlist/"},1E3);h=!1}gotrefresh=!1;ma>=L&&(GM_setValue("numcycles",0),e(Date().substr(0,
25)+"reloading... @"+L+" cycles"),h=!1,setTimeout(function(){e("# of cycles completed, reloading page.");window.location.href="https://mobwars-prod-ssl.metamoki.com/hitlist/"},700));ma=parseInt(GM_getValue("numcycles",0))+1;GM_setValue("numcycles",ma);(a=ub())?(e("hitlist hunt - instance tripped"+I+"/"+ta),n(" HHH: hitlist hunt (duplicate instance).  Stopping for safety!!!<br>"),GM_setValue("randomnumberx",randomnumberx)):(e(Date().substr(16,8)+"/"+I+"/"+ta+" Refreshing hitlistX: "+ma+"/"+jb),gotrefresh=
!0,Math.random(),parseInt(ha),Math.random(),4==ma%zc&&0<r&&!N?Nb(1):Ye())}}}function Ye(){P="https://mobwars-prod-ssl.metamoki.com/hitlist/";refparms="post_form_id=361bb9ab0de639083316d6ca8a480402&position=1";v&&clearTimeout(v);v=setTimeout(function(){e("timeout -reload. waiting for hitlist hitlistRefresh POST");window.location.href=C},29500);$.ajax({type:"POST",url:P,data:refparms+"&ajax_callback=mw_aj_2_r",dataType:"text xml",headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},
error:function(){n("HHH: Detected failure to respond on hitlist refresh request. (Network error)");lb&&clearTimeout(lb);h=!1;window.location.href=C},success:function(b){a(b)}})}function Ef(){k("here in finishResponse()"+searchthis.innerHTML);Oa=Oa.replace(/Ottimo!/g,"");Oa=Oa.replace(/Successo!/g,"");Oa=Oa.replace(/Eccellente!/g,"");Oa=Oa.replace(/Magnifico!/g,"");Oa=Oa.replace(/Skip/g,"");$("#mwstat2").html("Link# "+jc+":&nbsp;&nbsp;"+$a+"<br />"+Oa+"<br>");result1=Oa.indexOf("not a member");result2=
Oa.indexOf("must be friend");e("checking if in mob--\>"+result1+"/"+result2+"/"+sc+"/"+Oa);if(0<result1&&0>result2&&1==sc&&xe){pos1x=mylink.href.indexOf("user_id=")+8;pos2x=mylink.href.indexOf("&",pos1x);if(pos2x>=mylink.href.length)pos2x=mylink.href.length;xuserid=mylink.href.substring(pos1x,pos2x);addurl="https://apps.facebook.com/mobwars/mob/do.php?join_id="+xuserid+"&signed_request="+z;xuserid==Na&&e("HHH: Cannot add this user to your mob, it's your level partner!!");xuserid!=Na&&xuserid!=D&&
(e("HHH: Attempting to add this user to your mob!!  "+xuserid),GM_xmlhttpRequest({method:"GET",url:addurl,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},overrideMimeType:"text/plain; charset=x-user-defined",onload:function(a){da=document.createElement("div");da.innerHTML=a.responseText;kd&&e("got GM_xmlhttprequest response")}}));xe=!1;ic.push(mylink)}else xe=!0;0<ic.length&&0<=W?(e("Finished link - going to next one..."),0<=W?setTimeout(function(){i(ic)},1300):
i(ic)):(e("Done with list of links..."+W),0<=W?u():(setTimeout(function(){W=0},15E3),setTimeout(function(){$("#mwstat2").html("&nbsp;")},6E3)))}function cf(){var a=Wc.length,b=Wc.pop();e(a+"/popping postId="+b);e(Wc.length+"/adding ID "+b);setTimeout(function(){var a=0;$("#1_"+b+":first").each(function(){e("found without adding...");a++});e("placed....");$("#1_"+b+" .friendRow").each(function(){e("clicking it");unsafeWindow.FriendSelector.swapNames("1","2",b)});0<Wc.length?(e("calling next postid"),
cf()):(e("clicking GET HELP or SEND or RECRUIT button"),setTimeout(function(){$(".btn_blueModal:contains('HELP')").each(function(){e("Clicking GET HELP button.");cb(this)});$(".btn_blueModal:contains('SEND')").each(function(){e("Clicking SEND button.");cb(this)});$(".btn_blueModal:contains('RECRUIT')").each(function(){e("Clicking SEND button.");cb(this)})},1E3))},1E3)}function ye(a){e(I+"/"+vc+"/here in jobButtonParms!");df&&h&&setTimeout(function(){$('input[name="publish"][value="Share"]:first').each(function(a){var b=
$(this).text();e(a+"Found "+b);n("Clicked SHARE button!");cb(this)})},1E3);var b=!1,c=!1,d=!1,f=!1;B=GM_getValue("lastpage","");la=GM_getValue("myparms","");wd=!1;var g=!0;$("img[title*='do not meet this requirement']",a).add("img[title*='DO NOT Meet This Requ']",a).each(function(){g=!1});g&&$(".startRacketInputButton",a).each(function(){e("Clicking START RACKET - Because it's available");$(this).click();bb++;setTimeout(function(){e("clicked START RACKET button, reloading page.");window.location.href=
C},2E3)});lastpublish=GM_getValue("lastpublish",0);"yes"==mb&&setTimeout(function(){e(window.location.href+": checking for publish button...");$("input[name='publish']",a).each(function(a){e("XXX3/"+a);GM_setValue("lastpublish",ca);lastpublish=ca;bb++;e("Clicking PUBLISH button - Because it's available X1");setTimeout(function(){e("Reloading page after PUBLISH click...");window.location.href=C},7500);$(this).click()});$("input[value='Send Request']",a).add("input[value='Send Requests']",a).add("input[value='Send requests']",
a).each(function(){e("Clicking Send Request button - Because it's available X33");GM_setValue("lastrequest",ca-500);this.click()})},2E3);e("X11");"yes"==mb&&(ab||ba)&&lastpublish+12<ca&&setTimeout(function(){$("input[name='publish']",a).each(function(){GM_setValue("lastpublish",ca);lastpublish=ca;e("Clicking PUBLISH button - Because it's available X2");bb++;$(this).click();setTimeout(function(){e("Reloading page after PUBLISH click X2...");window.location.href=C},6500)})},2E4);xd=GM_getValue("lastrecruiter",
0);(1>$('img[src*="recruiter_small"]',a).length||xd+12<ca)&&$("[class='factMax']",a).each(function(){wd=!0});e("lastrecruiter="+xd+"/epoch="+ca+"/"+mb);xd+30<ca&&"yes"==mb&&setTimeout(function(){$('img[src*="recruiter_small"]',a).each(function(a){e("Found recruiter button..."+a);GM_setValue("lastrecruiter",ca);xd=ca;bb++;0==a&&(e("clicked recruiter button."),cb(this))})},1500);Wb=$(".formInputButton",a);rd=!1;for(J=0;J<Wb.length;J++){thisvar=Wb[J];var w="",i=!1;zb&&(i=!0);$('[id^="content"]:contains("reached the maximum allowable accepts")',
a).each(function(){i=!1});k("HHH: hasacceptboost="+zb+"/doenergyboosts="+Fb+"/thisvar.value="+thisvar.value+"/Boostavailable="+i);zb&&"yes"==Fb&&"Accept"==thisvar.value&&i?c||(e("clicked!"),bb++,cb(thisvar),b=c=!0):"yes"==Fb&&"yes"==Fb&&!c&&$(".mwFbInput",a).each(function(a){var c="";$(this).parent().parent().attr("action")&&(c=$(this).parent().parent().attr("action"));0<c.indexOf("send_energy_boosts")&&0==a&&(e("send energy boosts found!, clicking!"+c),$(this).click(),b=!0)});if(!zb&&"yes"==Fb&&
"Accept"==thisvar.value&&thisvar.parentNode){var j=thisvar.parentNode;if(0<j.id.indexOf("ost_accept_row"))xx=j.previousSibling.previousSibling,0>xx.textContent.indexOf("You must wait")&&(e("found energy boost...., going to get it"),""==B&&GM_setValue("lastpage",window.location.href),Mb=0,GM_setValue("lastrequest",0),bb++,setTimeout(function(){window.location.href="https://apps.facebook.com/mobwars/mob/accept_boost.php"},1300),h=!1)}if(sb||ba){if("Recruit Now"==thisvar.value&&($('[id^="time_job_clock_"]:contains(":59:5")',
a).each(function(){f=!0}),$('[id^="time_job_help_note_"]:contains("0 of 4 recruits")',a).each(function(){d=!0}),"yes"==rc&&(sb||ba)&&f&&d&&"yes"==mb))e("We need to do something with recruit button..."),bb++,setTimeout(function(){$(".formInputButton[value='Recruit Now']",a).each(function(){e("Clicking RECRUIT NOW button - Because it's available");$(this).click()})},2E3);if(null!=thisvar&&g&&"yes"==rc&&("Finish Job"==thisvar.value||"Try Again"==thisvar.value||"Start Job"==thisvar.value)){e("got Finish Job, Start Job or Try Again button!");
$(thisvar).fadeOut("slow").fadeIn("fast").fadeOut("slow").fadeIn("fast");bb++;if(j=thisvar.parentNode.previousSibling)for(loopvarx=0;45>loopvarx;loopvarx++)if(j.previousSibling)j=j.previousSibling,null!=j.name&&(w&&(w+="&"),w+=j.name+"="+j.value);else break;thisaction=j.parentNode.action;w&&(w+="&signed_request="+z,e("thisaction: "+thisaction),e("jobparms: "+w),GM_xmlhttpRequest({method:"POST",url:thisaction,data:w,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},
onload:function(a){searchthis=document.createElement("div");searchthis.innerHTML=a.responseText;e("responsetobutton="+searchthis.innerHTML);rd=!0;ua="";y(searchthis);goterror=!1;$(".mw_error",searchthis).each(function(){goterror=0<$(this).text().indexOf("wait a few")?!1:!0;e("got a mw_error/"+goterror)});goterror||setTimeout(function(){e("no mw_error, reloading page.");window.location.href=C},2500);rd=!1}}))}}}!0==wd&&(e("got factmax class tag -- can click something!"),b=!0,setTimeout(function(){$(".collectInputButton",
a).each(function(){K=parseInt(GM_getValue("numactions",0))+1;GM_setValue("numactions",K);e("COLLECT button ready, CLICKING IT!!");bb++;$(this).click();setTimeout(function(){e("clicked COLLECT button, reloading page.");window.location.href=C},500)})},3E3));Xc=GM_getValue("lastrecruit",0);if(Xc+300<ca&&"yes"==mb&&(A||G)&&"Newsfeed"==ua&&""==B&&3<postlist.length)e("looking for mwLinkButtons!"),$('.mwLinkButton:contains("Recruit")',a).each(function(a){if(0==a)e("Found Recruit link on NEWSFEED.., going to get it, lastpage="+
window.location.href),GM_setValue("lastpage",window.location.href),bb++,window.location.href="https://apps.facebook.com/mobwars/",h=!1});e("rn="+d+"/rn2="+f+"/agi="+c+"/ds="+b+"/pt="+mb);!c&&!b&&"yes"==mb&&0<Fa&&(e("lastrecruit="+Xc+"/epochseconds="+ca),Xc+30<ca&&sb&&3<postlist.length?(e("Looking for recruit buttons..."+Xc+"/"+ca),setTimeout(function(){$('.mwLinkButton:contains("Recruit")',a).each(function(a){k("Found recruit button...");0==a&&(GM_setValue("lastrecruit",ca),Xc=ca,bb++,e("clicked Mob Contracts 'Recruit' button."),
cb(this),setTimeout(function(){q()},6E3))})},2E3)):k("Already got a recruit this hour.  Waiting..."));w=GM_getValue("lastgethelp",0);e("lastgethelp="+w+"/epoch="+ca);w+35<ca&&"yes"==rc&&ba&&"yes"==mb&&"yes"!=hc&&(e("2Check for GET HELP buttons..."),w=ca,GM_setValue("lastgethelp",w),setTimeout(function(){$("input.getHelpBtn[value='Get Help']:last",a).each(function(){bb++;e("Clicking GET HELP button - Because I foundone available");setTimeout(function(){e("calling dialogPage();");q()},3200);this.click()})},
1200));setTimeout(function(){Mb+30<ca&&"DC"!=Va&&"Los Angeles"!=Va&&"Medellin"!=Va&&ba&&1>bb&&0>window.location.href.indexOf("loc=dc")&&0>window.location.href.indexOf("loc=los_")&&0>window.location.href.indexOf("loc=mede")&&(unsafeWindow.MobWars.UI.hide_dialog(),bb++,$(this),e("Clicking 'requests'.."),setTimeout(function(){unsafeWindow.MobWars.UI.show_dialog({render_url:"request_dialog",dialogID:"request_dialog"});GM_setValue("lastrequest",ca);Mb=ca;setTimeout(function(){hitHuntHeal()},9200)},100))},
3200);setTimeout(function(){V()},2E3);B=GM_getValue("lastpage","");setTimeout(function(){!c&&!b&&!wd&&h&&""!=B&&B!=window.location.href&&0>xc.indexOf(de)&&(!ab||ab&&!b)&&!sb&&"Newsfeed"!=ua&&!ya&&!Ba?(l(),setTimeout(function(){window.location.href=B},6E3)):(b||wd||c)&&h&&setTimeout(function(){window.location.href=C},1E3)},8E3)}function V(){var a=$("body").text().indexOf("POWER ATTACK"),b=window.location.href.indexOf("loc=dc"),c=window.location.href.indexOf("loc=los_"),d=window.location.href.indexOf("loc=medellin");
e("clicked city="+Va+"/urlhasdc="+b+"/haspowerattack="+a+"/cur_energy="+qa);ba&&("DC"==Va||"Los Angeles"==Va||"Medellin"==Va)&&0>b&&0>c&&0>d&&n("HHH: The URL you have loaded does not say show_loc=dc or show_loc=los_angeles or show_loc=medellin, so I will not do battle.  If you really want to do battle, double click the DC link down below in the game and I'll start it for you.");if(ba&&(0<b||0<c||0<d)){ba&&0>a&&("DC"==Va||"Los Angeles"==Va||"Medellin"==Va)&&200>=qa&&(0<b||0<c||0<d)&&n("HHH: You need more energy before you can continue...");
if(ba&&0>a&&("DC"==Va||"Los Angeles"==Va||"Medellin"==Va)&&200<qa&&(0<b||0<c||0<d))e("looking for max button: "+qa),setTimeout(function(){unsafeWindow.MobWars.UI.hide_dialog()},100),$('a:contains("MAX JOBS")').each(function(a){var b=$(this).attr("onClick");setTimeout(function(){var c="unsafeWindow."+b;e(a+"MAXBUTTON CHANGING TO MAX JOBS: "+c);eval(c)},100+100*a)}),setTimeout(function(){$("div.orangeBtn div.mid:contains('MAX')").each(function(a){var b=$(this);e("Found MAX JOB button..."+a);setTimeout(function(){var c=
"unsafeWindow."+$(b).attr("onClick");e(a+"MAXBUTTON ready to click"+c);eval(c)},5500+2E3*a);var c=$("div.orangeBtn div.mid:contains('MAX')").length,d=6E3+2E3*parseInt(c);a+1>=c&&setTimeout(function(){e("Reloading page to kill boss...");window.top.location.href=ze},d)})},1E3);if(ba&&0<a&&("DC"==Va||"Los Angeles"==Va||"Medellin"==Va)&&(0<b||0<c||0<d))e("Need to go kill the DC Boss!"),setTimeout(function(){Fd()},2E3)}}function Fd(){var a=!1;$('#city-boss-power-attack-countdown:contains("Ready Now")').each(function(){a=
!0});y(document);k("killDCBoss: cur_health="+t+"/minhealth="+O+"/powerready="+a);t<U&&h&&(e("Attempting CityBossBattle HEAL"),unsafeWindow.MobWars.Boss.doCityBossBattleHeal());0<$("body").text().indexOf("cannot do power")&&(a=!1);a=!1;if(h){var b=0;e("Looking for ATTACK BOSS button");$('div.txt:contains("ATTACK BOSS"):first').parents("div.mid").each(function(a){e("Found attack boss to click!!, get onclick!");var c=$(this),c="unsafeWindow."+$(c).attr("onClick");e(a+"ready to execute: "+c);eval(c);
b++;ef++;unsafeWindow.MobWars.UI.hide_dialog();setTimeout(function(){e("caling killDCBoss() again..");Fd()},1100);20<ef&&setTimeout(function(){unsafeWindow.MobWars.UI.hide_dialog();e("Reloading page to see next boss...>20");window.location=Hd},3E3)});0==b&&setTimeout(function(){unsafeWindow.MobWars.UI.hide_dialog();e("Reloading page to see next boss...Nonetohit/"+ze);window.location=Hd},3E3)}}function q(){e("dialogPage started...");Wc=postlist.split(",");didsomething=!0;setTimeout(function(){0<Wc.length&&
cf()},1E3)}function w(a){a=a.getElementsByClassName("bossBattleAttack");for(J=0;J<a.length;J++){thisvar=a[J];wc=la="";hasbossattack=thisvar.value.indexOf("ttack -");e("getBossParms(): hasbossattack="+hasbossattack);if(null!=thisvar&&0<thisvar.value.indexOf("ttack -")&&(x=thisvar))for(loopvarx=0;25>loopvarx;loopvarx++)if(x.previousSibling)if(x=x.previousSibling,x.name&&"action"!=x.name&&"userboss_id"!=x.name)la&&(la+="&"),la+=x.name+"="+x.value;else{if(x.name&&("action"==x.name||"userboss_id"==x.name))wc=
""==wc?wc+(x.name+"="+x.value):wc+("&"+x.name+"="+x.value)}else break;GM_setValue("myparms",la);GM_setValue("bossactionparm",wc);e("getBossParms():myparms="+la+"/bossactionparm"+wc)}}function Ra(a){e("checkhealth started.:"+h);ya&&100<=Z&&h?(h=!1,e("checkHealth - stopping, chaincount>100")):h&&(e("before post: reload="+h),P="https://mobwars-prod-ssl.metamoki.com/hospital/",GM_xmlhttpRequest({method:"POST",url:P,data:"ajax_callback=mw_aj_2_r&signed_request="+z,headers:{"Content-Type":"application/x-www-form-urlencoded",
Cookie:document.cookie},onerror:function(b){e("HHH: Post request for checkHealth failed with an error! s="+b.status+"/st="+b.statusText+"/sc="+b.statusCode+"/rs="+b.readyState+"/rh="+b.responseHeaders+"/rt="+b.responseText+"/fin="+b.finalUrl);n("HHH: Post request for checkHealth failed with an error! (Network error)");randomnumberx2=randomnumberx=0;za();R&&clearTimeout(R);9==a&&t<O&&h&&setTimeout(function(){Ma(9)},400);9==a&&t>O&&h&&setTimeout(function(){Ra(9)},400);5==a&&setTimeout(function(){La(document)},
600);e("result, cur="+t+"/min="+O);21==a&&t<O&&h?setTimeout(function(){Ma(21)},100):21==a&&h&&setTimeout(function(){Ra(21)},1E3)},onload:function(b){e("got response in checkHealth..."+a);searchthis=document.createElement("div");searchthis.innerHTML=b.responseText;ua="";e("pee:"+h);y(searchthis);e("wee:"+a+"/"+h);R&&clearTimeout(R);b=oa-1;A&&5>p&&n("Check:"+b+"  <span style='background-color: black; color: white;'><br/>Your current health is "+t+" of "+U+".</span><br />");t>=O&&h&&A?(Sa=0,GM_setValue("weakcount",
Sa),eb=GM_getValue("cycleswithoutheal",0)+1,GM_setValue("cycleswithoutheal",eb),k("increased cycleswithoutheal "+eb)):h&&(eb=0,GM_setValue("cycleswithoutheal",eb),e("reset cycleswithoutheal"+eb));9==a&&t<O&&h&&setTimeout(function(){Ma(9)},400);9==a&&t>O&&h&&setTimeout(function(){Ra(9)},400);-1==a&&vb(searchthis);5==a&&setTimeout(function(){La(document)},600);e("result, cur="+t+"/min="+O+"/returnval="+a+"/reload="+h);22==a&&h&&(e("Heal completed..."),na(Ta));21==a&&t<O&&h?setTimeout(function(){Ma(21)},
100):21==a&&h&&setTimeout(function(){Bc(21)},1E3)}}))}function ra(){e(vc+"doBossBattle() startedX."+yb+"/"+window.location.href);stopotherheals=GM_getValue("stopotherheals",!1);lb&&clearTimeout(lb);if(0<window.location.href.indexOf("battlearena")&&h&&!stopotherheals){K=parseInt(GM_getValue("numactions",0))+1;GM_setValue("numactions",K);$("#actionct").html("<a id='actionct' >[24hrAct:"+K+"]</a>");e("checking document...");y(document);var a=!1;e("binding click...");$(":submit").unbind("click");$(":submit").bind("click",
function(){setTimeout(function(){y(document);ra()},500)});e("button search BEGIN...");$('input[value^="Begin"]').each(function(){e("Clicking BEGIN button...");tmpvarx=this;a=!0;setTimeout(function(){$('input[value^="Begin"]').click()},1100)});a||$(':submit[value^="Close"]').each(function(){e("Clicking Close button...");tmpvarx=this;a=!0;setTimeout(function(){$(':submit[value^="Close"]').click()},1100)});e("button search HEAL...");!a&&t<O?(e("trying to click HEAL"),$(':submit[value^="Heal"]').each(function(){e("Clicking HEAL button...");
tmpvarx=this;a=!0;setTimeout(function(){$(':submit[value^="Heal"]').click()},400)})):!a&&t>=O?(e("trying to click ATTACK..."),$(".bossBattleAttack").each(function(){tmpvarx=$(this);a=!0;setTimeout(function(){e("Clicking attack button...");$(tmpvarx).click()},400)})):a||(e("got to end, nothing got clicked..."),h=!1,GM_setValue("stopotherheals",!0),setTimeout(function(){window.location.href=window.location.href},3200));lb=setTimeout(function(){h=!1;GM_setValue("stopotherheals",!0);var a="",a=window.location.href;
window.location=a},4500)}}function Ff(){Z=0;O=parseInt(U*Ya/100)+1;e(h+":chainsucker() here:  cur="+t+"/min="+O);h&&1<r&&setTimeout(function(){Bc(21)},2100)}function na(){var a=window.location.href.match(/(watch)/);if(a){Z++;if(Z>L&&ya||Z>L&&a)e("time to reload page, cycles > # cycles"),h=!1,Z=Z=0,setTimeout(function(){window.location.href=C},500);null==mc&&(mc=sa().id);if((alertArray=$("#sucker_content").html())&&0==alertArray.length)e("couldn't find a place on page to update, reloading X2"),h=!1,
za(),setTimeout(function(){window.location.href=C},2E3);e(I+"/"+Z+"/watchSucker() here, userid: "+mc+"/"+Ja+"/cur_health="+t);h&&1<r&&"list"==T&&setTimeout(function(){Dd(mc)},1);h&&1<r&&"rig"==T&&setTimeout(function(){Ae(mc)},1)}}function sa(){var a={};window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(b,c,e){a[c]=e});return a}function Bc(a){e("whackuser() here: reload="+h);mc=sa().id;$("#hhh_content").text("HHH Cycle:"+Z+"/100");P="https://mobwars-prod-ssl.metamoki.com/fight/do.php";
thisforce=ja;thisforce=sa().force;if(100<=Z)h=!1,za(),setTimeout(function(){window.location.href=C},500);else if(h)document.title="Chain: "+mc,ea=0,GM_setValue("canonlyheal",ea),Hc=t,Ca=!0,GM_setValue("justhit",Ca),v&&clearTimeout(v),v=setTimeout(function(){e("timeout triggered-immediate reload. whackUser");setTimeout(function(){window.location.href=Ga+va},500)},6E3),la=GM_getValue("myparms",""),parmcombined="signed_request="+z+"&alert_container=mw_aj_1_r&action=attack&force="+thisforce+"&target_id="+
mc+"&ajax_callback=mw_aj_2_r",O=parseInt(U*Ya/100)+1,e("whackuser here.. cur="+t+"/min="+O+"/reload="+h),h&&1<r?GM_xmlhttpRequest({method:"POST",url:P,data:parmcombined,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},onerror:function(a){e("HHH: Post request for whackuser failed with an error! s="+a.status+"/st="+a.statusText+"/sc="+a.statusCode+"/rs="+a.readyState+"/rh="+a.responseHeaders+"/rt="+a.responseText+"/fin="+a.finalUrl);n("HHH: Post request for whackuser failed with an error! (Network error)");
randomnumberx2=randomnumberx=0;za();lb&&clearTimeout(lb);h=!1;window.location.href=C},onload:function(b){e(I+"rt="+b.responseText);rt=b.responseText;for(k("rt="+rt);0<rt.indexOf("<img");){var c=rt.indexOf("<img"),d=rt.indexOf(">",c+1)+1;k("Removing img: Xpos1="+c+"/pos2="+d);rt=rt.substr(0,c)+rt.substr(d)}for(;0<rt.indexOf("<IMG");)c=rt.indexOf("<IMG"),d=rt.indexOf(">",c+1)+1,k("Removing img: pos1="+c+"/pos2="+d),rt=rt.substr(0,c)+rt.substr(d);k("rt(2)="+rt);m=document.createElement("div");m.innerHTML=
rt;rt=b.responseText;v&&clearTimeout(v);Ea=0;ua="";$("img",m).remove();y(m);Z++;b=parseInt(U*Ya/100);e(I+"whackuser got response..."+Z+"/"+a+"/"+h+"/cur_health="+t+"/minhealth="+O+"/chainminhealth="+b);h&&void 0===t?(e("checking health!"),Ra(21)):h&&parseInt(t)>=b?Bc(a):h&&parseInt(t)<parseInt(O)&&Ma(21)}}):h&&1<r&&h&&setTimeout(function(){Bc(a)},500)}function Gf(a){Ta=a;T=$("riglist").html();$("#hhh_content").text("HHH Cycle:"+Z+"/"+L);thisaction="";"both"==T&&(thisaction="rigList");"rig"==T&&(thisaction=
"rigOnly");"list"==T&&(thisaction="listOnly");document.title=thisaction+": "+a;e(I+"/"+Z+"/checkifrigged/wd="+Ja+"/started with id = "+a);("rig"==T||"false"==T)&&Ba&&h?Ae(Ta):(0>=Ja&&(Ja=100),P="https://mobwars-prod-ssl.metamoki.com/hitlist/add.php?from=profile&target_id="+a+"&ajax_callback=mw_aj_2_r?signed_request="+z,R=setTimeout(function(){e("checkifrigged timeout.   Reloading page...");h=!1;window.location.href=C},16500),h&&GM_xmlhttpRequest({method:"GET",url:P,headers:{"Content-Type":"application/x-www-form-urlencoded",
Cookie:document.cookie},onerror:function(a){e("HHH: Post request for checkifrigged failed with an error! s="+a.status);n("HHH: Post request to check if rigged failed with an error! (Network error)");R&&clearTimeout(R);window.location.href=C},onload:function(b){e("checkIfRigged ="+b.responseText);rt=b.responseText;for(k("rt="+rt);0<rt.indexOf("<img");){var c=rt.indexOf("<img"),d=rt.indexOf(">",c+1)+1;e("2Removing img: pos1="+c+"/pos2="+d);rt=rt.substr(0,c)+rt.substr(d)}for(;0<rt.indexOf("<IMG");)c=
rt.indexOf("<IMG"),d=rt.indexOf(">",c+1)+1,e("2Removing IMG: pos1="+c+"/pos2="+d),rt=rt.substr(0,c)+rt.substr(d);e("rt(2)="+rt);m=document.createElement("div");m.innerHTML=rt;rt=b.responseText;R&&clearTimeout(R);e("got here - before checking for user name...");$('h1:contains("Level")',m).each(function(){xxvar=$(this).text();xxvar=xxvar.replace(/\,.*$/,"");posx=xxvar.indexOf('"',2)-1;e(posx+"Found user name etc = "+xxvar);xxvar=xxvar.substr(1,posx);e("Found user name etc = "+xxvar);Ub=xxvar});ua="";
$("img",m).remove();y(m);var q=!1,f=!1;$('.announceTitle:contains("on the Hit")',m).each(function(){e("got ON HITLIST... ");n(Z+"/"+L+" HHH: "+Ub+" is On Hitlist!!!<br>")});onlinenow=!1;$('span:contains("online now")',m).each(function(){onlinenow=!0});$('.player_subtext:contains("is currently dead")',m).each(function(){e("got a currently dead... ");n(Z+"/"+L+" HHH: "+Ub+" is currently dead!!!<br>");q=!0});$('p:contains("your mob")',m).each(function(){e("got a your mob... "+$(this).text());n(Z+"/"+
L+" HHH: "+Ub+" is in your mob!!!<br>");f=!0});if(!f&&("both"==T||"rig"==T||"false"==T||"true"==T))e("got here - IN RIG CHECK... riglist="+T),$('.lowerMenuLink:contains("rig ignition")',m).each(function(){e("found rig link on user page, rigging id "+a);var b=Z+"/"+L+" HHH: Not rigged, attempting to rig ID # "+a+", "+Ub+"<br>";n(b);e(b);t<Bb?(e("Weak detected prior to trying to rig, spawning a heal."),Ma(-1),setTimeout(function(){ff(Ta)},1250)):ff(Ta)}),$('.lowerMenuLink:contains("Ignition Rigged")',
m).each(function(){var a=Z+"/"+L+" HHH: "+Ub+"'s ignition is already rigged, no action required <br>";n(a);e(a)});e("in checkIfRigged - riglist="+T+"/deadflag="+q+"/mobflag="+f+"/haswatch="+Ba+"/h2="+r);!q&&!f&&("both"==T||"list"==T||"true"==T||"maybe"==T)&&$('.lowerMenuLink:contains("add to hitlist")',m).each(function(){e("add to hitlist on user page, CAN LIST "+a);var b=Z+"/"+L+" HHH: Not listed, ",b="rig"==T||"false"==T?b+"but we havent been asked to list # ":b+"trying to list this sucker!  # ",
b=b+(a+", "+Ub+"<br>");n(b);if("both"==T||"list"==T||"true"==T||"maybe"==T)t<Bb?(e("Weak detected prior to trying to list, spawning a heal."),Ma(-3)):Dd(Ta)});Ba&&1<r&&(n("<br>"),tmpdelay=t<Bb?1500:0,setTimeout(function(){na()},Ja+101+tmpdelay))}}))}function n(a){kb();a='<span id="rigstat" style="font-size: small; background-color:#800000; color:yellow; ">'+a+"</span>";Ba||ya?$("#sucker_content").prepend(a):A||G||ba||sb?($("#hhhresult4").html($("#hhhresult3").html()),$("#hhhresult3").html($("#hhhresult2").html()),
$("#hhhresult2").html($("#hhhresult").html()),$("#hhhresult").html(a)):Yc?$("#hhhresult").html(a):$("body").prepend("<br>"+a)}function kb(){assignvar='<div id="hhhresult" style="text-align: left"><b /></div><div id="hhhresult2" style="text-align: left"><b /></div><div id="hhhresult3" style="text-align: left"><b /></div><div id="hhhresult4" style="text-align: left"><b /></div>';ttt=$("#hhhresult").length;$("#bodyhhh").length&&($("#hhhresult").remove(),$("#hhhresult2").remove(),$("#hhhresult3").remove(),
$("#hhhresult4").remove(),$("#hhhresult5").remove(),$("#bodyhhh").remove());if(!$("#hhhresult").length)ttt=$("#hhhresult").length,$("div#alert").prepend(assignvar);if(!$("#hhhresult").length)ttt=$("#hhhresult").length,$("hospitalText").before(assignvar);if(!$("#hhhresult").length)ttt=$("#hhhresult").length,$("div#content").prepend(assignvar);if(!$("#hhhresult").length)ttt=$("#hhhresult").length,$("#mw_aj_2_r").before(assignvar);if(!$("#hhhresult").length)ttt=$("#hhhresult").length,$("mw_aj_job").after(assignvar);
if(!$("#hhhresult").length)ttt=$("#hhhresult").length,$("body").prepend(assignvar+'<div id="bodyhhh" style="text-align: left"><b /></div>')}function Ae(a){P="https://mobwars-prod-ssl.metamoki.com/hitlist/do.php?signed_request="+z;Ta=a;actionparms="action=rig_ignition&from=profile&target_id="+a;la=GM_getValue("myparms","");parmcombined="signed_request="+z+"&"+actionparms+"&ajax_callback=mw_aj_2_r";e("calling rig with:"+P+"?"+parmcombined);GM_xmlhttpRequest({method:"POST",url:P,data:parmcombined,headers:{"Content-Type":"application/x-www-form-urlencoded",
Cookie:document.cookie},onload:function(a){rt=a.responseText;for(k("rt="+rt);0<rt.indexOf("<img");){var b=rt.indexOf("<img"),c=rt.indexOf(">",b+1)+1;e("3Removing img: pos1="+b+"/pos2="+c);rt=rt.substr(0,b)+rt.substr(c)}for(;0<rt.indexOf("<IMG");)b=rt.indexOf("<IMG"),c=rt.indexOf(">",b+1)+1,e("3Removing IMG: pos1="+b+"/pos2="+c),rt=rt.substr(0,b)+rt.substr(c);k("rt(2)="+rt);m=document.createElement("div");m.innerHTML=rt;rt=a.responseText;$("img",m).remove();K=parseInt(GM_getValue("numactions",0))+
1;GM_setValue("numactions",K);ua="";y(m);setTimeout(function(){Ae(Ta)},100)}})}function ff(a){Ta=a;P="https://mobwars-prod-ssl.metamoki.com/hitlist/do.php&signed_request="+z;actionparms="signed_request="+z+"&action=rig_ignition&from=profile&target_id="+a;parmcombined=actionparms+"&ajax_callback=mw_aj_2_r";e("tryToRigSomeone calling... url="+P+"/parm="+parmcombined);h&&GM_xmlhttpRequest({method:"POST",url:P,data:parmcombined,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},
onload:function(b){rt=b.responseText;for(k("rt="+rt);0<rt.indexOf("<img");){var c=rt.indexOf("<img"),d=rt.indexOf(">",c+1)+1;e("4Removing img: pos1="+c+"/pos2="+d);rt=rt.substr(0,c)+rt.substr(d)}for(;0<rt.indexOf("<IMG");)c=rt.indexOf("<IMG"),d=rt.indexOf(">",c+1)+1,e("4Removing IMG: pos1="+c+"/pos2="+d),rt=rt.substr(0,c)+rt.substr(d);k("rt(2)="+rt);m=document.createElement("div");m.innerHTML=rt;rt=b.responseText;$("img",m).remove();$('.formInputButton[value~="explosives to"]',m).each(function(){e("found RIG BUTTON, id "+
a);rigamt=$(this).attr("value");e("rigamt, 1="+rigamt);rigamt=rigamt.substring(rigamt.indexOf("$"),rigamt.length-1);e("rigamt, 2="+rigamt);rigamt=rigamt.replace(/[,\t\n \;\&\$]/g,"");e("rigamt, 3="+rigamt);thisparm="";$(this).siblings().each(function(a){xname=$(this).attr("name");xvalue=$(this).attr("value");""!=thisparm&&(thisparm+="&");0<xvalue.indexOf("?")&&(xvalue="'"+xvalue+"'");thisparm+=xname+"="+xvalue;e(a+"-Rig Button name:value "+xname+":"+xvalue)});$(this).parent().each(function(a){xaction=
$(this).attr("action");e(a+"-actionurl="+xaction)});e("finished thisparm="+thisparm);xaction="https://mobwars-prod-ssl.metamoki.com/"+xaction;parseInt(rigamt)<parseInt(xb)?(thisparm+="&signed_request="+z,n("HHH: Attempting to rig ignition!  Within our budget!!/"+xaction+"/"+thisparm),GM_xmlhttpRequest({method:"POST",url:xaction,data:thisparm+"&ajax_callback=mw_aj_2_r",headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},onload:function(a){rt=a.responseText;for(k("rt="+
rt);0<rt.indexOf("<img");){var b=rt.indexOf("<img"),c=rt.indexOf(">",b+1)+1;e("5Removing img: pos1="+b+"/pos2="+c);rt=rt.substr(0,b)+rt.substr(c)}for(;0<rt.indexOf("<IMG");)b=rt.indexOf("<IMG"),c=rt.indexOf(">",b+1)+1,e("5Removing IMG: pos1="+b+"/pos2="+c),rt=rt.substr(0,b)+rt.substr(c);k("rt(2)="+rt);m=document.createElement("div");m.innerHTML=rt;rt=a.responseText;$("img",m).remove();e("rig response="+rt)}})):n("HHH: Ignition rigging cost is OVER MY BUDGET!!")})}})}function Cd(a){n("Checking Newsfeed...<br/>");
e("a1");v&&clearTimeout(v);e("a2");P="https://mobwars-prod-ssl.metamoki.com/";K=parseInt(GM_getValue("numactions",0))+1;GM_setValue("numactions",K);e("a3");parmcombined="signed_request="+z+"&ajax_callback=mw_aj_2_r";e("a4");GM_xmlhttpRequest({method:"POST",url:P,data:parmcombined,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},onload:function(b){e("a5");m=document.createElement("div");m.innerHTML=b.responseText;e("checkNewsFeed reload="+h);ua="Newsfeed";1<=r&&h&&
Q&&ye(m);y(m);ua="";e("checkNewsFeed2 reload="+h);var c=[],d=!1,q=!1;e("x1");Be=0;$('.feedItem:contains("seconds"), .feedItem:contains("minutes"), .feedItem:contains("hour")',m).each(function(a){e("x2"+a);Be++;e(a+": this.text="+$(this).text());var b=this.textContent.indexOf("You died");0<b&&!q&&(d=!0,GM_setValue("needtosuicide",!1),N=!1,e("You died - found...."+a));b=this.textContent.indexOf("added you to the");0<b&&(q=!0,e("You have been listed..."+a));$(this).find("a").each(function(){var a=this.href.indexOf("user_id=")+
8,b=$(this).parent().text().indexOf("attacked by");$(this).parent().text().indexOf("punched in the face by");var d=$(this).parent().text().indexOf("added you to"),f=!1;if(8<a&&(0<b||0<b||0<d)){var g=this.href.substr(a,this.href.length);c.push(g);f=!0}f&&0<Rb&&$('.feedItem:contains("has added you to the") a[href~="profile"]',$(this).parent()).each(function(){q=!0;scrapvar=this.textContent;e("Hitlisted!!! Detected "+scrapvar+" listing you ID="+g);n('<span id="rigstat" style="font-size: small; background-color: #800000; color:yellow"> HHH: Hitlist detected.  '+
scrapvar+" listed you.  ID="+g+"</span>")})})});e("x3/7 listedflag="+q+"/died="+d);q&&d&&0<r&&(e("You have been listed, but you have died since so you are ok...."),N=!1,b='<span id="rigstat" style="font-size: small; background-color: #800000; color:yellow"> HHH: You have been listed but have died since...  Can keep going.');if(q&&!d&&(A||ya||Ba||G)&&0<r)2==Rb?(e("You have been listed, AND HAVE NOT died -- need to suicide...."),n('<span id="rigstat" style="font-size: small; background-color: #800000; color:yellow"> HHH: You have been listed and HAVE NOT died...  Need to suicide.'),
N=!0,GM_setValue("needtosuicide",!0)):1==Rb?(e("You have been listed AND HAVE NOT died, STOPPING (by your choice)!!!...."),h=!1,GM_setValue("stopotherheals",!0),alert("You have been listed AND HAVE NOT died, STOPPING (by your choice)!!!...."),n('<span id="rigstat" style="font-size: small; background-color: #800000; color:yellow"> HHH: You have been listed STOPPING (by your choice)!!!')):0==Rb&&n('<span id="rigstat" style="font-size: small; background-color: #800000; color:yellow"> HHH: Fyi you have been listed but youve asked me to do nothing about it..');
var f=c.sort();e("checkNewsFeed3 reload="+h);dupflag=!1;dupitem="";for(var g=0;g<f.length-2;g+=1){dupitem!=f[g]&&(dupflag=!1);for(o1=0;o1<Nc.length;o1++)f[g]==Nc[o1]&&(dupflag=!0);ld&&0<nb&&(nb=-nb);b=nb;0<=nb?(tmplist=0,b=nb,T="rig"):0>nb&&(b=-nb,T="both");f[g+(b-1)]==f[g]&&!dupflag&&f[g]!=Na&&1<r&&0!=nb?(dupflag=!0,dupitem=f[g],e("We have "+nb+" in a row, checking rig status!: "+f[g]+"!="+Na),setTimeout(function(){Gf(f[g])},Ja+100)):f[g+2]==f[g]&&!dupflag&&f[g]!=Na&&1==r&&$("#hhhresult").html('<span id="rigstat" style="font-size: medium; background-color: #800000; color:yellow">HHH: Suspicious newsfeed activity detected!!! Check your newsfeed!</span>')}e("done with search through items"+
Be);1==a&&(e("calling checkNewsAndCities(2); reload="+h),h=!0,Nb(2));2==a&&(e("returning to battle/suicide; reload="+h),h=!0,La(document));3==a&&(e("returning to battle/suicide; reload="+h),h=!0,Gc(invar));4==a&&(e("returning to battle/suicide; reload="+h),h=!0,X(5))}});e("checkNewsFeed5 reload="+h)}function Hf(a){e("here checkCityJob!");n("Checking checkCityJob (for Energy Boost)...<br/>");v&&clearTimeout(v);P="https://mobwars-prod-ssl.metamoki.com/jobs/?show_loc="+Ce;K=parseInt(GM_getValue("numactions",
0))+1;GM_setValue("numactions",K);parmcombined="signed_request="+z+"&ajax_callback=mw_aj_2_r";GM_xmlhttpRequest({method:"POST",url:P,data:parmcombined,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},onload:function(b){m=document.createElement("div");m.innerHTML=b.responseText;k("checkCityJob reload="+h);ua="";y(m);e("checkCityJob reload="+h);1<=r&&h&&Q&&ye(m);6==a&&Nb(7)}});e("checkCityJob done reload="+h)}function gf(a){kb();e("here in getAddToHitlistParms");bountyamt=
0;var b="";$("input",a).each(function(){thisname=$(this).attr("name");thisvalue=$(this).attr("value");"bounty"==thisname&&(bountyamt=0+parseInt(thisvalue));b&&(b+="&");b+=thisname+"="+thisvalue;e("HITLISTPARM: thisname="+thisname+"/thisvalue"+thisvalue)});e("passdoc="+a.innerHTML);e("listparms set to: "+b);P="https://mobwars-prod-ssl.metamoki.com/hitlist/do.php?signed_request="+z;parseInt(bountyamt)>parseInt(xb)?(logtext="HHH: Cost to list this user over your set limit !!!<br />",n(logtext),e("HHH: Cost to list this user over your set limit"),
Qa=2E3):(logtext="HHH: Trying to list.<br />",n(logtext),e("HHH: Listing cost is under budget APPROVED"),R=setTimeout(function(){e("getAddToHitlistParms timeout.   Reloading page...");h=!1;window.location.href=C},16500),b+="&signed_request="+z,GM_xmlhttpRequest({method:"POST",url:P,data:b+"&ajax_callback=mw_aj_2_r",headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},onerror:function(a){e("HHH: Post request for getAddToHitlistParms failed with an error! s="+a.status);
n("HHH: Post request for getting hitlist parameters failed with an error! (Network error)");R&&clearTimeout(R);window.location.href=window.location.href},onload:function(b){e("getHitlistParmsHITLISTresp="+b.responseText);rt=b.responseText;for(k("rt="+rt);0<rt.indexOf("<img");){var c=rt.indexOf("<img"),d=rt.indexOf(">",c+1)+1;k("Removing img: Xpos1="+c+"/pos2="+d);rt=rt.substr(0,c)+rt.substr(d)}for(;0<rt.indexOf("<IMG");)c=rt.indexOf("<IMG"),d=rt.indexOf(">",c+1)+1,k("Removing img: pos1="+c+"/pos2="+
d),rt=rt.substr(0,c)+rt.substr(d);k("rt(2)="+rt);m=document.createElement("div");m.innerHTML=b.rt;ua="";R&&clearTimeout(R);y(m);thisid="mw_aj_2_r";xresult=ib(thisid,rt);n(xresult+"<br/>");(0<xresult.indexOf("in the hospital or dead")||0<xresult.indexOf("were assass"))&&h&&Ma(-1);0<xresult.indexOf("already on the hitlist")?na():0<=Ja?setTimeout(function(){na()},Ja+100):setTimeout(function(){gf(a)},200)}}))}function e(a){!0==kd&&GM_log(a)}function k(a){!0==If&&GM_log(a)}function Zd(){e("bookmark Button clicked... Clearing LASTPAGE");
B="";GM_setValue("lastpage","");window.location.href=C;var a=document.getElementById("bkmarkbtn");a&&(a.removeEventListener("click",Zd,!0),a.addEventListener("click",Zd,!0))}function De(){GM_setValue("lastboost",0);Ee=0;e("clearBoost, reloading page.");window.location.href=C}function fe(){v&&clearTimeout(v);k("3a");k("3b");e("autolist="+ld);oldmyparms=GM_getValue("myparms","");(0==r||1==r)&&Ra(-1);cfgstring='<FORM id="cfgform" action="https://hithuntheal.com/cfg79k.php" target="_blank";  method="post">';
cfgstring+='<input type="hidden" name="myuserid" value="'+D+'"><input type="hidden" name="minbountyamt" value="'+Qd+'"><input type="hidden" name="maxbountyamt" value="'+Zb+'"><input type="hidden" name="numhits" value="'+Ld+'"><input type="hidden" name="inmobaction" value="'+qc+'"><input type="hidden" name="numhealandhits" value="'+oe+'"><input type="hidden" name="playsound" value="'+pe+'"><input type="hidden" name="stopifidie" value="'+Kd+'"><input type="hidden" name="hhhpasswd" value="'+dc+'"><input type="hidden" name="hittohealratio" value="'+
p+'"><input type="hidden" name="hospcycles" value="'+L+'"><input type="hidden" name="postlist" value="'+postlist+'"><input type="hidden" name="checkcycles" value="'+zc+'"><input type="hidden" name="levelingswitchtoprofile" value="'+Rb+'"><input type="hidden" name="myparms" value="'+oldmyparms+'"><input type="hidden" name="stoplevel" value="'+gd+'"><input type="hidden" name="watchdelay" value="'+Ja+'"><input type="hidden" name="bigcaptcha" value="'+Xe+'"><input type="hidden" name="autobank" value="'+
Hb+'"><input type="hidden" name="keepcash" value="'+Rd+'"><input type="hidden" name="autobankmin" value="'+Sb+'"><input type="hidden" name="autohealth" value="'+ne+'"><input type="hidden" name="checkcity" value="'+Ce+'"><input type="hidden" name="healthpcthit" value="'+Y+'"><input type="hidden" name="healthpctheal" value="'+Cb+'"><input type="hidden" name="healthpctwar" value="'+Ya+'"><input type="hidden" name="publishthings" value="'+mb+'"><input type="hidden" name="acceptandsend" value="'+Lc+'"><input type="hidden" name="acceptonly" value="'+
hc+'"><input type="hidden" name="minhealth" value="'+O+'"><input type="hidden" name="curhealthmax" value="'+U+'"><input type="hidden" name="hitlistheal" value="'+Yd+'"><input type="hidden" name="checkdubai" value="'+nd+'"><input type="hidden" name="checklondon" value="'+Pd+'"><input type="hidden" name="checkmoscow" value="'+pd+'"><input type="hidden" name="checkshanghai" value="'+od+'"><input type="hidden" name="detectduplicates" value="'+Mc+'"><input type="hidden" name="forcehit" value="'+ja+'"><input type="hidden" name="hhhbonus" value="'+
hb+'"><input type="hidden" name="filterbonus" value="'+Gb+'"><input type="hidden" name="numactions" value="'+K+'"><input type="hidden" name="epochseconds" value="'+ca+'"><input type="hidden" name="hhhblock" value="'+Dc+'"><input type="hidden" name="exemptbounty" value="'+Qb+'"><input type="hidden" name="exemptenforcer" value="'+Nd+'"><input type="hidden" name="exemptcount" value="'+gc+'"><input type="hidden" name="exemptrig" value="'+me+'"><input type="hidden" name="autorig" value="'+nb+'"><input type="hidden" name="autoriglimit" value="'+
xb+'"><input type="hidden" name="enemylist" value="'+Ia+'"><input type="hidden" name="enemy1" value="'+Jf+'"><input type="hidden" name="enemy2" value="'+Kf+'"><input type="hidden" name="enemy3" value="'+Lf+'"><input type="hidden" name="enemy4" value="'+Mf+'"><input type="hidden" name="enemy5" value="'+Nf+'"><input type="hidden" name="autolist" value="'+ld+'"><input type="hidden" name="startjobs" value="'+rc+'"><input type="hidden" name="hhhspeed" value="'+ha+'"><input type="hidden" name="hhhthrottle" value="'+
Ob+'"><input type="hidden" name="joinmob" value="'+sc+'"><input type="hidden" name="autorefill" value="'+wb+'"><input type="hidden" name="doenergyboosts" value="'+Fb+'"><input type="hidden" name="leveluser" value="'+Na+'"><input type="hidden" name="burnenergy" value="'+fa+'"><input type="hidden" name="burnenergylimit" value="'+id+'"><input type="hidden" name="keepenergylimit" value="'+Xb+'"><input type="hidden" name="increasehealth" value="'+Of+'"><input type="hidden" name="increaseenergy" value="'+
Pf+'"><input type="hidden" name="increasestamina" value="'+Qf+'"><input type="hidden" name="increaseattack" value="'+Rf+'"><input type="hidden" name="increasedefense" value="'+Sf+'"><input type="hidden" name="currentlevel" value="'+ga+'"><input type="hidden" name="hhhv" value="'+hhhversion+'">';cfgstring+="</FORM>";e("configstring="+cfgstring);$("#cfgform").remove();document.body.innerHTML+=cfgstring;document.getElementById("cfgsubmit");$("#cfgsubmit").unbind("click");$("#cfgsubmit").bind("click",
function(){fe()});document.getElementById("cfgform").submit()}function cd(){var a=parseInt(Ka.getTime()/1E3)+600;GM_setValue("lastrequest",a);e("reset reload on requests page...");window.location.href=window.location.href}function ke(){Fa=parseInt(GM_getValue("hhhstatus",2));var a,b;k("getStatus started. - gs:hhhstatus="+Fa);pageinstance=$("#instancenum").text();I!=pageinstance&&0<pageinstance.length&&(e("Detected instance on page that differs from instance I am..."+pageinstance+"/"+I),h=!1);if(2<
(""+Fa).length&&"Not Detected"!=D&&"NaN"!=D&&""!=D){for(loopvar=testsum=0;loopvar<(""+Fa).length;loopvar++)testsum+=parseInt((""+Fa).substr(loopvar,1));checkvar=testsum%10;r=(""+Fa).substr(2,1);a=(""+Fa).substr(3,4);b=parseInt(a,10);statprefix=(""+Fa).substr(0,2);for(loopvar=testsum2=0;loopvar<(""+D).length;loopvar++)testsum2+=parseInt((""+D).substr(loopvar,1));testmod2=testsum2%100;k("getstatus-2,hhhsv="+r+"/hhhs="+Fa+"/checkvar="+checkvar);k("statprefix="+statprefix+"/testmod2="+testmod2+"/checkvar="+
checkvar);if(testmod2!=statprefix||0!=checkvar&&0<parseInt(Fa)&&0<parseInt(r))n("HHH: Your subscription may have expired or there may be corrupt data in your configuration.  <br />If this message keeps repeating, please contact neo by emailing hithuntheal@yahoo.com."),M(),h=!1,e("_1a"),GM_setValue("myuserid",""),e("_2a"),GM_setValue("hhhstatus",""),setTimeout(function(){e(testmod2+"/"+statprefix+"/reloading page because invalid status -> testmod2!=statprefix or checkvar!=0 ");window.location.href=
C},2E3)}else"Not Detected"==D?r=1:0>parseInt(Fa)&&(h=!1,n("It looks like your subscription may have expired.  Please check configuration page."),M());0<=r&&0>parseInt(Zb)&&(Zb="999999999999",GM_setValue("maxbountyamt",Zb),ha=0,GM_setValue("hhhspeed",ha));k("getstatus-3,hhhsv="+r+"/hhhs="+Fa);b<hf-1&&(M(),h=!1,r=-1,GM_setValue("hhhstatus",-1),e("3, hhhsv="+r+"/hhhs="+Fa),0>window.location.href.indexOf("www.facebook")&&setTimeout(function(){e(b+"/"+hf+"/33reloading page because we think subscription has expired!");
window.location.href=C},2E3));k("getstatus-ENDED 4,hhhsv="+r+"/hhhs="+Fa)}function Df(a){x=(a+"").split(".");x1=x[0];x2=1<x.length?"."+x[1]:"";for(a=/(\d+)(\d{3})/;a.test(x1);)x1=x1.replace(a,"$1,$2");return x1+x2}function jf(a){a-=1;e("here in updateTimerMinutes: "+a);kb();$("#reloadspan").html("<span id='reloadspan' style='font-size: small; background-color:#800000; color:yellow;'>HHH:  Reloading this page in <span id='timerminutes'>"+a+"</span> minutes...</span>");0<a?window.setTimeout(function(){jf(a)},
6E4):setTimeout(function(){e("Reloading page after timer reached 0");GM_setValue("lastrequest",0);Mb=0;C=window.location.href;window.location.href=C},1500)}function Nb(a){k("checkdubai="+nd+"checkshanghai="+od+"/checkmoscow="+pd);1==a&&(0!=nb||N||"yes"==mb&&(A||G)?(e("checking Newsfeed..."),Cd(1),e("Done with checknewsfeed, but not in callback"+h)):a=2);2==a&&("yes"==nd?(e("checking Dubai page..."+h),$d("dubai")):a=3);3==a&&("yes"==od?$d("shanghai"):a=4);4==a&&("yes"==pd?$d("moscow"):a=5);5==a&&("yes"==
Pd?$d("london"):a=6);6==a&&("yes"==Fb?Hf(6):a=7);if(7==a)if(K=GM_getValue("numactions",0)+1,GM_setValue("numactions",K),G&&!Jb)e("done checking cities on hitlist, returning to hunting"),Ua();else if(1>=p||4==p)e("restarting hospital after checkNewsandCities"),GM_setValue("stopotherheals",!1),La(document.body)}function $d(a){e("checkCityPage checking "+a+"/reload="+h);n("HHH: Checking City/Racket: "+a+"<br />");var b=P="https://mobwars-prod-ssl.metamoki.com/city/?show_loc="+a;R=setTimeout(function(){e("checking city timed out.   Reloading page...");
h=!1;window.location.href=C},16500);la=GM_getValue("myparms","");GM_xmlhttpRequest({method:"POST",url:P,data:"ajax_callback=mw_aj_2_r&signed_request="+z,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},onload:function(c){e("response in "+a+"page, parsing/"+h);R&&clearTimeout(R);searchthis=document.createElement("div");searchthis.innerHTML=c.responseText;var d=!1;$(".startRacketInputButton",searchthis).each(function(){d=!0;e(a+" has START RACKET..")});$("b[class='factMax']",
searchthis).each(function(){d=!0;e(a+" has CLAIM RACKET..")});B=GM_getValue("lastpage","");d&&""==B&&!ab&&!ba?(v&&clearTimeout(v),GM_setValue("lastpage",window.location.href),e("Going to city page-setting lastpage..."+B+"/reload="+h),GM_setValue("stopotherheals",!0),h=!1,setTimeout(function(){window.location.href=b},500)):"dubai"==a?Nb(3):"shanghai"==a?Nb(4):"moscow"==a?Nb(5):"london"==a&&Nb(6)}})}function Md(){k("here updating statusbar");document.getElementById("cfgsubmit");Vb=window.location.href.match(/(facebook.com)/);
Vb=""!=Vb?!0:!1;Vb||(e("Stopping script, URL no longer contains FACEBOOK"),h=!1);var a=document.getElementById("trynow");a&&(a.removeEventListener("click",De,!0),a.addEventListener("click",De,!0));if(a=document.getElementById("bkmarkbtn"))a.removeEventListener("click",Zd,!0),a.addEventListener("click",Zd,!0);var b=new Date,a=b.getHours(),c=b.getMinutes(),b=b.getSeconds(),a=parseInt(b+60*c+3600*a);uc=parseInt(GM_getValue("segslastlevel",-1));elapsegs=a-uc;statusvar=Fe;0<kf&&(statusvar=statusvar+" [Captchacount:"+
kf+"]");$("span3").html(statusvar);Aa=GM_getValue("lastlevmsg","");$("#lastlevmsg")&&$("#lastlevmsg:first").text(Aa);0<L&&A&&(a=" ",0==p||6==p?a+=" Healing":(a+=' Hitting: <a href="https://apps.facebook.com/mobwars/profile/?user_id='+Na+'" target="_blank";>'+Na+"</a> ",a+="/F"+ja),$("#increasestuff").html(a));if(!ya){k("checkptb1a");0<$(".cur_balance").length&&(ec=$(".cur_balance:first").text(),k("cur_balance="+ec),GM_setValue("cur_balance",ec));k("checkptb1b");0<$(".cur_attack").length&&(tc=0+parseInt($(".cur_attack:first").text()),
k("cur_attack="+tc),GM_setValue("cur_attack",tc));k("checkptb2a");0<$(".cur_attack").length&&(tc=0+parseInt($(".cur_attack:first").text()),e("cur_attack="+tc),GM_setValue("cur_attack",tc));k("checkptb2b");0<$(".cur_cash_tip").length&&(cur_cash_text=$(".cur_cash:first").text(),k("2,cur_cash='"+wa+"'"),wa=""+(0+parseInt(cur_cash_text.replace(/[,\t\n \;\&\$]/g,""))),GM_setValue("cur_cash",wa),$(".cur_cash:first").text(cur_cash_text).css("font-size","12px"));k("checkptb3");0<$(".cur_health").length&&
(t=0+parseInt($(".cur_health:first").text()),k("t2,cur_health="+t),GM_setValue("cur_health",t),$(".cur_health:first").text(t).css("font-size","14px"));0==t&&(GM_setValue("needtosuicide",!1),N=!1);k("checkptb4");0<$(".cur_health_max_upgrade").length&&(U=0+parseInt($(".cur_health_max_upgrade:first").text()),k("1cur_health_max="+U),GM_setValue("cur_health_max",U));0<$(".cur_health_max").length&&(U=0+parseInt($(".cur_health_max:first").text()),k("2cur_health_max="+U),GM_setValue("cur_health_max",U));
k("checkptb5");0<$(".cur_energy").length&&(qa=0+parseInt($(".cur_energy:first").text()),k("cur_energy="+qa),GM_setValue("cur_energy",qa));k("checkptb6");0==qa&&(GM_setValue("needtosuicide",!1),N=!1);0<$(".cur_energy_max").length&&(cur_energy_max=0+parseInt($(".cur_energy_max:first").text()),GM_setValue("cur_energy_max",cur_energy_max),k("cur_energy_max="+cur_energy_max));k("checkptb7");0<$(".cur_defense").length&&($b=0+parseInt($(".cur_defense:first").text()),GM_setValue("cur_defense",$b),k("cur_defense="+
$b));k("checkptb7a");0<$(".cur_defense").length&&($b=0+parseInt($(".cur_defense:first").text()),GM_setValue("cur_defense",$b),k("cur_defense="+$b));k("checkptb7b");0<$(".cur_recovery").length&&(g=$(".cur_recovery:first").text(),Da=0+g,k("cur_recovery="+Da+"/ab="+g),GM_setValue("cur_recovery",Da));k("checkptb8");var d=!1;$(".hud_level:first").each(function(){var a=$(this).text(),a=0+parseInt(a.replace(/[^\d.]/g,""));isNaN(a)||(k("6Found hud/cur_level="+a),ga=0+parseInt(a),GM_setValue("lastlevel",ga),
d=!0)});d||$(".cur_level:first").each(function(){var a=$(this).text(),a=0+parseInt(a.replace(/[^\d.]/g,""));isNaN(a)||(k("7Found cur_level="+a),ga=0+parseInt(a),GM_setValue("lastlevel",ga))});k("checkptb9");0<$(".cur_recovery_max_upgrade").length&&(Za=0+parseInt($(".cur_recovery_max_upgrade:first").text()),GM_setValue("cur_recovery_max",Za),k("cur_recovery_max="+Za));0<$(".cur_recovery_max").length&&(Za=0+parseInt($(".cur_recovery_max:first").text()),GM_setValue("cur_recovery_max",Za),k("cur_recovery_max="+
Za));k("checkptb10");0<$(".cur_recovery_max_upgrade").length&&(Za=0+parseInt($(".cur_recovery_max_upgrade:first").text()),GM_setValue("cur_recovery_max",Za),k("cur_recovery_max="+Za));0<$(".cur_recovery_max").length&&(Za=0+parseInt($(".cur_recovery_max:first").text()),GM_setValue("cur_recovery_max",Za),k("cur_recovery_max="+Za));k("checkptb11");$(".experienceDivInnerText");$(".experienceDivInnerText").each(function(a){J=a;str=$(this).html();str=str.replace(/<[^>]*>/g,"");str=str.replace(/[,\t\n \;\&\$]/g,
"");str=str.replace(/(nbsp)/g,"");str=str.replace(/(\(UseSkillPoints\!\))/g,"");str=str.replace(/(\(UpgradeYourBoss\!\))/g,"");str.match(/^(Exp:)(\S+)\/(\S+)\b/);var a=0+parseInt(RegExp.$3),b=0+parseInt(RegExp.$2);GM_setValue("lastexp",b);GM_setValue("levelceiling",a);lastexp1=GM_getValue("lastexp",-1)});k("checkptb12");k("checkptb13");a='<span id="mwstat2" style="font-size: medium;  background-color: black; color:yellow"><a id="actionct">[24hrAct:'+K+"]</a>";a+='&nbsp;<span id="killedmsg"></span>&nbsp;<span id="reloadfield"></span>';
A&&(a=0<p?a+("[Win:"+Eb+"]&nbsp[Loss:"+Pb+"]"):a+("[Heal:"+oa+"/"+L+"]"),a+="[Bank:"+ec+"]",c=Id(db),a+="[HealCost:"+c+"]&nbsp;&nbsp; &nbsp;");k("checkptb14");$("#spanwins").html(a+"</span>");(a=document.getElementById("actionct"))&&a.addEventListener("click",Kc,!0);if(A)document.title=0==p||6==p?"Hospital: Healing":"Hospital: Hitting";G&&$("#killedmsg").text(Wd);k("checkptb15")}}function Tf(){"https://hithuntheal.com/test.php"==window.location.href&&postTest();if(0<window.location.href.indexOf("www.facebook.com")&&
0>window.location.href.indexOf("sk=cg")||0<window.location.href.indexOf("99.198.122.90:"))D="";0==r&&(Zc="-");1==r&&(Zc="+");2==r&&(Zc="*");3==r&&(Zc="^");"?"==Zc&&M();if(0<$("#homebutton").length&&!Uf)e(vc+"/Duplicate toolbar called, not stopping, but updating instance..."),I=GM_getValue("instancenum",0)+1,GM_setValue("instancenum",I),$("#instancenum").text(I);else{if(3<D.length){e(vc+"/Creating toolbar.../"+window.location.href);var a=document.createElement("span");a.id="statlist";a.className="dynamicSpan";
newsection="";0<window.location.href.indexOf("www.facebook.com/home.php")&&(newsection+="<br /><br />");newsection+='<div id="statlist" style="margin: 0 auto 0 auto; border-bottom: 1px solid #ff0000; border-top: 1px solid #ff0000; border-left: 1px solid #ff0000; border-right: 1px solid #ff0000; margin-bottom: 1px; font-size: medium; background-color: black; color: yellow;"><p style="margin: 1px 0 1px 0;"> <span id="specialsize1" style="font-size:small">';a=new Date;a.getMonth();a.getDate();newsection+=
'<a href="https://hithuntheal.com"><img alt="" title="" src="'+logopic+'" height="14" width="32" style="border-style: none"/></a>';newsection+=hhhversion+Zc+"  ";newsection+='<style type="text/css" rel="stylesheet">#homebutton { border-color: red; background-color: #800000; color: yellow; padding: 1px; font-size: xx-small; }margin-bottom: 3px; </style> <input type="button" id="homebutton" value="MwHome" onClick="window.open(\'https://apps.facebook.com/mobwars/\', \'_blank\')">';newsection+='<style type="text/css" rel="stylesheet">#hospbutton { border: solid 2px; border-color: #FFFFFF; background-color: #0C479D; color: white; padding: 1px; font-size: xx-small; }margin-bottom: 3px; </style> <input type="button" id="hospbutton" value="Hospital" onClick="window.open(\'https://apps.facebook.com/mobwars/hospital/\', \'_blank\')">';
if(dd&&(y(document),e("hereGODFATHER cur_recovery="+Da+"/forcehit="+ja+"/hhr="+p+"/hhv="+r),Da<ja&&(0<p||0<oe||0<Ld)&&"no"==wb))e("out of stamina, stopping..."),j(),$("body").animate({backgroundColor:"blue"},1E3),h=!1,document.title="OUT OF STAMINA.   GET SOME MORE!!!";htelapsedsegs=parseInt(Pc)-parseInt(uc);newsection+=' <span class="dynamicSpan" tagname="increasestuff" id="increasestuff"> </span> ';if(Aa&&(A||G))gotheader=document.getElementById("headerLinks");newsection+='<style type="text/css" rel="stylesheet">#helpbutton { border-color: red; background-color: #800000; color: yellow; padding: 1px; font-size: xx-small; }margin-bottom: 3px; </style> <input type="button" id="helpbutton" value="Jobs" onClick="window.open(\'https://apps.facebook.com/mobwars/jobs/\', \'_blank\')"/>';
newsection+='<style type="text/css" rel="stylesheet">#hitbutton { border: solid 2px; border-color: #800000; background-color: #EEEE70; color: #800000; padding: 1px; font-size: xx-small; }margin-bottom: 3px; </style> <input type="button" id="hitbutton" value="Hitlist" onClick="window.open(\'https://apps.facebook.com/mobwars/hitlist/\', \'_blank\')">';newsection+='<style type="text/css" rel="stylesheet">#helpbutton { border-color: red; background-color: #800000; color: yellow; padding: 1px; font-size: xx-small; }margin-bottom: 3px; </style> <input type="button" id="helpbutton" value="Chat" onClick="window.open(\'https://hithuntheal.com/chat\', \'_blank\')"/>';
newsection=newsection+'<style type="text/css" rel="stylesheet">#cfgsubmit { border-color: red; background-color: #800000; color: yellow; padding: 1px; font-size: xx-small; }margin-bottom: 3px; </style> <INPUT id="cfgsubmit" type="submit" onclick=""  value="Config '+D+'"/> ';newsection+='<style type="text/css" rel="stylesheet">#hissubmit { border-color: red; background-color: #800000; color: yellow; padding: 1px; font-size: xx-small; }margin-bottom: 3px; </style> <INPUT id="hissubmit" type="submit" onclick="historyButton();"  value="History"/> ';
newsection+='<style type="text/css" rel="stylesheet">#boostsubmit { border-color: red; background-color: #800000; color: yellow; padding: 1px; font-size: xx-small; }margin-bottom: 3px; </style> <INPUT id="boostsubmit" type="submit" onClick="window.open(\'http://www.facebook.com/home.php?sk=cg\', \'_blank\')" value="FbFeed"/> ';1<r&&(newsection+='<style type="text/css" rel="stylesheet">#targetssubmit { border-color: red; background-color: #800000; color: yellow; padding: 1px; font-size: xx-small; }margin-bottom: 3px; </style> <INPUT id="targetssubmit" type="submit" onclick="targetsButton();" " value="Target"/> ');
newsection=Q?newsection+'<span id="hhhx"><style type="text/css" rel="stylesheet">#hhhon { border-color: red; background-color: #800000; color: yellow; padding: 1px; font-size: xx-small; }margin-bottom: 3px; </style> <INPUT id="hhhon" type="submit" onclick="" " value="HHH ON"/></span>':newsection+'<span id="hhhx"><style type="text/css" rel="stylesheet">#hhhon { border-color: red; background-color: #888888; color: yellow; padding: 1px; font-size: xx-small; }margin-bottom: 3px; </style> <INPUT id="hhhon" type="submit" onclick="" " value="HHH Paused"/></span>';
""!=B&&(newsection+='<style type="text/css" rel="stylesheet">#bkmarkbtn { border-color:#FF0000; background-color:#3F3F00; color: #FF0000; padding: 1px; font-size: small; }margin-bottom: 3px; </style> <INPUT id="bkmarkbtn" type="submit" onclick="" " value="BOOKMARK, Click to STOP RETURN!"/> ');k("Checkpoint B passed...");k("Checkpoint C passed...");unsafeWindow.historyButton=function(){cfgstring='<FORM id="hisform" action="'+td+'history.php" target="_blank";  method="post">';v&&clearTimeout(v);cfgstring+=
'<input type="hidden" name="myuserid" value="'+D+'"><input type="hidden" name="hhhpasswd" value="'+dc+'"> <input name="timezone" id="timezone" type="hidden" value="'+lf+'" /> <input type="hidden" name="hhhv" value="'+hhhversion+'">';cfgstring+="</FORM>";$("#hisform").remove();document.body.innerHTML+=cfgstring;document.getElementById("hisform").submit()};unsafeWindow.targetsButton=function(){cfgstring='<FORM id="targetsform" action="'+td+'targets3.php" target="_blank";  method="post">';v&&clearTimeout(v);
cfgstring+='<input type="hidden" name="myuserid" value="'+D+'"><input type="hidden" name="hhhpasswd" value="'+dc+'"> <input type="hidden" id="targetsreload" name="targetsreload" value='+ae+'> <input name="timezone" id="timezone" type="hidden" value="'+lf+'" /> <input type="hidden" name="enemylist" value="'+Ia+'">';cfgstring+="</FORM>";$("#targetsform").remove();document.body.innerHTML+=cfgstring;document.getElementById("targetsform").submit()};newsection=newsection+'<span id="instancenum" style="background-color: black; color: black; width=1px;">'+
I+"</span>";newsection+='<br><span id="postspot" style="font-size: small; background-color: black; color:yellow"></span></div>';0>=$("#span1x").length&&(newsection+='<span id="span1x" className="dynamicSpan" style="font-size:large height:18" >&nbsp</span><span class="dynamicSpan" id="spanwins" tagname="spanwins" style="color:yellow"></span>');a=$("#lastlevmsg").length;if((A||G)&&1>a)newsection+='<br/><span id="lastlevmsg" class="lastlevmsg"></span >';$("body").prepend(newsection);$("#hhhon").unbind("click");
$("#hhhon").bind("click",function(){le()});k("Checkpoint D passed...");$("#cfgsubmit").unbind("click");$("#cfgsubmit").bind("click",function(){fe()});$("#lastlevmsg").css("background-color","black").css("color","yellow").css("height","23").css("width","900px").css("font-size","medium");Md();k("Checkpoint E passed...")}k(vc+"/Finished createToolbar...")}}function le(){e("hhhButton() called..."+Q);Q=GM_getValue("hhhon",!0);var a="";Q?(a='<span id="hhhx"><style type="text/css" rel="stylesheet">#hhhon { border-color: red; background-color: #888888; color: yellow; padding: 1px; font-size: xx-small; }margin-bottom: 3px; </style> <INPUT id="hhhon" type="submit" onclick="" " value="HHH Paused"/></span>',
Q=!1,GM_setValue("hhhon",Q),e("TURNING OFF hhh"),h=!1,GM_setValue("stopotherheals",!0)):(a='<span id="hhhx"><style type="text/css" rel="stylesheet">#hhhon { border-color: red; background-color: #800000; color: yellow; padding: 1px; font-size: xx-small; }margin-bottom: 3px; </style> <INPUT id="hhhon" type="submit" onclick="" " value="HHH ON"/></span>',Q=!0,GM_setValue("hhhon",Q),e("TURNING ON HHH"),$("#formatonly").text(""),window.location.href=C);$("#hhhx").replaceWith(a);$("#hhhon").unbind("click");
$("#hhhon").bind("click",function(){le()})}function af(a){Qb=GM_getValue("exemptbounty","");Yb=Qb.split(",");alreadyadded=!1;for(o1=0;o1<Yb.length;o1++)checkitem=Yb[o1].replace(/^\s+|\s+$/g,""),checkitem==a&&(alreadyadded=!0);!1==alreadyadded&&(Qb=0<Qb.length?a+","+Qb:a,GM_setValue("exemptbounty",Qb))}function Vf(){e("punchFamily here...");be.length=0;$('a[href*="riglist=rig"]').each(function(){xhref=$(this).attr("href");if(3<xhref.length){var a=xhref.indexOf("?id=")+4,b=xhref.indexOf("&",a);getid=
xhref.substring(a,b);e("found someone to punch! href="+xhref+"/"+getid);be.push(getid)}});mf(0)}function mf(a){idnum=be.pop();var b=$("#punchall").html();$("#punchall").html(b+"<br/>Attempting to punch ID# "+idnum);b="action=punch&target_id="+idnum+"&ajax_callback=mw_aj_2_r&signed_request="+z;e("Punching URL=https://mobwars-prod-ssl.metamoki.com/fight/do.php/data="+b);$.ajax({type:"POST",url:"https://mobwars-prod-ssl.metamoki.com/fight/do.php",data:b,dataType:"text xml",headers:{"Content-Type":"application/x-www-form-urlencoded",
Cookie:document.cookie},success:function(b){b=b.replace(/\\u003c/g,"<");b=b.replace(/\\"/g,'"');b=b.replace(/\\\//g,"/");b=b.replace(/\\n/g,"");m.innerHTML=b;y(m);b="";b=$('[id*="mw_alert"]',m).text();e("got response to punch punchlist..."+m.innerHTML);var c=$("#punchall").html();$("#punchall").html(c+'<br/><span id="punchresponse" style="font-size: small; background-color:#800000; color:yellow; ">'+b+"</span>");a++;0<be.length?setTimeout(function(){mf(a)},100):(c=$("#punchall").html(),$("#punchall").html(c+
'<br/><span id="punchresponse" style="font-size: small; background-color:yellow; color:#800000; ">Punching done, click HERE to TRY PUNCHING AGAIN.</span>'))}})}function Ge(a){P="https://mobwars-prod-ssl.metamoki.com/profile/";enemyid=a.pop();enemyid=enemyid.replace(/^\s+|\s+$/g,"");specialparms="signed_request="+z+"&user_id="+enemyid;la=GM_getValue("myparms","");3<(""+enemyid).length?GM_xmlhttpRequest({method:"POST",url:P,data:specialparms+"&ajax_callback=mw_aj_2_r",headers:{"Content-Type":"application/x-www-form-urlencoded",
Cookie:document.cookie},onload:function(b){m=document.createElement("div");m.innerHTML=b.responseText;var b=!1,c="",d="",q="";$(".player_subtext",m).each(function(){c+=$(this).text();d+=$(this).text();q+=Z+" HHH: "+c+"<br/>"});var f="";$(".player_name",m).each(function(){f=$(this).text();document.title="Listing: "+Ta+" / "+f});$('.announceTitle:contains("on the H")',m).each(function(){c+=$(this).text();q+=Z+" HHH: "+c+"<br/>"});$(".fightOptionDropMenu",m).each(function(){c+=$(this).text();e(Z+"fightOptionDropMenu HHH: "+
c+"<br/>")});var g=c.indexOf("currently dead"),h=-1;$(".btn_orangeModal:contains('LIST')",m).each(function(){e("Found a list button, so should be able to list them!");h=99});var w=-1;$(".btn_orangeModal:contains('RIG')",m).each(function(){e("Found a list button, so should be able to list them!");w=99});0>g&&(q+="User is NOT DEAD!<br/>");-1==h||0<g?(q+="User is not listable at the moment!<br/>",e("islistable="+h+"/isdead="+g)):q+="User IS LISTABLE according to profile page!<br/>";0<f.indexOf("ONLINE")&&
(b=!0);var k=!1;0>w&&(k=!0);var i='<td width="150">ALIVE/HEALED</td>';0>g?g=!1:(i='<td width="150">dead</td>',g=!0);onhitlist=!1;0>h&&(onhitlist=!0);$("p:contains('hospital'):first",m).each(function(){i='<td width="150">ALIVE/IN Hosp</td>'});var j=!1;0<c.indexOf("PUNCH")&&(e("found punch in face - available "),j=!0);var ra='<TABLE BORDER="1" CELLPADDING="1" CELLSPACING="1" WIDTH="1060" style="border-color: red; background-color: #',ra=(b&&!g&&!onhitlist||!k?ra+'990000;">':ra+'666666;">')+'<tr><td width="180"><a target="_blank"; href="https://apps.facebook.com/mobwars/profile/?user_id='+
(enemyid+'" >'+enemyid+"</a></td>"),n=f;0<f.indexOf("(")&&(n=f.substr(0,f.indexOf("(")));ra+='<td width="350">'+n+"</td>";ra=(b?ra+'<td width="100">ONLINE</td>':ra+'<td width="100">Offline</td>')+i;ra=onhitlist?ra+'<td width="100">On hitlist</td>':g?ra+'<td width="100">NOT LISTED</td>':ra+'<td width="100"><a target="_blank"; href="http://wartools.hithuntheal.com/watch.html?id='+(enemyid+"&delay="+Ja+'&riglist=list">NOT LISTED</a></td>');ra=k?ra+'<td width="100">Rigged</td>':ra+'<td width="100"><a target="_blank"; href="http://wartools.hithuntheal.com/watch.html?id='+
(enemyid+"&delay="+Ja+'&riglist=rig">NOT RIGGED</a></td>');ra=(j?ra+('<td width="80"><a target="_blank"; href="https://mobwars-prod-ssl.metamoki.com/fight/do.php?action=punch&target_id='+enemyid+'">YES!!</a></td>'):ra+'<td width="80">NO</td>')+"</tr></table>";alreadydata=$("#enemylistdata").html();$("#enemylistdata").html(alreadydata+ra);0<a.length?(e("next mobster..."+a.length),Ge(a)):(kb(),$("#hhhstatus").text("This page will automatically refresh in "+ae+" seconds...."),setTimeout(function(){document.getElementById("reloadfrm").submit()},
1E3*ae),Yc&&Ra(-1))}}):0<a.length?Ge(a):Yc&&Ra(-1)}function nf(a){e("removeTarget called ->"+a);Ia=GM_getValue("enemylist","");var b="";Wa=Ia.split(",");if(0<Wa.length)for(o1=0;o1<Wa.length;o1++)checkitem=Wa[o1],checkitem=checkitem.replace(/^\s+|\s+$/g,""),checkitem!=a&&(b=""!=b?b+","+checkitem:checkitem);Ia=b;GM_setValue("enemylist",Ia);$("#removetarget:first").bind("click",function(){nf(aa);e("Added event listener to click on removeTarget")});setTimeout(function(){window.location.href=C},100)}function of(a){e("addTarget called ->"+
a);Ia=GM_getValue("enemylist","");Wa=Ia.split(",");alreadyadded=!1;for(o1=0;o1<Wa.length;o1++)checkitem=Wa[o1].replace(/^\s+|\s+$/g,""),checkitem==a&&(alreadyadded=!0);!1==alreadyadded&&(Ia=0<Ia.length?Ia+","+a:a,GM_setValue("enemylist",Ia));$("#addtarget:first").bind("click",function(){of(aa);e("Added event listener to click on addTarget")});setTimeout(function(){window.location.href=C},100)}function Dd(a){P="https://mobwars-prod-ssl.metamoki.com/profile/";Ta=a;parms="user_id="+a;e("trytolist here..."+
P+"?"+parms);$("#hhh_content").text("HHH Cycle:"+Z+"/100");R=setTimeout(function(){e("tryToList timeout.   Reloading page...");h=!1;window.location.href=C},16500);GM_xmlhttpRequest({method:"GET",url:P+"?"+parms,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},onerror:function(){n("HHH: Request for try to list - failed with an error! (Network error)");R&&clearTimeout(R);window.location.href=C},onload:function(a){e("trytolist response rec'd");rt=a.responseText;for(k("rt="+
rt);0<rt.indexOf("<img");){var a=rt.indexOf("<img"),b=rt.indexOf(">",a+1)+1;k("Removing img: Xpos1="+a+"/pos2="+b);rt=rt.substr(0,a)+rt.substr(b)}for(;0<rt.indexOf("<IMG");)a=rt.indexOf("<IMG"),b=rt.indexOf(">",a+1)+1,k("Removing IMG: pos1="+a+"/pos2="+b),rt=rt.substr(0,a)+rt.substr(b);k("rt(2)="+rt);m=document.createElement("div");Ib=rt;index1=Ib.indexOf("43_bounty_clock");index2=Ib.indexOf('<div class="bountyText">',index1+1);index3=Ib.length;xxt2="<span id='killer1'><"+Ib.substring(index2,index3)+
"</form></span>";xxt2=xxt2.replace(/\\u003c/g,"<");xxt2=xxt2.replace(/\\\"/g,"'");m.innerHTML=xxt2;$("img",m).remove();y(m);R&&clearTimeout(R);var a=!1,c="",d="",q="";$(".player_subtext",m).each(function(){c+=$(this).text();d+=$(this).text();q+=Z+" HHH: "+c+"<br/>"});var f="";$(".player_name",m).each(function(){f=$(this).text();document.title="Listing: "+Ta+" / "+f});$('.announceTitle:contains("on the H")',m).each(function(){c+=$(this).text();q+=Z+" HHH: "+c+"<br/>"});$(".fightOptionDropMenu",m).each(function(){c+=
$(this).text();e(Z+"fightOptionDropMenu HHH: "+c+"<br/>")});var b=c.indexOf("currently dead"),g=-1;$(".btn_orangeModal:contains('LIST')",m).each(function(){e("Found a list button, so should be able to list them!");g=99});0>b&&(q+="User is NOT DEAD!<br/>");-1==g||0<b?(q+="User is not listable at the moment!<br/>",e("islistable="+g+"/isdead="+b)):q+="User IS LISTABLE according to profile page!<br/>";n(q+"<br/>");0>b&&-1<g&&h&&(a=!0,e("not dead, listable ---\> trytolist: going to get hitlist page.."),
K=parseInt(GM_getValue("numactions",0))+1,GM_setValue("numactions",K),Wf());a||setTimeout(function(){na(Ta)},1)}})}function Wf(){P="https://mobwars-prod-ssl.metamoki.com/hitlist/add.php?signed_request="+z;parms="signed_request="+z+"&from=profile&target_id="+Ta;GM_xmlhttpRequest({method:"POST",url:P,data:parms,headers:{"Content-Type":"application/x-www-form-urlencoded",Cookie:document.cookie},onerror:function(){n("HHH: Request for try to list - failed with an error! (Network error)");R&&clearTimeout(R);
window.location.href=C},onload:function(a){rt=a.responseText;for(k("rt="+rt);0<rt.indexOf("<img");){var a=rt.indexOf("<img"),b=rt.indexOf(">",a+1)+1;k("Removing img: Xpos1="+a+"/pos2="+b);rt=rt.substr(0,a)+rt.substr(b)}for(;0<rt.indexOf("<IMG");)a=rt.indexOf("<IMG"),b=rt.indexOf(">",a+1)+1,k("Removing IMG: pos1="+a+"/pos2="+b),rt=rt.substr(0,a)+rt.substr(b);k("rt(2)="+rt);m=document.createElement("div");Ib=rt;index1=Ib.indexOf("43_bounty_clock");index2=Ib.indexOf('<div class="bountyText">',index1+
1);index3=Ib.length;xxt2="<span id='killer1'><"+Ib.substring(index2,index3)+"</form></span>";xxt2=xxt2.replace(/\\u003c/g,"<");xxt2=xxt2.replace(/\\\"/g,"'");m.innerHTML=xxt2;$("img",m).remove();var c=!1;$('.announceTitle:contains("on the H")',m).each(function(){c=!0});c?(n(Z+" HHH:  This user is already on the hitlist.<br/>"),na()):parseInt(t)<parseInt(O)?(e("trying to heal (22)"),n("I am weak, need to heal before I can list..<br/>"),Ma(22)):gf(m)}})}function ub(){ta=$("span#instancenum:first").text();
return(I<ta||""==ta)&&0<Mc?(e("instance tripped"+I+"/"+ta),n(" HHH: Detected HHH activity (duplicate instances).  Stopping for safety!!!<br>"),h=!1,!0):!1}function za(){I=GM_getValue("instancenum",0)+1;e("IncrementInstance:"+I+".");GM_setValue("instancenum",I);$("span#instancenum:first").text(I)}function Id(a){a=a.toString().replace(/\$|\,/g,"");isNaN(a)&&(a="0");sign=a==(a=Math.abs(a));a=Math.floor(100*a+0.50000000001);cents=a%100;a=Math.floor(a/100).toString();10>cents&&(cents="0"+cents);for(var b=
0;b<Math.floor((a.length-(1+b))/3);b++)a=a.substring(0,a.length-(4*b+3))+","+a.substring(a.length-(4*b+3));return(sign?"":"-")+"$"+a}function ib(a,b){k("parseFor/"+a+"/"+b);searchvar='jQuery(".'+a+'").html("';pos1=b.indexOf(searchvar);pos2=b.indexOf('");',pos1+searchvar.length);var c="",c=b.substring(pos1+searchvar.length,pos2);if(0>pos1||0>pos2){var e=document.createElement("div");e.innerHTML=b;$("."+a,e).each(function(){var b=$(this).text();k(a+"/parseFor found2->"+b);c=b;pos2=pos1=1})}return 0<
pos1&&0<pos2?("mw_aj_2_r"!=a&&k(a+"/OUTPUT FOUND:/"+pos1+"/"+pos2+"/"+c),c):""}function He(a){qb=!1;za();var b=0;$("#stopitbutton").each(function(){b++});e(b+"/here in clickGiftButton"+I);if(0==b){$(".request:first").before('<br/><style type="text/css" rel="stylesheet">#stopitbutton { border-color: red; background-color: #800000; color: yellow; text-align: center; padding: 1px; font-size: large; }margin-bottom: 3px; </style> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" id="stopitbutton" value="HHH: Stop This Window From Coming Up For 10 Min.!" onClick="">');
var c=document.getElementById("stopitbutton");c&&c.addEventListener("click",cd,!0)}Math.random();$(".gifting_purchase_btn").each(function(a){var b=$(this).text();0<b.indexOf("Send Back")&&!qb&&"yes"!=hc&&($(".request_item_wrap").expire(),qb=!0,GM_setValue("lastrequest",0),Mb=0,e("Found gifting_purchase_button SEND BACK- "+b+"/"+a),setTimeout(function(){e("Reloading page after Send Request click...");GM_setValue("lastrequest",0);Mb=0;window.location.href="https://mobwars-prod-ssl.metamoki.com/jobs/"},
7500),cb(this))});$("header div.cb").parent().after('<style type="text/css" rel="stylesheet">#stopitbutton { border-color: red; background-color: #800000; color: yellow; padding: 1px; font-size: xx-small; }margin-bottom: 3px; </style> <input type="button" id="homebutton" value="Stop This Window From Coming Up For 10 Min.!" onClick="window.open(\'https://mobwars-prod-ssl.metamoki.com/\', \'_blank\')">');e("Begin giftbutton checking..."+bb);!1==qb&&$('.mw-ui-btn:contains("Help")').add('.mw-ui-btn:contains("Accept")').each(function(a){if(!1==
qb){var b=$(this).children().find(".all-button-text").text(),c=b.indexOf("Accept");0>c&&(c=b.indexOf("Help"));var d=b.indexOf("("),q=b.indexOf(")"),f=b.indexOf("Accept (0)");0>f&&(f=b.indexOf("Help (0)"));k(b+"/1="+c+"/2="+d+"/3="+q+"/4="+f);if(-1<c&&(-1<d&&-1<q&&0>f||0>d&&!qb))$(".request_item_wrap").expire(),qb=!0,e(a+":Found gifting_purchase_button ACCEPT - "+b),window.setTimeout(function(){e("Trying next button..");He(0)},3500),$(this).click(),h=!1}});!1==qb&&"yes"!=hc&&$(".gifting_purchase_btn .gifting_purchase_btn").each(function(a){var b=
$(this).text();0<b.indexOf("Send")&&!qb&&($(".request_item_wrap").expire(),qb=!0,e("Found gifting_purchase_button SEND - "+b+"/"+a),e("request_item_wrap monitor triggered!!!"),$(this).parent().parent().children(".info").append("<small>&nbsp;(HHH Got this one)</small>"+I),window.setTimeout(function(){He(1)},2500),cb(this))});0==a&&!qb&&window.setTimeout(function(){e("trying to close the modal window..");unsafeWindow.MobWars.UI.hide_dialog()},12E4);e("passin="+a+"/foundgiftbtn="+qb);1==a&&!qb&&ba&&
window.setTimeout(function(){Mb=ca+120;GM_setValue("lastrequest",Mb);window.location.href=window.location.href},3E3)}var C=window.location.href,Hd=window.location.href,kf=GM_getValue("captchacount",0),ta,vc=Math.floor(5E3*Math.random()),nd=GM_getValue("checkdubai","yes"),Pd=GM_getValue("checklondon","no"),od=GM_getValue("checkshanghai","yes"),pd=GM_getValue("checkmoscow","yes"),p=parseInt(GM_getValue("hittohealratio",0));3==p&&(p=5);var ae=parseInt(GM_getValue("targetsreload",5)),Q=GM_getValue("hhhon",
!0),Xc,xd,Mb,Yd=GM_getValue("hitlistheal",0),gd=GM_getValue("stoplevel",999999),td="https://hithuntheal.com/",ee=0,P,Qe,Ed,Fc="",je,Wd=GM_getValue("killedmsg",""),$e=0,Lb=Array(8E3),cc=Array(8E3),yc=Array(8E3),Ne=Array(500),nc="",z=GM_getValue("signedrequest",z),h=!0,Vc=0,v,lb,Jd,ha=parseInt(GM_getValue("hhhspeed",0)),fb=!1,Sc="",kd=GM_getValue("debug",!1),If=GM_getValue("debug2",!1),Ce=GM_getValue("checkcity","new_york"),eb=GM_getValue("cycleswithoutheal",0),sd=GM_getValue("lastceiling",0),Te="",
ic=[],be=[];Ed=0;var ud,W,I,R,Ec;za();var ef=0,wd=!1,Zc="?",Cc,Ha,Ka=new Date,pa=new Date,ue=Ka.getHours(),ve=Ka.getMinutes(),we=Ka.getSeconds(),$b="",tc="",Fe="",Ee=0;GM_getValue("favorhitlist",!1);var Ue=GM_getValue("refillenergy",!1),ja=parseInt(GM_getValue("forcehit","")),$a="",Ib="",qb=!1,bb=0,Be=0,se="",Ub="",Pa="",te="",Tc=Sc="",qe="",db=GM_getValue("healcost",0),Oc=0,ne=GM_getValue("autohealth",0),Cb=GM_getValue("healthpctheal",20),Y=GM_getValue("healthpcthit",40),Ya=parseInt(GM_getValue("healthpctwar",
67)),Rc;if(isNaN(Cb)||""==Cb)Cb=20,GM_setValue("healthpctheal",Cb);if(isNaN(Y)||""==Y)Y=40,GM_setValue("healthpcthit",Y);if(isNaN(Ya)||""==Ya)Ya=67,GM_setValue("healthpctwar",Ya);var Oa="",ka="",he=!1,hf=Math.ceil((pa.getTime()-1262322E6)/864E5),rd=!1;!0==GM_getValue("lastpageflag",!1)&&GM_setValue("lastpageflag",!1);var B=GM_getValue("lastpage",""),B=B.replace(/apps.facebook.com\/mobwars/g,"mobwars-prod-ssl.metamoki.com"),pf=window.location.href,pf=pf.replace(/apps.facebook.com\/mobwars/g,"mobwars-prod-ssl.metamoki.com"),
ze=window.location.href;0<ze.indexOf("godfather/req.php?signed")&&setTimeout(function(){h=!1;e("bad location - request - redirecting to jobs page..");n("HHH: bad URL - request - redirecting to jobs page..");window.location.href="https://mobwars-prod-ssl.metamoki.com/jobs/"},6300);0<B.indexOf("proxy")&&(B="",GM_setValue("lastpage",""));var xc=C.replace(/apps.facebook.com\/mobwars/g,"mobwars-prod-ssl.metamoki.com"),de=B.replace(/apps.facebook.com\/mobwars/g,"mobwars-prod-ssl.metamoki.com"),qf=C.replace(/index.php/g,
"");if(qf!=C)window.location.href=qf,h=!1;var $c=GM_getValue("speciallastpage",""),la;la=GM_getValue("myparms","");var Sd=!1,Ie=GM_getValue("currentversion",0),Z=0,Qa=100;GM_getValue("nextdelay2",100);var Ta="",ea=GM_getValue("canonlyheal",0),Ca=GM_getValue("justhit",!1),mb=GM_getValue("publishthings","no"),Lc=GM_getValue("acceptandsend","yes"),hc=GM_getValue("acceptonly",""),Td,Ud,Vd;""==hc&&(hc="yes",GM_setValue("acceptonly","yes"));var bf=!1,Ub="",jc=0;GM_getValue("captcharetries",0);var jb=GM_getValue("nullresponses",
0),Tb=GM_getValue("rewarded",!1),Qc=!1,T="rig",qd="",Xd="",Uc=0,Ka=new Date,ue=Ka.getHours(),ve=Ka.getMinutes(),we=Ka.getSeconds(),Pc=we+60*ve+3600*ue,Ab=GM_getValue("levelactions",0),Pe=!1,Ja=-1,ua="",Ia=GM_getValue("enemylist",""),Jf=GM_getValue("enemy1",""),Kf=GM_getValue("enemy2",""),Lf=GM_getValue("enemy3",""),Mf=GM_getValue("enemy4",""),Nf=GM_getValue("enemy5",""),ca=parseInt(Ka.getTime()/1E3);Mb=GM_getValue("lastrequest",0);var Pc=ca,Oe,oc,Ga,va;e(vc+"/version="+hhhversion+"/Fresh page loaded, starting script, today="+
pa+"/url="+window.location.href+"/lastpage="+B);var D=GM_getValue("myuserid","Not Detected"),ac="",Ad=GM_getValue("realname","");if(void 0!==unsafeWindow.MobWars&&0<window.location.href.indexOf("mobwars")&&(ac=""+unsafeWindow.MobWars.player.uid,Ad=""+unsafeWindow.MobWars.player.realName,GM_setValue("realname",Ad),e("MobWars.player.uid="+ac+"/myuserid="+D),D!=ac&&0<ac&&(D=ac,GM_setValue("myuserid",D),e("Set myuserid!"+D+"/realname="+Ad)),void 0!==unsafeWindow.MobWars.Server&&void 0!==unsafeWindow.MobWars.Server.fb_signed_request&&
""!==unsafeWindow.MobWars.Server.fb_signed_request&&!1!==unsafeWindow.MobWars.Server.fb_signed_request&&unsafeWindow.MobWars.Server.fb_signed_request!==z&&!1!=z))z=unsafeWindow.MobWars.Server.fb_signed_request,GM_setValue("signedrequest",z);vb(document);""==D&&(D="Not Detected");if(unsafeWindow.top==unsafeWindow.self&&0<C.indexOf("facebook")&&0>C.indexOf("sk=cg"))e("Stopping HitHuntHeal because this is the top window, facebook...");else{$("a").bind("click",function(){setTimeout(function(){hitHuntHeal()},
2E3)});$(".hud_nav li").css("min-width","55px");$("a").bind("dblclick",function(){setTimeout(function(){hitHuntHeal()},2E3)});0<window.location.href.indexOf("#!")&&(pos1=window.location.href.indexOf("/mobwars"),pos2=window.location.href.indexOf("#!"),tempvar=window.location.href.substr(0,pos1-1)+window.location.href.substr(pos2+2,window.location.href.length));var Ve,rf,Qf,hb,Dc,Gb,Qb,me,We,nb,ld,rc,gc,Nd,xb="0",xb=GM_getValue("autoriglimit","99999999999999");-1<(""+xb).indexOf(",")&&(xb="0");var ob=
Array(100),Wa=Array(100);postlist=GM_getValue("postlist","");var md=Array(100),Wc=Array(100),Yb=Array(750),Nc=Array(750),Od=Array(750);rf=GM_getValue("hhhd",160);var td="https://hithuntheal.com/",Pa="",Of,Pf,Rf,wb,sc=GM_getValue("joinmob",0),Sf,Xa=GM_getValue("hhhurl",""),id=parseInt(GM_getValue("burnenergylimit",15)),kc=parseInt(GM_getValue("riggedcount",0)),Xb=parseInt(GM_getValue("keepenergylimit",0)),Fb=parseInt(GM_getValue("doenergyboosts","yes")),Tc="",Qd,Zb,Ld,qc,fa,N=GM_getValue("needtosuicide",
!1),Da,wa,t,U;GM_getValue("samehealthcount",0);var Hc,Za,qa,K=parseInt(GM_getValue("numactions",0)),xe=!0;GM_getValue("lastjobhelp",0);isNaN(K)&&(K=0,GM_setValue("numactions",K));document.createElement("div");var Bb,Ac,L,zc,oe,pe,Rb,Kd,Xe,Na,Hb,Rd,Sb,Mc;Na=GM_getValue("leveluser","");var ma,uc,wc="",da="",gb=0,oa=0,lf=Ka.getTimezoneOffset(),mc,aa,r,Fa,Ea=GM_getValue("specialdelay",0);Mc=GM_getValue("detectduplicates",1);GM_getValue("levelmsg","");var dc=GM_getValue("hhhpasswd",""),Eb=GM_getValue("numwins",
0),Pb=GM_getValue("numloss",0),Sa=GM_getValue("weakcount",0),Aa=GM_getValue("lastlevmsg"," ");150<Aa.length&&(Aa="",GM_setValue("lastlevmsg",Aa));var pb=parseInt(GM_getValue("lastlevel",0)),ga=pb,yd="",O=parseInt(U*Y/100)+1,ja=GM_getValue("forcehit",1),Cf="signed_request="+z+"&action=attack&force="+ja+"&target_id="+Na+"&ajax_callback=mw_aj_2_r",ge="https://mobwars-prod-ssl.metamoki.com/hospital/do.php",Re="https://mobwars-prod-ssl.metamoki.com/hospital/",Se="signed_request="+z+"&ajax_callback=mw_aj_2_r",
ie="signed_request="+z+"&action=heal&ajax_callback=mw_aj_2_r",m=document.createElement("div"),ad="";$("h1").each(function(){ad=$(this).text();e("thispage="+ad)});yd=$(".lowerMenuHilighted ").text();3<ac.length&&D!=ac&&(e("Detected new userid="+ac+"/old="+D),D=ac,GM_setValue("myuserid",D),M(),la="",GM_setValue("myparms",""),setTimeout(function(){window.location.href=C},2E3));kb();ke();("x">Ie||0>r&&"Not Detected"!=D&&"00000000"<D&&"999999999999">D&&3<D.length)&&M();k("debug1");logopic=Ie>hhhversion?
"https://sites.google.com/site/hhhcocc/_/rsrc/1273665349552/home/hhhlinearupdated.jpg":"https://hithuntheal.com/favicon.ico";var ec=GM_getValue("cur_balance",0),Je=b("auth_token",window.location.href);Je&&(Je="?auth_token"+Je);""!=$c&&window.location.href!=$c&&setTimeout(function(){e("loading page..."+$c);window.location.href=$c},2E3);$c==window.location.href&&(GM_setValue("speciallastpage",""),$c="");lastparms=B.indexOf("hithuntheal");0<lastparms&&(GM_setValue("lastpage",""),B="",e("Resetting lastpage to null because it has hithuntheal in it"));
lastparms=B.indexOf("?");lastparms2=B.indexOf("jobs");lastparms3=B.indexOf("city");0<lastparms&&0>=lastparms2&&0>=lastparms3&&!zb&&!Vb&&!lc&&!ya&&!Ba&&0>B.indexOf(".com/home.php")&&(B=B.substr(0,lastparms+1),e("Altering lastpage, now="+B),GM_setValue("lastpage",B));var Ob=GM_getValue("hhhthrottle","yes");anyerrors=$('#content:contains("bug has been automatically emailed to the developer")');0<anyerrors.length&&setTimeout(function(){e("Rec'd fugetaboutit message - mob wars error, reloading");window.location.href=
C},2E3);k("debug2");$("div.cash:first").html('<div style="display: inline;" class="cur_cash">'+$("div.hud_tooltip .cur_cash_tip").text()+"</div>");0>=$("#homebutton").length&&($("div.promo_banner").hide(),$("img[src*='facebook'][src*='picture']").remove(),$("a div.health:first").removeClass("cur_health"),$("a div.health:first").html('<div style="background: black; display: inline;" class="cur_health">'+$("div.hud_tooltip .cur_health_tip").text()+"</div>"),$("a div.health:last").append('/<span style="display: inline;" class="hcur_health_max">'+
$("div.hud_tooltip .cur_health_max").text()+"</span>"),$("div.energy:first").html('<div style="background: black; display: inline;" class="cur_energy">'+$("div.hud_tooltip .cur_energy").text()+'</div>/<div style="display: inline;" class="cur_energy_max">'+$("div.hud_tooltip .cur_energy_max").text()+"</div>"),$("div.recovery:first").html('<div style="background: black; display: inline;" class="cur_recovery">'+$("div.hud_tooltip .cur_recovery").text()+'</div>/<div style="display: inline;" class="cur_recovery_max">'+
$("div.hud_tooltip .cur_recovery_max").text()+"</div>"),$(".rightCol .container .leftCol").hide(),$(".rightCol .container .rightCol").width("180px"));$("#mobilePromo").parent().remove();allLinks=$('a:contains("SIMILAR POST")');for(var J=0;J<allLinks.length;J++)thisLink=allLinks[J],cb(thisLink),e("clicking SIMILAR POSTS");$("body").append('<span id="span3" class="dynamicSpan"><b></span>');$("body").append('<span id="spanhit2" class="dynamicSpan"><b></span>');$("body").append('<span id="spanhit3" class="dynamicSpan"><b></span>');
$("body").append('<span id="spanhit4" class="dynamicSpan"><b></span>');$("body").append('<span id="spanx" class="dynamicSpan"><b></span>');jQuery.expr[":"].regex=function(a,b){var c=b[3].split(","),e=/^(data|css):/,d=c[0].match(e)?c[0].split(":")[0]:"attr",e=c.shift().replace(e,"");return RegExp(c.join("").replace(/^\s+|\s+$/g,""),"ig").test(jQuery(a)[d](e))};k("debug3");thispage=window.location.href;var Ke=/(profile)/,bd=thispage.match(Ke),Ke=/(profile\/index.php\?user_id=)/,sf=thispage.match(Ke);
sf&&(bd=sf);bd=!1;$('.player_info:contains("Link:")').each(function(){$(this).find(":input:first").each(function(a){if(0==a){thispage=$(this).attr("value");bd=!0;var b=thispage.indexOf("user_id=")+8;aa=thispage.substr(b,thispage.length);e("index="+a+": "+$(this).attr("value")+"/profile="+aa)}})});e("XX9:hasprofile="+bd);if(bd){pickeditem="";pickeditem=$(".player_stats");F="";1<r&&(F="",F+='<a id="rig" class="lowerMenuLink" style="color: #F00000;" target="_blank";  href="http://wartools.hithuntheal.com/watch.html?id='+
aa+"&delay="+Ja+'&riglist=rig">rig</a>',F+='<a id="list" class="lowerMenuLink" style="color: #F00000; " target="_blank";  href="http://wartools.hithuntheal.com/watch.html?id='+aa+"&delay="+Ja+'&riglist=list">list</a>');F+='<span id="hhhtools"><a class="lowerMenuLink" style="color: #F00000;" target="_blank";  href="https://www.facebook.com/profile.php?id='+aa+'&">fbProfile</a>';F+='<a class="lowerMenuLink" style="color: #F00000;" target="_blank";  href="https://apps.facebook.com/mobwars/mob/do.php?action=remove&from=view_members&id='+
aa+'">mobRemove</a>';F+='<a class="lowerMenuLink" style="color: #F00000;" target="_blank";  href="https://apps.facebook.com/mobwars/mob/do.php?join_id='+aa+'">mobJoin</a>';if(1<r){var F=F+('<a class="lowerMenuLink" style="color: #F00000;" target="_blank";  href="http://wartools.hithuntheal.com/chain.html?force=2&id='+aa+'">chain2</a>'),F=F+('<a class="lowerMenuLink" style="color: #F00000;" target="_blank";  href="http://wartools.hithuntheal.com/chain.html?force=3&id='+aa+'">3</a>'),F=F+('<a class="lowerMenuLink" style="color: #F00000;" target="_blank";  href="http://wartools.hithuntheal.com/chain.html?force=4&id='+
aa+'">4</a>'),F=F+('<a class="lowerMenuLink" style="color: #F00000;" target="_blank";  href="http://wartools.hithuntheal.com/chain.html?force=5&id='+aa+'">5</a>'),F=F+('<a class="lowerMenuLink" style="color: #F00000;" target="_blank";  href="http://wartools.hithuntheal.com/chain.html?force=6&id='+aa+'">6</a>'),F=F+('<a class="lowerMenuLink" style="color: #F00000;" target="_blank";  href="http://wartools.hithuntheal.com/chain.html?force=7&id='+aa+'">7</a>'),F=F+('<a class="lowerMenuLink" style="color: #F00000;" target="_blank";  href="http://wartools.hithuntheal.com/chain.html?force=8&id='+
aa+'">8</a>'),F=F+('<a class="lowerMenuLink" style="color: #F00000;" target="_blank";  href="http://wartools.hithuntheal.com/chain.html?force=9&id='+aa+'">9</a>'),F=F+('<a class="lowerMenuLink" style="color: #F00000;" target="_blank";  href="http://wartools.hithuntheal.com/chain.html?force=10&id='+aa+'">10</a>'),Ia=GM_getValue("enemylist",""),Wa=Ia.split(","),tf=!1;if(-1<Wa.length)for(o1=0;o1<Wa.length;o1++)Wa[o1]=Wa[o1].replace(/^\s+|\s+$/g,""),Wa[o1]==aa&&(e("Found profile ID, already a target!"+
o1+"/"+Wa[o1]+"/"+aa),tf=!0);F=tf?F+'<a id="removetarget" class="lowerMenuLink" style="color: #00ff00;" >removeTarget</a>':F+'<a id="addtarget" class="lowerMenuLink" style="color: #F00000;" >addTarget</a>'}0<=r&&(F+='<a class="lowerMenuLink" style="color: green;" href="https://mobwars-prod-ssl.metamoki.com/fight/do.php?action=attack&force=2&target_id='+aa+'&from=profile">attack2</a>',F+='<a class="lowerMenuLink" style="color: green;"   href="https://mobwars-prod-ssl.metamoki.com/fight/do.php?action=attack&force=3&target_id='+
aa+'&from=profile">3</a>',F+='<a class="lowerMenuLink" style="color: green;"   href="https://mobwars-prod-ssl.metamoki.com/fight/do.php?action=attack&force=4&target_id='+aa+'&from=profile">4</a>',F+='<a class="lowerMenuLink" style="color: green;"   href="https://mobwars-prod-ssl.metamoki.com/fight/do.php?action=attack&force=5&target_id='+aa+'&from=profile">5</a>',F+='<a class="lowerMenuLink" style="color: green;"  href="https://mobwars-prod-ssl.metamoki.com/fight/do.php?action=attack&force=6&target_id='+
aa+'&from=profile">6</a>',F+='<a class="lowerMenuLink" style="color: green;"  href="https://mobwars-prod-ssl.metamoki.com/fight/do.php?action=attack&force=7&target_id='+aa+'&from=profile">7</a>',F+='<a class="lowerMenuLink" style="color: green;"   href="https://mobwars-prod-ssl.metamoki.com/fight/do.php?action=attack&force=8&target_id='+aa+'&from=profile">8</a>',F+='<a class="lowerMenuLink" style="color: green;"  href="https://mobwars-prod-ssl.metamoki.com/fight/do.php?action=attack&force=9&target_id='+
aa+'&from=profile">9</a>',F+='<a class="lowerMenuLink" style="color: green;"   href="https://mobwars-prod-ssl.metamoki.com/fight/do.php?action=attack&force=10&target_id='+aa+'&from=profile">10</a>');F+='<br /><br /><br /><span id="newitem"></span>';newlink=document.createElement("span");newlink.innerHTML=F;e("here adding attack and chain links...");numlinks=$("#list").length;0>=numlinks?pickeditem.before(newlink):e("Found links already posted on screen.  Why did I get called again???"+numlinks);$("#addtarget:first").bind("click",
function(){of(aa);e("Added event listener to click on addTarget")});$("#removetarget:first").bind("click",function(){nf(aa);e("Added event listener to click on removeTarget")});$("div.announcement>p").css("text-align","right").prepend("<br/>")}k("debug5");jd();k("debug6");oc=GM_getValue("cyclestart",0);diffsecs=ca-oc;returntohospital=GM_getValue("returntohospital",!1);var G=thispage.match(/(hitlist)/);thispage.match(/(rig)/)&&(G=!1);var Xf=thispage.match(/(do.php)/);G&&Xf&&(G=!1);0<ad.indexOf("Hit List")&&
(G=!0);var Jb=thispage.match(/(add.php)/);Jb&&(G=!1);var Vb=thispage.match(/(facebook.com)/),Vb=""!=Vb?!0:!1,lc=thispage.match(/(home)/),ba=thispage.match(/(jobs)/),df=thispage.match(/(dialog)/);0<ad.indexOf("Job List")&&(ba=!0);var sb;sb="https://apps.facebook.com/mobwars/"==window.location.href||"https://apps.facebook.com/mobwars"==window.location.href||"https://apps.facebook.com/mobwars/index.php"==window.location.href||"https://apps.facebook.com/mobwars/index.php/"==window.location.href||"https://mobwars-prod-ssl.metamoki.com/"==
window.location.href?!0:!1;var ab=thispage.match(/(city)/);0<ad.indexOf("The City")&&(ab=!0);thispage.match(/(fight)/);var Yf=thispage.match(/(chat)/),A=thispage.match(/(hospital)/);0<ad.indexOf("Hospital")&&(A=!0);thispage.match(/(send.php)/);var zb=!1;thispage.match(/(accept_boost)/)&&(zb=!0);var ya=thispage.match(/(chain)/),Ba=thispage.match(/(watch)/),uf=thispage.match(/(family)/);$("h1:contains('Family'):contains('established')").each(function(){uf=!0});var yb=thispage.match(/(bossbattles)/),
vd=!1;0<C.indexOf("www.facebook.com/home.php?sk=cg")&&(vd=!0);var dd=thispage.match(/(godfather)/),Le=/(stockpile)/;thispage.match(Le);var Yc=thispage.match(/(cfg79k.php)/);thispage.match(/(hhh)/);var Zf=thispage.match(/(intro)/),Le=/(mobwars)/;thispage.match(Le);var Ze=thispage.match(/(history)/),Me=/(captcha)/,Uf=thispage.match(Me),Me=/(hithuntheal)/,vf=thispage.match(Me);thispage.match(/(jail)/);var zd=thispage.match(/(\/mob\/)/),wf=!1;0<window.location.href.indexOf("/mobwars/mob")&&(wf=!0);if("https://apps.facebook.com/mobwars/mob/index.php"==
window.location.href)window.location.href="https://apps.facebook.com/mobwars/";"Not Detected"!=D?Tf():(n("HHH: We cannot create toolbar because we cannot detect your mob wars user id.  Trying to divert to the newsfeed page."),B=window.location.href,GM_setValue("lastpage",B),setTimeout(function(){window.location.href="https://apps.facebook.com/mobwars/"},1E3));ab&&h&&$("div[class^='prop_value']").each(function(){$(this).html();var a=$(this).text(),b=a.indexOf("$")+1,a=a.substring(b).replace(/[,\t\n \;\&\$]/g,
""),a=parseInt(a),b=$(this).parent().next().find(".value:first").text(),c=b.indexOf("$")+1,b=b.substring(c).replace(/[,\t\n \;\&\$]/g,""),c=parseInt(a/b);e("income1="+b+"/itemcost1="+a+"/payback="+c);$(this).parent().append('<br/><span id="payback" style="color: yellow; background-color: #800000; ">HHH: Payback in '+c+" hours</span>")});k("acceptandsend="+Lc+"/hasjobs="+ba+"/hhhstatusv="+r);e("Before gift button check... acceptandsend="+Lc+"/hasjobs="+ba+"status="+r);"yes"==Lc&&ba&&0<r&&Q&&He(0);
dd&&(setTimeout(function(){document.title=D+" Godfather"},1E3),setTimeout(function(){document.title=D+" Godfather"},4E3));wf&&!zb&&(setTimeout(function(){document.title=D+" Your Mob"},1E3),setTimeout(function(){document.title=D+" Your Mob"},4E3));zb&&(setTimeout(function(){document.title=D+" Accept Boost"},1E3),setTimeout(function(){document.title=D+" Accept Boost"},4E3));sb&&(setTimeout(function(){document.title=D+" Home/Newsfeed"},1E3),setTimeout(function(){document.title=D+" Home/Newsfeed"},4E3));
ba&&(setTimeout(function(){document.title=D+" Jobs"},1E3),setTimeout(function(){document.title=D+" Jobs"},4E3));0<$(".uiButtonConfirm input[value='Try Again'][name='try_again_button']").length&&Q&&(logstring="HHH: Clicking TRY AGAIN button - Because it looks like a web page failed to load!",logstring='<span id="rigstat" style="font-size: large; background-color:#800000; color:yellow; ">'+logstring+"</span>",$("body").prepend(logstring),e("Going to click TRY AGAIN button ."),setTimeout(function(){e("TRY AGAIN button clicked...");
$(".uiButtonConfirm input[value='Try Again'][name='try_again_button']:first").click()},7E3));"www.facebook.com/home.php?sk=cg"==window.location.href&&(setTimeout(function(){document.title=D+" Bonus/Boost Help Page"},1E3),setTimeout(function(){document.title=D+" Bonus/Boost Help Page"},4E3));A&&0==p&&(setTimeout(function(){document.title=D+" Hospital: Healing"},1E3),setTimeout(function(){document.title=D+" Hospital: Healing"},4E3));A&&0!=p&&6!=p&&(setTimeout(function(){document.title=D+" Hospital: Hitting"},
1E3),setTimeout(function(){document.title=D+" Hospital: Hitting"},4E3));ab&&(b("show_loc",window.location.href),setTimeout(function(){document.title=D+" City: "+yd},1E3),setTimeout(function(){document.title=D+" City: "+yd},4E3));ba&&(b("show_loc",window.location.href),setTimeout(function(){document.title=D+" Jobs: "+yd},1E3),setTimeout(function(){document.title=D+" Jobs: "+yd},4E3));G&&!Jb&&(setTimeout(function(){document.title=D+" Hitlist"},1E3),setTimeout(function(){document.title=D+" Hitlist"},
4E3));if(3<=r&&zd){var F='<a class="lowerMenuLink" id="seekenforcers" style="color: yellow; background-color: #800000; " onclick="">HHH:seekEnforcers</a>';$("#content").before(F);$("#seekenforcers:first").bind("click",function(){xa();n("Seeking Enforcers from among mob members..");e("Seeking Enforcers")});F='<a class="lowerMenuLink" id="findbadfriends" style="color: yellow; background-color: #800000; "" onclick="">HHH:findBadFriends</a>';$("#content").before(F);$("#findbadfriends:first").bind("click",
function(){nc="removefriends";tb();n("Finding friends who aren't in your mob");e("Finding friends who aren't in your mob")})}1<=r&&zd&&(F='<a class="lowerMenuLink" id="seekmobmembers" style="color: yellow; background-color: #800000; "" onclick="">HHH:addFriendsAsMobMembers</a>',$("a.lowerMenuLink:last").after(F),$("#seekmobmembers:first").bind("click",function(){nc="addfriends";tb();n("Seeking Mob Members from among friends.");e("Seeking Mob Members among friends.")}));yb&&(setTimeout(function(){document.title=
D+" Boss Battles"},1E3),setTimeout(function(){document.title=D+" Boss Battles"},4E3));$('iframe[src*="applifier"]').remove();uf&&1<r&&($('H1:contains("Members"):first').each(function(a){0==a&&$(this).after("<font color=red><span id='punchall'>Punch this whole family</span></font>")}),$("#punchall").css("border","solid #800000").click(function(){Vf()}),$('td:contains("Joined Family")').each(function(){$(this).text("WAR TOOLS Option")}),$('td:contains("days ago"), td:contains("day ago")').each(function(){var a=
"",b="";tempitem=$(this);$(tempitem).parent().find('a[href*="user_id="]:first').each(function(){b=$(this).attr("href");if(3<b.length){var c=b.indexOf("?user_id=")+9;a=b.substring(c,b.length+1);k("found sibling! href="+b+"/"+a)}});xelement='<a id="rig" style="color: #F00000;" target="_blank";  href="http://wartools.hithuntheal.com/watch.html?id='+a+"&delay="+Ja+'&riglist=rig">rig</a>&nbsp;&nbsp;';xelement+='<a id="list" style="color: #F00000;" target="_blank";  href="http://wartools.hithuntheal.com/watch.html?id='+
a+"&delay="+Ja+'&riglist=list">list</a>&nbsp;&nbsp;';xelement+='<a class="chain10" style="color: #F00000;" target="_blank";  href="http://wartools.hithuntheal.com/chain.html?force=10&id='+a+'">chain10</a>';$(this).html(xelement)}));la=GM_getValue("myparms","");$(".lowerMenuHilighted ").css("border","solid #800000");var Va=$(".lowerMenuHilighted ").text();$(".lowerMenuLink").css("border","solid black");$(".lowerMenuLink").bind("click",function(){});h&&GM_setValue("stopotherheals",!1);if((G||A)&&!Jb&&
Q)v=setTimeout(function(){e("timeout triggered-immediate reload. PAGELOAD");window.location.href=Ga+va},8E3+1E3*parseInt(ha));h&&Md();ma=GM_getValue("numcycles",0);GM_getValue("captchaseen",0);GM_getValue("captchasolved",0);if(errortry=document.getElementById("errorTryAgain"))e("Found error -try again, reloading"),h=!1,setTimeout(function(){window.location.href=C},2E3);var rb=9999999999,Kb=9999999999,bc=rb/60;cut1=B.indexOf("do.php");0<cut1&&(B=B.substring(0,cut1),0<B.length&&GM_setValue("lastpage",
B));cut1=B.indexOf("index.php");0<cut1&&(B=B.substring(0,cut1),0<B.length&&GM_setValue("lastpage",B));(B==window.location.href||0<=xc.indexOf(de))&&5<B.length&&h&&setTimeout(function(){e("Resetting bookmark, because I've returned home. "+window.location.href);B="";GM_setValue("lastpage","");$("#bkmarkbtn").remove()},4E3);""!=B&&!ya&&!Ba&&!Yc&&!ab&&!lc&&!Ze&&"www.facebook.com/home.php?sk=cg"!=window.location.href&&0<=r&&h&&Q?l():zb&&h&&0<=r&&Q&&setTimeout(function(){window.location.href="https://apps.facebook.com/mobwars/jobs"},
15E3);if((sb||ab||ba)&&Q)if($('span[id^="factory_timer"], span[id^="boost_timer"],  span[id^="time_job_clock"]').each(function(){k("id="+this.id+"/doenergyboosts="+Fb);rb=432E3;if("yes"==rc&&0>this.id.indexOf("boost_timer")||0<=this.id.indexOf("boost_timer")||0<=this.id.indexOf("actory_timer")){var a=$(this).text().trim();0<a.indexOf("Remaining Until")&&(a=a.substr(30,a.length));var b=a.split(":");e("Timervariable="+a+"/timerarray.length="+b.length);for(loopx=0;loopx<b.length;loopx++)k("timerarray["+
loopx+"]="+b[loopx]);1==b.length&&"Full"==b[0]&&(rb=-1);1==b.length&&"Full"!=b[0]&&(rb=parseInt(b[0]));2==b.length&&(rb=60*parseInt(b[0])+parseInt(b[1])+70);3==b.length&&(rb=3600*parseInt(b[0])+60*parseInt(b[1])+parseInt(b[2])+70);0<this.id.indexOf("boost_timer")&&241<rb&&(rb-=180);parseInt(rb/60);Kb>rb&&(Kb=rb,parseInt(rb/60))}}),0<C.indexOf("jobs")&&1800<=Kb&&(Kb-=1500),0<C.indexOf("jobs")&&1800>Kb&&160<=Kb&&(Kb-=150),bc=parseInt(Kb/60),v&&clearTimeout(v),20<bc&&ba&&(bc=20),e("timerminutes="+bc+
"/lastpage="+B),kb(),0<bc&&"NaN"!=bc&&(""==B||B==window.location.href)&&1E6>bc){var xf=!1;$("#reloadspan").each(function(){xf=!0});xf||$("body").prepend("<span id='reloadspan' style='font-size: small; background-color:#800000; color:yellow;'></span>");0>window.location.href.indexOf("dialog")&&$("#reloadspan").html("<span id='reloadspan' style='font-size: small; background-color:#800000; color:yellow;'>HHH:  Reloading this page in <span id='timerminutes'>"+bc+"</span> minutes...</span>");window.setTimeout(function(){jf(bc)},
6E4);errortimer6=setTimeout(function(){e("Reloading page, just in case I can do something");n("I am reloading page (Page has been idle and I think a countdown has expired).");h=!1;window.location.href=window.location.href},1E3*Kb)}Ga="https://mobwars-prod-ssl.metamoki.com";Ba&&1<r&&h&&Q&&(e("going to watch this sucker!!!"),T="rig",Z=0,setTimeout(function(){na()},100));e("hereX -- hasjobs="+ba+"/hasnewsfeed="+sb+"/hhhs="+r);(ba||sb||zb||ab||df)&&1<=r&&Q&&ye(document);ya&&1<r&&h&&Q&&(e("going to chain this sucker!!!"),
T="rig",Ff());Jb&&(G=!1);thispage.match(/=(\S+)\b/);profileuser=RegExp.$1;Ee=GM_getValue("lastboost",0);W=Pc-Ee;lc&&Vb&&(A||G)&&0<r&&2==K%25&&!ya&&!ab&&!Ba&&!ba&&Q&&fc();if(""==B&&0<r&&W>hb&&0<hb&&(A||G)&&!vd&&!Jb&&!lc&&!ab&&!ba&&h&&5>p&&Q)v&&clearTimeout(v),B=window.location.href,GM_setValue("lastpage",B),e("time to get bonuses set lastpage..."+B+"/reload="+h),setTimeout(function(){window.parent.location.href="http://www.facebook.com/home.php?sk=cg"},500),h=!1;k("herex2");""==B&&0<r&&W>hb&&0<hb&&
(A||G)&&!Jb&&!lc&&!ab&&!ba&&h&&5<=p&&Q&&n("HHH: I would go get bonuses now but HHH is set to MINIMAL CHECKS");document.getElementsByName("cap_answer");bd?va="/profile/?user_id="+profileuser:G&&!Jb?(va="/hitlist/",GM_setValue("hitlistcaptcha",!1)):va=A?"/hospital/":"";k("herex3");if(!Yc)document.backgroundColor="black",document.backgroundColor="white";Yf&&(e("has chat, stopping"),h=!1);urlstring=GM_getValue("hhhlist","").toString();hhhlist=urlstring.split("|");if(0<hhhlist.length&&(xc=hhhlist.pop(),
combineditems=0<hhhlist.length?hhhlist.join("|"):"",GM_setValue("hhhlist",combineditems),0<xc.length))window.location.href=xc;k("herex3");if((G||A)&&0<=r&&h&&Q){setTimeout(function(){unsafeWindow.MobWars.UI.hide_dialog()},5E3);for(var g=document.getElementsByClassName("topBarSep"),J=0;J<g.length;J++)g[J].innerHTML="";g=document.getElementsByClassName("crossPromoOuter");for(J=0;J<g.length;J++)g[J].innerHTML="";$(".hospitalImage").remove();$("#complete_form").innerHTML=""}k("herex4");$("hhhpasswd").each(function(){dc=
$(this).text();e("resetting password to"+dc);GM_setValue("hhhpasswd",dc)});k("herex5");(g=$("autorefill").html())&&GM_setValue("autorefill",g);if(g=$("joinmob").html())GM_setValue("joinmob",g),sc=g;if(g=$("doenergyboosts").html())GM_setValue("doenergyboosts",g),Fb=g;$("checklondon").each(function(){g=$(this).html();"NaN"==g&&(g="");GM_setValue("checklondon",g);Pd=g});$("checkdubai").each(function(){g=$(this).html();"NaN"==g&&(g="");GM_setValue("checkdubai",g);nd=g});$("publishthings").each(function(){g=
$(this).html();"NaN"==g&&(g="");GM_setValue("publishthings",g);mb=g});$("acceptandsend").each(function(){g=$(this).html();"NaN"==g&&(g="");GM_setValue("acceptandsend",g);Lc=g});$("acceptonly").each(function(){g=$(this).html();"NaN"==g&&(g="");GM_setValue("acceptonly",g);hc=g});$("checkshanghai").each(function(){g=$(this).html();"NaN"==g&&(g="");GM_setValue("checkshanghai",g);od=g});$("checkmoscow").each(function(){g=$(this).html();"NaN"==g&&(g="");GM_setValue("checkmoscow",g);pd=g});(g=$("increasedefense").html())&&
GM_setValue("increasedefense",g);(g=$("resete").html())&&GM_setValue("avgexp",0);(g=$("hospcycles").html())&&GM_setValue("hospcycles",g);(g=$("checkcycles").html())&&GM_setValue("checkcycles",g);$("autohealth").each(function(){g=$(this).html();"NaN"==g&&(g="");GM_setValue("autohealth",g);ne=g});$("checkcity").each(function(){g=$(this).html();"NaN"==g&&(g="new_york");GM_setValue("checkcity",g);Ce=g});$("healthpcthit").each(function(){g=$(this).html();"NaN"!=g&&(GM_setValue("healthpcthit",g),Y=g)});
$("healthpctheal").each(function(){g=$(this).html();"NaN"!=g&&(GM_setValue("healthpctheal",g),Cb=g)});$("healthpctwar").each(function(){g=$(this).html();"NaN"!=g&&(GM_setValue("healthpctwar",g),e("Found healthpctwar! "+g),Ya=g)});$("enemylist").each(function(){g=$(this).html();"NaN"!=g&&(GM_setValue("enemylist",g),Ia=g)});1<Ia.length&&1<r&&$("#enemylistdata:first").each(function(){Wa=Ia.split(",");Ge(Wa)});(g=$("hittohealratio").html())&&GM_setValue("hittohealratio",g);if(g=$("hhhstatus").html())GM_setValue("hhhstatus",
g),ke();if(g=$("hitlistheal").html())GM_setValue("hitlistheal",g),Yd=g;$("targetsreload").each(function(){g=$(this).text();"NaN"==g&&(g=5);GM_setValue("targetsreload",g);ae=parseInt(g)});if(g=$("debug").html())GM_setValue("debug",g),kd=g;if(g=$("riglist").html())T=g,"true"==T&&(T="both"),"false"==T&&(T="list"),"maybe"==T&&(T="rig"),e("found riglist, set to:"+T);sa().riglist&&(T=sa().riglist);if(g=$("hhhspeed").html())GM_setValue("hhhspeed",g),ha=parseInt(g);if(g=$("hhhthrottle").html())GM_setValue("hhhthrottle",
g),Ob=g;$("postlist").each(function(){g=$(this).html();"NaN"==g&&(g="");GM_setValue("postlist",g);postlist=g});(g=$("exemptrig").html())&&GM_setValue("exemptrig",g);(g=$("watchrig").html())&&GM_setValue("watchrig",g);(g=$("autorig").html())&&GM_setValue("autorig",g);(g=$("autoriglimit").html())&&GM_setValue("autoriglimit",g);$("autolist").each(function(){g=$(this).html();"NaN"==g&&(g="");GM_setValue("autolist",g);ld=g});$("exemptenforcer").each(function(){g=$(this).html();"NaN"==g&&(g="");GM_setValue("exemptenforcer",
g);Nd=g});$("startjobs").each(function(){g=$(this).html();GM_setValue("startjobs",g);rc=g});$("exemptbounty").each(function(){g=$(this).html();GM_setValue("exemptbounty",g);Qb=g});(g=$("exemptcount").html())&&GM_setValue("exemptcount",g);if(g=$("hhhblock").html())GM_setValue("hhhblock",g),Dc=g;(g=$("hhhbonus").html())&&GM_setValue("hhhbonus",g);$("filterbonus").each(function(){g=$(this).html();GM_setValue("filterbonus",g);Gb=g});if(g=$("currentversion").html())GM_setValue("currentversion",g),Ie=g;
$("lastpage").each(function(){g=$(this).html();GM_setValue("lastpage",g);B=g});var yf=new Date;yf.setMonth(yf.getMonth()+1);k("herex7");(g=$("hhhh").html())&&GM_setValue("hhhh",g);(g=$("hhhd").html())&&GM_setValue("hhhd",g);3E3<rf?(Bb=0.2*U,Ac=0):(Bb=parseInt(0.59*U),Ac=parseInt(0.2*U));(g=$("hhhlist").html())&&GM_setValue("hhhlist",g);(g=$("burnenergylimit").html())&&GM_setValue("burnenergylimit",parseInt(g));if(g=$("keepenergylimit").html())GM_setValue("keepenergylimit",parseInt(g)),Xb=parseInt(g);
k("herex8");$("hhhurl").each(function(){g=$(this).html();GM_setValue("hhhurl",g);Xa=g});$("delay").each(function(){Ja=g=parseInt($(this).text());GM_setValue("watchdelay",g)});$("watchdelay").each(function(){g=parseInt($(this).text());GM_setValue("watchdelay",g);Ja=g});$("stoplevel").each(function(){g=parseInt($(this).text());GM_setValue("stoplevel",g);gd=g});if(g=$("minbountyamt").html())g=""+(0+parseInt(g)),GM_setValue("minbountyamt",g);$("hhhmsg").each(function(){g=$(this).html();GM_setValue("hhhmsg",
g)});(g=$("numwins").html())&&GM_setValue("numwins",g);(g=$("numloss").html())&&GM_setValue("numloss",g);if(g=$("maxbountyamt").html())g=""+(0+parseInt(g)),e("Found maxbounty, setting it="+g),GM_setValue("maxbountyamt",g);$("inmobaction").each(function(){g=$(this).html();GM_setValue("inmobaction",g);qc=g});(g=$("numhits").html())&&GM_setValue("numhits",g);(g=$("burnenergy").html())&&GM_setValue("burnenergy",g);fa=GM_getValue("burnenergy",0);(g=$("forcehit").html())&&GM_setValue("forcehit",parseInt(g));
(g=$("numhealandhits").html())&&GM_setValue("numhealandhits",g);(g=$("playsound").html())&&GM_setValue("playsound",g);(g=$("stopifidie").html())&&GM_setValue("stopifidie",g);(g=$("levelingswitchtoprofile").html())&&GM_setValue("levelingswitchtoprofile",g);(g=$("bigcaptcha").html())&&GM_setValue("bigcaptcha",g);(g=$("autobank").html())&&GM_setValue("autobank",g);(g=$("keepcash").html())&&GM_setValue("keepcash",g);(g=$("autobankmin").html())&&GM_setValue("autobankmin",g);if(g=$("detectduplicates").html())GM_setValue("detectduplicates",
g),Mc=g;(g=$("leveluser").html())&&GM_setValue("leveluser",g);(g=$("numwins").html())&&GM_setValue("numwins",g);(g=$("numloss").html())&&GM_setValue("numloss",g);$("lastlevmsg").each(function(){g=$(this).html();GM_setValue("lastlevmsg",g);Aa=g});0<Xa.indexOf("expired.php")&&0<=r?(Xa="",GM_setValue("hhhurl","")):0<Xa.indexOf("expired.php")&&0>r?M():""!=Xa&&Xa!=window.location.href&&"https://hithuntheal.com/"!=window.location.href&&"https://www.hithuntheal.com/"!=window.location.href&&(va="",e("have url, stopping after we call the page"),
h=!1,0<window.location.href.indexOf("hithuntheal")?window.open("'"+Xa+"'","_blank"):setTimeout(function(){window.location.href=Xa},30));Xa==window.location.href&&(GM_setValue("hhhurl",""),Xa="",M());yb&&kb();firsttimerun=!1;""==ja&&1>I&&!Zf&&!Yc&&(firsttimerun=!0,L=100,GM_setValue("hospcycles",L),ja=1,GM_setValue("forcehit",ja),GM_setValue("instancenum",1),I=1);var Ic=parseInt(3.1415*D);uc=GM_getValue("avexp",0);firsttimerun&&(firsttimerun=!1,window.open("'"+td+"intro.html'","_blank"));var re=!1;
Hc=GM_getValue("lasthealth",-1);ua="";k("aaa1");y(da);k("aaa2");(A||G)&&h&&!Jb&&GM_setValue("stopotherheals",!1);k("aaa3");G&&h&&!Jb&&0<=r&&!vf&&Q&&setTimeout(function(){Ua()},1E3);k("aaa4");G&&vf&&Q&&(e("Version:"+hhhversion),hitlistTest());if(A&&h&&Q){k(I+"/We are on hospital page! Script initialized..."+h);oa=0;k("xA4");g=document.getElementsByClassName("formInputButton");for(J=0;J<g.length;J++)g[J].style.visibility="hidden";var Wb=document.getElementsByClassName("announceTitle");if(0<Wb.length)for(J=
1;J<Wb.length;J++)Wb[J].style.visibility="hidden";Wb=document.getElementsByTagName("heal_form");if(0<Wb.length)for(J=1;J<Wb.length;J++)Wb[J].style.visibility="hidden";Fe='<span id="specialsize2" style="font-size:small"><b></span></b>';$("body").append(Fe);if(shouldistop=GM_getValue("stopotherheals"))e("returning immediately.  supposed to stop!!!"),h=!1;oa=gb=0;k("xA5");my_div=document.getElementById("complete_form");if(document.getElementsByClassName("hospitalText")){g=document.getElementsByClassName("hospitalText");
for(J=0;J<g.length;J++)g[J].innerHTML=g[J].innerHTML.replace(/The Hospital/g,""),g[J].innerHTML=g[J].innerHTML.replace(/Want to Instantly Restore Your Full Health?/g,""),g[J].innerHTML=g[J].innerHTML.replace(/Visit/g,""),g[J].innerHTML=g[J].innerHTML.replace(/./g,""),g[J].innerHTML=g[J].innerHTML.replace(/The Godfather/g,""),g[J].innerHTML=g[J].innerHTML.replace(/You can pay a doctor to regain your health. Doctors must be paid with clean money from/g,""),g[J].innerHTML=g[J].innerHTML.replace(/the bank/g,
""),g[J].innerHTML=g[J].innerHTML.replace(/Cost to Heal :/g,""),g[J].innerHTML=g[J].innerHTML.replace(/Bank Balance :/g,""),kb()}else kb();k("aaa5");ua="";k("aaa6");h&&(1>=p||4==p?La(document.body):1<p&&4>p?X(5):Gd());k("aaa7")}if((G||A)&&"undefined"==qa&&!Jb&&Q)e("cur_energy UNDEFINED reloading = '"+qa+"'"),h=!1,setTimeout(function(){window.location.href=Ga+va},2500);"undefined"==t&&(e("cur_health UNDEFINED, reloading page = '"+t+"'"),h=!1,setTimeout(function(){window.location.href=Ga+va},2500));
lc&&vd&&0>=hb&&Q&&n("HHH: Configuration is set to not pick up bonuses.  Ignoring them..");k("aaa8");if(Vb&&h&&lc&&vd&&0<hb&&0<r&&Q){v&&clearTimeout(v);e("Setting reload in page for Heist/Job bonuses.."+ud);document.body.innerHTML='<a id="hhhlogo" href="https://hithuntheal.com"><img alt="" title="" src="'+logopic+'" height="18" width="32" style="border-style: none;"/></a><font size="2"> HHH will reload this page in <span  id="d2">'+ud+'</span> seconds. Meanwhile, HHH will watch for new items!<style type="text/css" rel="stylesheet">#trynow { border-color: yellow; background-color: #800000; color: yellow; padding: 1px; font-size: xx-small; }margin-bottom: 3px; </style> <INPUT id="trynow" type="submit" onclick="" value="TRY NOW"/> '+
document.body.innerHTML;var zf=document.getElementById("trynow");zf&&zf.addEventListener("click",De,!0);var ce=ud,Af=function(){1<=ce?(ce--,document.getElementById("d2").innerHTML=ce,stopbuttonvalue=GM_getValue("stopbutton","STOP!"),0==ce%5&&(e("Checking for links..."),W=-1,d()),setTimeout(function(){Af()},1E3)):setTimeout(function(){B=GM_getValue("lastpage","");e("Reloading page, countdown expired.");window.location.href=window.location.href},1E3)};Af();reloadtime=1E3*ud}k("aaa9");yb&&0<r&&h&&Q&&
(w(document),window.setTimeout(function(){ra()},500));v&&clearTimeout(v);k("aaa10");k(vc+"/Completed program logic.")}}(function(){function l(a,c){c.src?b.ajax({url:c.src,async:!1,dataType:"script"}):b.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function u(a,c){return a[0]&&parseInt(b.curCSS(a[0],c,!0),10)||0}function E(){return!1}function S(){return!0}function H(a){var c=RegExp("(^|\\.)"+a.type+"(\\.|$)"),d=!0,f=[];b.each(b.data(this,"events").live||
[],function(d,j){if(c.test(j.type)){var o=b(a.target).closest(j.data)[0];o&&f.push({elem:o,fn:j})}});f.sort(function(a,c){return b.data(a.elem,"closest")-b.data(c.elem,"closest")});b.each(f,function(){if(!1===this.fn.call(this.elem,a,this.fn.data))return d=!1});return d}function xa(a,b){return["live",a,b.replace(/\./g,"`").replace(/ /g,"|")].join(".")}function tb(){ed||(ed=!0,document.addEventListener?document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",
arguments.callee,!1);b.ready()},!1):document.attachEvent&&(document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&(document.detachEvent("onreadystatechange",arguments.callee),b.ready())}),document.documentElement.doScroll&&M==M.top&&function(){if(!b.isReady){try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}b.ready()}}()),b.event.add(M,"load",b.ready))}function ia(a,c){var d={};b.each(jd.concat.apply([],jd.slice(0,c)),function(){d[this]=
a});return d}var M=this,Bd=M.jQuery,cd=M.$,b=M.jQuery=M.$=function(a,c){return new b.fn.init(a,c)},cb=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,La=/^.[^:#\[\.,]*$/;b.fn=b.prototype={init:function(a,c){a=a||document;if(a.nodeType)return this[0]=a,this.length=1,this.context=a,this;if("string"===typeof a){var d=cb.exec(a);if(d&&(d[1]||!c))if(d[1])a=b.clean([d[1]],c);else{var f=document.getElementById(d[3]);if(f&&f.id!=d[3])return b().find(a);d=b(f||[]);d.context=document;d.selector=a;return d}else return b(c).find(a)}else if(b.isFunction(a))return b(document).ready(a);
if(a.selector&&a.context)this.selector=a.selector,this.context=a.context;return this.setArray(b.isArray(a)?a:b.makeArray(a))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(a){return void 0===a?Array.prototype.slice.call(this):this[a]},pushStack:function(a,c,d){a=b(a);a.prevObject=this;a.context=this.context;if("find"===c)a.selector=this.selector+(this.selector?" ":"")+d;else if(c)a.selector=this.selector+"."+c+"("+d+")";return a},setArray:function(a){this.length=0;Array.prototype.push.apply(this,
a);return this},each:function(a,c){return b.each(this,a,c)},index:function(a){return b.inArray(a&&a.jquery?a[0]:a,this)},attr:function(a,c,d){var f=a;if("string"===typeof a){if(void 0===c)return this[0]&&b[d||"attr"](this[0],a);f={};f[a]=c}return this.each(function(c){for(a in f)b.attr(d?this.style:this,a,b.prop(this,f[a],d,c,a))})},css:function(a,b){if(("width"==a||"height"==a)&&0>parseFloat(b))b=void 0;return this.attr(a,b,"curCSS")},text:function(a){if("object"!==typeof a&&null!=a)return this.empty().append((this[0]&&
this[0].ownerDocument||document).createTextNode(a));var c="";b.each(a||this,function(){b.each(this.childNodes,function(){8!=this.nodeType&&(c+=1!=this.nodeType?this.nodeValue:b.fn.text([this]))})});return c},wrapAll:function(a){this[0]&&(a=b(a,this[0].ownerDocument).clone(),this[0].parentNode&&a.insertBefore(this[0]),a.map(function(){for(var a=this;a.firstChild;)a=a.firstChild;return a}).append(this));return this},wrapInner:function(a){return this.each(function(){b(this).contents().wrapAll(a)})},
wrap:function(a){return this.each(function(){b(this).wrapAll(a)})},append:function(){return this.domManip(arguments,!0,function(a){1==this.nodeType&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){1==this.nodeType&&this.insertBefore(a,this.firstChild)})},before:function(){return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)})},
end:function(){return this.prevObject||b([])},push:[].push,sort:[].sort,splice:[].splice,find:function(a){if(1===this.length){var c=this.pushStack([],"find",a);c.length=0;b.find(a,this[0],c);return c}return this.pushStack(b.unique(b.map(this,function(c){return b.find(a,c)})),"find",a)},clone:function(a){var c=this.map(function(){if(!b.support.noCloneEvent&&!b.isXMLDoc(this)){var a=this.outerHTML;if(!a)a=this.ownerDocument.createElement("div"),a.appendChild(this.cloneNode(!0)),a=a.innerHTML;return b.clean([a.replace(/ jQuery\d+="(?:\d+|null)"/g,
"").replace(/^\s*/,"")])[0]}return this.cloneNode(!0)});if(!0===a){var d=this.find("*").andSelf(),f=0;c.find("*").andSelf().each(function(){if(this.nodeName===d[f].nodeName){var a=b.data(d[f],"events"),c;for(c in a)for(var o in a[c])b.event.add(this,c,a[c][o],a[c][o].data);f++}})}return c},filter:function(a){return this.pushStack(b.isFunction(a)&&b.grep(this,function(b,d){return a.call(b,d)})||b.multiFilter(a,b.grep(this,function(a){return 1===a.nodeType})),"filter",a)},closest:function(a){var c=
b.expr.match.POS.test(a)?b(a):null,d=0;return this.map(function(){for(var f=this;f&&f.ownerDocument;){if(c?-1<c.index(f):b(f).is(a))return b.data(f,"closest",d),f;f=f.parentNode;d++}})},not:function(a){if("string"===typeof a){if(La.test(a))return this.pushStack(b.multiFilter(a,this,!0),"not",a);a=b.multiFilter(a,this)}var c=a.length&&void 0!==a[a.length-1]&&!a.nodeType;return this.filter(function(){return c?0>b.inArray(this,a):this!=a})},add:function(a){return this.pushStack(b.unique(b.merge(this.get(),
"string"===typeof a?b(a):b.makeArray(a))))},is:function(a){return!!a&&0<b.multiFilter(a,this).length},hasClass:function(a){return!!a&&this.is("."+a)},val:function(a){if(void 0===a){var c=this[0];if(c){if(b.nodeName(c,"option"))return(c.attributes.value||{}).specified?c.value:c.text;if(b.nodeName(c,"select")){var d=c.selectedIndex,f=[],i=c.options,c="select-one"==c.type;if(0>d)return null;for(var j=c?d:0,d=c?d+1:i.length;j<d;j++){var o=i[j];if(o.selected){a=b(o).val();if(c)return a;f.push(a)}}return f}return(c.value||
"").replace(/\r/g,"")}}else return"number"===typeof a&&(a+=""),this.each(function(){if(1==this.nodeType)if(b.isArray(a)&&/radio|checkbox/.test(this.type))this.checked=0<=b.inArray(this.value,a)||0<=b.inArray(this.name,a);else if(b.nodeName(this,"select")){var c=b.makeArray(a);b("option",this).each(function(){this.selected=0<=b.inArray(this.value,c)||0<=b.inArray(this.text,c)});if(!c.length)this.selectedIndex=-1}else this.value=a})},html:function(a){return void 0===a?this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,
""):null:this.empty().append(a)},replaceWith:function(a){return this.after(a).remove()},eq:function(a){return this.slice(a,+a+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(a){return this.pushStack(b.map(this,function(b,d){return a.call(b,d,b)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(a,c,d){if(this[0]){var f=(this[0].ownerDocument||this[0]).createDocumentFragment(),
a=b.clean(a,this[0].ownerDocument||this[0],f),i=f.firstChild;if(i)for(var j=0,o=this.length;j<o;j++)d.call(c&&b.nodeName(this[j],"table")&&b.nodeName(i,"tr")?this[j].getElementsByTagName("tbody")[0]||this[j].appendChild(this[j].ownerDocument.createElement("tbody")):this[j],1<this.length||0<j?f.cloneNode(!0):f);a&&b.each(a,l)}return this}};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var a=arguments[0]||{},c=1,d=arguments.length,f=!1,i;"boolean"===typeof a&&(f=a,a=arguments[1]||{},c=2);
"object"!==typeof a&&!b.isFunction(a)&&(a={});d==c&&(a=this,--c);for(;c<d;c++)if(null!=(i=arguments[c]))for(var j in i){var o=a[j],y=i[j];a!==y&&(f&&y&&"object"===typeof y&&!y.nodeType?a[j]=b.extend(f,o||(null!=y.length?[]:{}),y):void 0!==y&&(a[j]=y))}return a};var Ma=/z-?index|font-?weight|opacity|zoom|line-?height/i,Gd=document.defaultView||{},fd=Object.prototype.toString;b.extend({noConflict:function(a){M.$=cd;if(a)M.jQuery=Bd;return b},isFunction:function(a){return"[object Function]"===fd.call(a)},
isArray:function(a){return"[object Array]"===fd.call(a)},isXMLDoc:function(a){return 9===a.nodeType&&"HTML"!==a.documentElement.nodeName||!!a.ownerDocument&&b.isXMLDoc(a.ownerDocument)},globalEval:function(a){if(a&&/\S/.test(a)){var c=document.getElementsByTagName("head")[0]||document.documentElement,d=document.createElement("script");d.type="text/javascript";b.support.scriptEval?d.appendChild(document.createTextNode(a)):d.text=a;c.insertBefore(d,c.firstChild);c.removeChild(d)}},nodeName:function(a,
b){return a.nodeName&&a.nodeName.toUpperCase()==b.toUpperCase()},each:function(a,b,d){var f,i=0,j=a.length;if(d)if(void 0===j)for(f in a){if(!1===b.apply(a[f],d))break}else for(;i<j&&!(!1===b.apply(a[i++],d)););else if(void 0===j)for(f in a){if(!1===b.call(a[f],f,a[f]))break}else for(d=a[0];i<j&&!1!==b.call(d,i,d);d=a[++i]);return a},prop:function(a,c,d,f,i){b.isFunction(c)&&(c=c.call(a,f));return"number"===typeof c&&"curCSS"==d&&!Ma.test(i)?c+"px":c},className:{add:function(a,c){b.each((c||"").split(/\s+/),
function(c,f){1==a.nodeType&&!b.className.has(a.className,f)&&(a.className+=(a.className?" ":"")+f)})},remove:function(a,c){if(1==a.nodeType)a.className=void 0!==c?b.grep(a.className.split(/\s+/),function(a){return!b.className.has(c,a)}).join(" "):""},has:function(a,c){return a&&-1<b.inArray(c,(a.className||a).toString().split(/\s+/))}},swap:function(a,b,d){var f={},i;for(i in b)f[i]=a.style[i],a.style[i]=b[i];d.call(a);for(i in b)a.style[i]=f[i]},css:function(a,c,d,f){if("width"==c||"height"==c){var i,
d={position:"absolute",visibility:"hidden",display:"block"},j="width"==c?["Left","Right"]:["Top","Bottom"],o=function(){i="width"==c?a.offsetWidth:a.offsetHeight;"border"!==f&&b.each(j,function(){f||(i-=parseFloat(b.curCSS(a,"padding"+this,!0))||0);i="margin"===f?i+(parseFloat(b.curCSS(a,"margin"+this,!0))||0):i-(parseFloat(b.curCSS(a,"border"+this+"Width",!0))||0)})};0!==a.offsetWidth?o():b.swap(a,d,o);return Math.max(0,Math.round(i))}return b.curCSS(a,c,d)},curCSS:function(a,c,d){var f,i=a.style;
if("opacity"==c&&!b.support.opacity)return f=b.attr(i,"opacity"),""==f?"1":f;c.match(/float/i)&&(c=Db);if(!d&&i&&i[c])f=i[c];else if(Gd.getComputedStyle)c.match(/float/i)&&(c="float"),c=c.replace(/([A-Z])/g,"-$1").toLowerCase(),(a=Gd.getComputedStyle(a,null))&&(f=a.getPropertyValue(c)),"opacity"==c&&""==f&&(f="1");else if(a.currentStyle&&(f=c.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()}),f=a.currentStyle[c]||a.currentStyle[f],!/^\d+(px)?$/i.test(f)&&/^\d/.test(f)))c=i.left,d=a.runtimeStyle.left,
a.runtimeStyle.left=a.currentStyle.left,i.left=f||0,f=i.pixelLeft+"px",i.left=c,a.runtimeStyle.left=d;return f},clean:function(a,c,d){c=c||document;"undefined"===typeof c.createElement&&(c=c.ownerDocument||c[0]&&c[0].ownerDocument||document);if(!d&&1===a.length&&"string"===typeof a[0]){var f=/^<(\w+)\s*\/?>$/.exec(a[0]);if(f)return[c.createElement(f[1])]}var i=[],f=[],j=c.createElement("div");b.each(a,function(a,d){"number"===typeof d&&(d+="");if(d){if("string"===typeof d){var d=d.replace(/(<(\w+)[^>]*?)\/>/g,
function(a,b,c){return c.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?a:b+"></"+c+">"}),f=d.replace(/^\s+/,"").substring(0,10).toLowerCase(),l=!f.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!f.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||f.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!f.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!f.indexOf("<td")||!f.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||
!f.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!b.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];for(j.innerHTML=l[1]+d+l[2];l[0]--;)j=j.lastChild;if(!b.support.tbody)for(var u=/<tbody/i.test(d),f=!f.indexOf("<table")&&!u?j.firstChild&&j.firstChild.childNodes:"<table>"==l[1]&&!u?j.childNodes:[],l=f.length-1;0<=l;--l)b.nodeName(f[l],"tbody")&&!f[l].childNodes.length&&f[l].parentNode.removeChild(f[l]);!b.support.leadingWhitespace&&/^\s/.test(d)&&j.insertBefore(c.createTextNode(d.match(/^\s*/)[0]),
j.firstChild);d=b.makeArray(j.childNodes)}d.nodeType?i.push(d):i=b.merge(i,d)}});if(d){for(a=0;i[a];a++)b.nodeName(i[a],"script")&&(!i[a].type||"text/javascript"===i[a].type.toLowerCase())?f.push(i[a].parentNode?i[a].parentNode.removeChild(i[a]):i[a]):(1===i[a].nodeType&&i.splice.apply(i,[a+1,0].concat(b.makeArray(i[a].getElementsByTagName("script")))),d.appendChild(i[a]));return f}return i},attr:function(a,c,d){if(a&&!(3==a.nodeType||8==a.nodeType)){var f=!b.isXMLDoc(a),i=void 0!==d,c=f&&b.props[c]||
c;if(a.tagName){var j=/href|src|style/.test(c);if(c in a&&f&&!j){if(i){if("type"==c&&b.nodeName(a,"input")&&a.parentNode)throw"type property can't be changed";a[c]=d}if(b.nodeName(a,"form")&&a.getAttributeNode(c))return a.getAttributeNode(c).nodeValue;return"tabIndex"==c?(c=a.getAttributeNode("tabIndex"))&&c.specified?c.value:a.nodeName.match(/(button|input|object|select|textarea)/i)?0:a.nodeName.match(/^(a|area)$/i)&&a.href?0:void 0:a[c]}if(!b.support.style&&f&&"style"==c)return b.attr(a.style,"cssText",
d);i&&a.setAttribute(c,""+d);a=!b.support.hrefNormalized&&f&&j?a.getAttribute(c,2):a.getAttribute(c);return null===a?void 0:a}if(!b.support.opacity&&"opacity"==c){if(i)a.zoom=1,a.filter=(a.filter||"").replace(/alpha\([^)]*\)/,"")+("NaN"==parseInt(d)+""?"":"alpha(opacity="+100*d+")");return a.filter&&0<=a.filter.indexOf("opacity=")?parseFloat(a.filter.match(/opacity=([^)]*)/)[1])/100+"":""}c=c.replace(/-([a-z])/ig,function(a,b){return b.toUpperCase()});i&&(a[c]=d);return a[c]}},trim:function(a){return(a||
"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var c=[];if(null!=a){var d=a.length;if(null==d||"string"===typeof a||b.isFunction(a)||a.setInterval)c[0]=a;else for(;d;)c[--d]=a[d]}return c},inArray:function(a,b){for(var d=0,f=b.length;d<f;d++)if(b[d]===a)return d;return-1},merge:function(a,c){var d=0,f,i=a.length;if(b.support.getAll)for(;null!=(f=c[d++]);)a[i++]=f;else for(;null!=(f=c[d++]);)8!=f.nodeType&&(a[i++]=f);return a},unique:function(a){var c=[],d={};try{for(var f=0,i=a.length;f<i;f++){var j=
b.data(a[f]);d[j]||(d[j]=!0,c.push(a[f]))}}catch(o){c=a}return c},grep:function(a,b,d){for(var f=[],i=0,j=a.length;i<j;i++)!d!=!b(a[i],i)&&f.push(a[i]);return f},map:function(a,b){for(var d=[],f=0,i=a.length;f<i;f++){var j=b(a[f],f);null!=j&&(d[d.length]=j)}return d.concat.apply([],d)}});var X=navigator.userAgent.toLowerCase();b.browser={version:(X.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(X),opera:/opera/.test(X),msie:/msie/.test(X)&&!/opera/.test(X),mozilla:/mozilla/.test(X)&&
!/(compatible|webkit)/.test(X)};b.each({parent:function(a){return a.parentNode},parents:function(a){return b.dir(a,"parentNode")},next:function(a){return b.nth(a,2,"nextSibling")},prev:function(a){return b.nth(a,2,"previousSibling")},nextAll:function(a){return b.dir(a,"nextSibling")},prevAll:function(a){return b.dir(a,"previousSibling")},siblings:function(a){return b.sibling(a.parentNode.firstChild,a)},children:function(a){return b.sibling(a.firstChild)},contents:function(a){return b.nodeName(a,"iframe")?
a.contentDocument||a.contentWindow.document:b.makeArray(a.childNodes)}},function(a,c){b.fn[a]=function(d){var f=b.map(this,c);d&&"string"==typeof d&&(f=b.multiFilter(d,f));return this.pushStack(b.unique(f),a,d)}});b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,c){b.fn[a]=function(d){for(var f=[],i=b(d),j=0,o=i.length;j<o;j++){var y=(0<j?this.clone(!0):this).get();b.fn[c].apply(b(i[j]),y);f=f.concat(y)}return this.pushStack(f,
a,d)}});b.each({removeAttr:function(a){b.attr(this,a,"");1==this.nodeType&&this.removeAttribute(a)},addClass:function(a){b.className.add(this,a)},removeClass:function(a){b.className.remove(this,a)},toggleClass:function(a,c){"boolean"!==typeof c&&(c=!b.className.has(this,a));b.className[c?"add":"remove"](this,a)},remove:function(a){if(!a||b.filter(a,[this]).length)b("*",this).add([this]).each(function(){b.event.remove(this);b.removeData(this)}),this.parentNode&&this.parentNode.removeChild(this)},empty:function(){for(b(this).children().remove();this.firstChild;)this.removeChild(this.firstChild)}},
function(a,c){b.fn[a]=function(){return this.each(c,arguments)}});var vb="jQuery"+ +new Date,pc=0,Gc={};b.extend({cache:{},data:function(a,c,d){var a=a==M?Gc:a,f=a[vb];f||(f=a[vb]=++pc);c&&!b.cache[f]&&(b.cache[f]={});void 0!==d&&(b.cache[f][c]=d);return c?b.cache[f][c]:f},removeData:function(a,c){var a=a==M?Gc:a,d=a[vb];if(c){if(b.cache[d]){delete b.cache[d][c];c="";for(c in b.cache[d])break;c||b.removeData(a)}}else{try{delete a[vb]}catch(f){a.removeAttribute&&a.removeAttribute(vb)}delete b.cache[d]}},
queue:function(a,c,d){if(a){var c=(c||"fx")+"queue",f=b.data(a,c);!f||b.isArray(d)?f=b.data(a,c,b.makeArray(d)):d&&f.push(d)}return f},dequeue:function(a,c){var d=b.queue(a,c),f=d.shift();if(!c||"fx"===c)f=d[0];void 0!==f&&f.call(a)}});b.fn.extend({data:function(a,c){var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(void 0===c){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);void 0===f&&this.length&&(f=b.data(this[0],a));return void 0===f&&d[1]?this.data(d[0]):f}return this.trigger("setData"+d[1]+
"!",[d[0],c]).each(function(){b.data(this,a,c)})},removeData:function(a){return this.each(function(){b.removeData(this,a)})},queue:function(a,c){"string"!==typeof a&&(c=a,a="fx");return void 0===c?b.queue(this[0],a):this.each(function(){var d=b.queue(this,a,c);"fx"==a&&1==d.length&&d[0].call(this)})},dequeue:function(a){return this.each(function(){b.dequeue(this,a)})}});(function(){function a(a,b,c,d,f,i){for(var f="previousSibling"==a&&!i,j=0,y=d.length;j<y;j++){var o=d[j];if(o){if(f&&1===o.nodeType)o.sizcache=
c,o.sizset=j;for(var o=o[a],n=!1;o;){if(o.sizcache===c){n=d[o.sizset];break}if(1===o.nodeType&&!i)o.sizcache=c,o.sizset=j;if(o.nodeName===b){n=o;break}o=o[a]}d[j]=n}}}function c(a,b,c,d,f,i){for(var f="previousSibling"==a&&!i,o=0,y=d.length;o<y;o++){var l=d[o];if(l){if(f&&1===l.nodeType)l.sizcache=c,l.sizset=o;for(var l=l[a],n=!1;l;){if(l.sizcache===c){n=d[l.sizset];break}if(1===l.nodeType){if(!i)l.sizcache=c,l.sizset=o;if("string"!==typeof b){if(l===b){n=!0;break}}else if(0<j.filter(b,[l]).length){n=
l;break}}l=l[a]}d[o]=n}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,f=0,i=Object.prototype.toString,j=function(a,b,c,f){c=c||[];b=b||document;if(1!==b.nodeType&&9!==b.nodeType)return[];if(!a||"string"!==typeof a)return c;var l=[],na,sa,M,X=!0;for(d.lastIndex=0;null!==(na=d.exec(a));)if(l.push(na[1]),na[2]){M=RegExp.rightContext;break}if(1<l.length&&y.exec(a))if(2===l.length&&o.relative[l[0]])na=H(l[0]+l[1],b);else for(na=
o.relative[l[0]]?[b]:j(l.shift(),b);l.length;)a=l.shift(),o.relative[a]&&(a+=l.shift()),na=H(a,na);else{na=f?{expr:l.pop(),set:u(f)}:j.find(l.pop(),1===l.length&&b.parentNode?b.parentNode:b,V(b));na=j.filter(na.expr,na.set);for(0<l.length?sa=u(na):X=!1;l.length;){var n=l.pop(),Ua=n;o.relative[n]?Ua=l.pop():n="";null==Ua&&(Ua=b);o.relative[n](sa,Ua,V(b))}}sa||(sa=na);if(!sa)throw"Syntax error, unrecognized expression: "+(n||a);if("[object Array]"===i.call(sa))if(X)if(1===b.nodeType)for(a=0;null!=sa[a];a++)sa[a]&&
(!0===sa[a]||1===sa[a].nodeType&&S(b,sa[a]))&&c.push(na[a]);else for(a=0;null!=sa[a];a++)sa[a]&&1===sa[a].nodeType&&c.push(na[a]);else c.push.apply(c,sa);else u(sa,c);if(M&&(j(M,b,c,f),E&&(hasDuplicate=!1,c.sort(E),hasDuplicate)))for(a=1;a<c.length;a++)c[a]===c[a-1]&&c.splice(a--,1);return c};j.matches=function(a,b){return j(a,null,null,b)};j.find=function(a,b,c){var d,f;if(!a)return[];for(var i=0,j=o.order.length;i<j;i++){var l=o.order[i];if(f=o.match[l].exec(a)){var y=RegExp.leftContext;if("\\"!==
y.substr(y.length-1)&&(f[1]=(f[1]||"").replace(/\\/g,""),d=o.find[l](f,b,c),null!=d)){a=a.replace(o.match[l],"");break}}}d||(d=b.getElementsByTagName("*"));return{set:d,expr:a}};j.filter=function(a,b,c,d){for(var f=a,i=[],j=b,l,y,n=b&&b[0]&&V(b[0]);a&&b.length;){for(var u in o.filter)if(null!=(l=o.match[u].exec(a))){var M=o.filter[u],E,H;y=!1;j==i&&(i=[]);if(o.preFilter[u])if(l=o.preFilter[u](l,j,c,i,d,n)){if(!0===l)continue}else y=E=!0;if(l)for(var S=0;null!=(H=j[S]);S++)if(H){E=M(H,l,S,j);var Ua=
d^!!E;c&&null!=E?Ua?y=!0:j[S]=!1:Ua&&(i.push(H),y=!0)}if(void 0!==E){c||(j=i);a=a.replace(o.match[u],"");if(!y)return[];break}}if(a==f){if(null==y)throw"Syntax error, unrecognized expression: "+a;break}f=a}return j};var o=j.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,
CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")}},relative:{"+":function(a,b,c){var d="string"===typeof b,f=d&&!/\W/.test(b),d=d&&!f;f&&!c&&(b=b.toUpperCase());for(var c=0,f=a.length,i;c<f;c++)if(i=a[c]){for(;(i=i.previousSibling)&&
1!==i.nodeType;);a[c]=d||i&&i.nodeName===b?i||!1:i===b}d&&j.filter(b,a,!0)},">":function(a,b,c){var d="string"===typeof b;if(d&&!/\W/.test(b))for(var b=c?b:b.toUpperCase(),c=0,f=a.length;c<f;c++){var i=a[c];if(i)d=i.parentNode,a[c]=d.nodeName===b?d:!1}else{c=0;for(f=a.length;c<f;c++)(i=a[c])&&(a[c]=d?i.parentNode:i.parentNode===b);d&&j.filter(b,a,!0)}},"":function(b,d,i){var j=f++,l=c;if(!d.match(/\W/))var o=d=i?d:d.toUpperCase(),l=a;l("parentNode",d,j,b,o,i)},"~":function(b,d,i){var j=f++,l=c;if("string"===
typeof d&&!d.match(/\W/))var o=d=i?d:d.toUpperCase(),l=a;l("previousSibling",d,j,b,o,i)}},find:{ID:function(a,b,c){if("undefined"!==typeof b.getElementById&&!c)return(a=b.getElementById(a[1]))?[a]:[]},NAME:function(a,b){if("undefined"!==typeof b.getElementsByName){for(var c=[],d=b.getElementsByName(a[1]),f=0,i=d.length;f<i;f++)d[f].getAttribute("name")===a[1]&&c.push(d[f]);return 0===c.length?null:c}},TAG:function(a,b){return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,f,i){a=
" "+a[1].replace(/\\/g,"")+" ";if(i)return a;for(var i=0,j;null!=(j=b[i]);i++)j&&(f^(j.className&&0<=(" "+j.className+" ").indexOf(a))?c||d.push(j):c&&(b[i]=!1));return!1},ID:function(a){return a[1].replace(/\\/g,"")},TAG:function(a,b){for(var c=0;!1===b[c];c++);return b[c]&&V(b[c])?a[1]:a[1].toUpperCase()},CHILD:function(a){if("nth"==a[1]){var b=/(-?)(\d*)n((?:\+|-)?\d*)/.exec("even"==a[2]&&"2n"||"odd"==a[2]&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}a[0]=f++;
return a},ATTR:function(a,b,c,d,f,i){b=a[1].replace(/\\/g,"");!i&&o.attrMap[b]&&(a[1]=o.attrMap[b]);"~="===a[2]&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(a,b,c,f,i){if("not"===a[1])if(1<a[3].match(d).length||/^\w/.test(a[3]))a[3]=j(a[3],null,null,b);else return a=j.filter(a[3],b,c,1^i),c||f.push.apply(f,a),!1;else if(o.match.POS.test(a[0])||o.match.CHILD.test(a[0]))return!0;return a},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return!1===a.disabled&&"hidden"!==a.type},
disabled:function(a){return!0===a.disabled},checked:function(a){return!0===a.checked},selected:function(a){return!0===a.selected},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!j(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.type},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===
a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||"BUTTON"===a.nodeName.toUpperCase()},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return 0===b},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return 0===b%2},odd:function(a,b){return 1===b%2},lt:function(a,b,c){return b<c[3]-0},gt:function(a,
b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0==b},eq:function(a,b,c){return c[3]-0==b}},filter:{PSEUDO:function(a,b,c,d){var f=b[1],i=o.filters[f];if(i)return i(a,c,b,d);if("contains"===f)return 0<=(a.textContent||a.innerText||"").indexOf(b[3]);if("not"===f){b=b[3];c=0;for(d=b.length;c<d;c++)if(b[c]===a)return!1;return!0}},CHILD:function(a,b){var c=b[1],d=a;switch(c){case "only":case "first":for(;d=d.previousSibling;)if(1===d.nodeType)return!1;if("first"==c)return!0;d=a;case "last":for(;d=
d.nextSibling;)if(1===d.nodeType)return!1;return!0;case "nth":var c=b[2],f=b[3];if(1==c&&0==f)return!0;var i=b[0],j=a.parentNode;if(j&&(j.sizcache!==i||!a.nodeIndex)){for(var l=0,d=j.firstChild;d;d=d.nextSibling)if(1===d.nodeType)d.nodeIndex=++l;j.sizcache=i}d=a.nodeIndex-f;return 0==c?0==d:0==d%c&&0<=d/c}},ID:function(a,b){return 1===a.nodeType&&a.getAttribute("id")===b},TAG:function(a,b){return"*"===b&&1===a.nodeType||a.nodeName===b},CLASS:function(a,b){return-1<(" "+(a.className||a.getAttribute("class"))+
" ").indexOf(b)},ATTR:function(a,b){var c=b[1],c=o.attrHandle[c]?o.attrHandle[c](a):null!=a[c]?a[c]:a.getAttribute(c),d=c+"",f=b[2],i=b[4];return null==c?"!="===f:"="===f?d===i:"*="===f?0<=d.indexOf(i):"~="===f?0<=(" "+d+" ").indexOf(i):!i?d&&!1!==c:"!="===f?d!=i:"^="===f?0===d.indexOf(i):"$="===f?d.substr(d.length-i.length)===i:"|="===f?d===i||d.substr(0,i.length+1)===i+"-":!1},POS:function(a,b,c,d){var f=o.setFilters[b[2]];if(f)return f(a,c,b,d)}}},y=o.match.POS,l;for(l in o.match)o.match[l]=RegExp(o.match[l].source+
/(?![^\[]*\])(?![^\(]*\))/.source);var u=function(a,b){a=Array.prototype.slice.call(a);return b?(b.push.apply(b,a),b):a};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(M){u=function(a,b){var c=b||[];if("[object Array]"===i.call(a))Array.prototype.push.apply(c,a);else if("number"===typeof a.length)for(var d=0,f=a.length;d<f;d++)c.push(a[d]);else for(d=0;a[d];d++)c.push(a[d]);return c}}var E;document.documentElement.compareDocumentPosition?E=function(a,b){var c=a.compareDocumentPosition(b)&
4?-1:a===b?0:1;0===c&&(hasDuplicate=!0);return c}:"sourceIndex"in document.documentElement?E=function(a,b){var c=a.sourceIndex-b.sourceIndex;0===c&&(hasDuplicate=!0);return c}:document.createRange&&(E=function(a,b){var c=a.ownerDocument.createRange(),d=b.ownerDocument.createRange();c.selectNode(a);c.collapse(!0);d.selectNode(b);d.collapse(!0);c=c.compareBoundaryPoints(Range.START_TO_END,d);0===c&&(hasDuplicate=!0);return c});(function(){var a=document.createElement("form"),b="script"+(new Date).getTime();
a.innerHTML="<input name='"+b+"'/>";var c=document.documentElement;c.insertBefore(a,c.firstChild);if(document.getElementById(b))o.find.ID=function(a,b,c){if("undefined"!==typeof b.getElementById&&!c)return(b=b.getElementById(a[1]))?b.id===a[1]||"undefined"!==typeof b.getAttributeNode&&b.getAttributeNode("id").nodeValue===a[1]?[b]:void 0:[]},o.filter.ID=function(a,b){var c="undefined"!==typeof a.getAttributeNode&&a.getAttributeNode("id");return 1===a.nodeType&&c&&c.nodeValue===b};c.removeChild(a)})();
(function(){var a=document.createElement("div");a.appendChild(document.createComment(""));if(0<a.getElementsByTagName("*").length)o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if("*"===a[1]){for(var d=[],f=0;c[f];f++)1===c[f].nodeType&&d.push(c[f]);c=d}return c};a.innerHTML="<a href='#'></a>";if(a.firstChild&&"undefined"!==typeof a.firstChild.getAttribute&&"#"!==a.firstChild.getAttribute("href"))o.attrHandle.href=function(a){return a.getAttribute("href",2)}})();document.querySelectorAll&&
function(){var a=j,b=document.createElement("div");b.innerHTML="<p class='TEST'></p>";if(!(b.querySelectorAll&&0===b.querySelectorAll(".TEST").length))j=function(b,c,d,f){c=c||document;if(!f&&9===c.nodeType&&!V(c))try{return u(c.querySelectorAll(b),d)}catch(i){}return a(b,c,d,f)},j.find=a.find,j.filter=a.filter,j.selectors=a.selectors,j.matches=a.matches}();document.getElementsByClassName&&document.documentElement.getElementsByClassName&&function(){var a=document.createElement("div");a.innerHTML=
"<div class='test e'></div><div class='test'></div>";if(0!==a.getElementsByClassName("e").length&&(a.lastChild.className="e",1!==a.getElementsByClassName("e").length))o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if("undefined"!==typeof b.getElementsByClassName&&!c)return b.getElementsByClassName(a[1])}}();var S=document.compareDocumentPosition?function(a,b){return a.compareDocumentPosition(b)&16}:function(a,b){return a!==b&&(a.contains?a.contains(b):!0)},V=function(a){return 9===a.nodeType&&
"HTML"!==a.documentElement.nodeName||!!a.ownerDocument&&V(a.ownerDocument)},H=function(a,b){for(var c=[],d="",f,i=b.nodeType?[b]:b;f=o.match.PSEUDO.exec(a);)d+=f[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;f=0;for(var l=i.length;f<l;f++)j(a,i[f],c);return j.filter(d,c)};b.find=j;b.filter=j.filter;b.expr=j.selectors;b.expr[":"]=b.expr.filters;j.selectors.filters.hidden=function(a){return 0===a.offsetWidth||0===a.offsetHeight};j.selectors.filters.visible=function(a){return 0<a.offsetWidth||
0<a.offsetHeight};j.selectors.filters.animated=function(a){return b.grep(b.timers,function(b){return a===b.elem}).length};b.multiFilter=function(a,b,c){c&&(a=":not("+a+")");return j.matches(a,b)};b.dir=function(a,b){for(var c=[],d=a[b];d&&d!=document;)1==d.nodeType&&c.push(d),d=d[b];return c};b.nth=function(a,b,c){for(var b=b||1,d=0;a&&!(1==a.nodeType&&++d==b);a=a[c]);return a};b.sibling=function(a,b){for(var c=[];a;a=a.nextSibling)1==a.nodeType&&a!=b&&c.push(a);return c}})();b.event={add:function(a,
c,d,f){if(!(3==a.nodeType||8==a.nodeType)){a.setInterval&&a!=M&&(a=M);if(!d.guid)d.guid=this.guid++;if(void 0!==f)d=this.proxy(d),d.data=f;var i=b.data(a,"events")||b.data(a,"events",{}),j=b.data(a,"handle")||b.data(a,"handle",function(){return"undefined"!==typeof b&&!b.event.triggered?b.event.handle.apply(arguments.callee.elem,arguments):void 0});j.elem=a;b.each(c.split(/\s+/),function(c,l){var u=l.split("."),l=u.shift();d.type=u.slice().sort().join(".");var E=i[l];b.event.specialAll[l]&&b.event.specialAll[l].setup.call(a,
f,u);if(!E&&(E=i[l]={},!b.event.special[l]||!1===b.event.special[l].setup.call(a,f,u)))a.addEventListener?a.addEventListener(l,j,!1):a.attachEvent&&a.attachEvent("on"+l,j);E[d.guid]=d;b.event.global[l]=!0});a=null}},guid:1,global:{},remove:function(a,c,d){if(!(3==a.nodeType||8==a.nodeType)){var f=b.data(a,"events"),i;if(f){if(void 0===c||"string"===typeof c&&"."==c.charAt(0))for(var j in f)this.remove(a,j+(c||""));else{if(c.type)d=c.handler,c=c.type;b.each(c.split(/\s+/),function(c,j){var l=j.split("."),
j=l.shift(),u=RegExp("(^|\\.)"+l.slice().sort().join(".*\\.")+"(\\.|$)");if(f[j]){if(d)delete f[j][d.guid];else for(var E in f[j])u.test(f[j][E].type)&&delete f[j][E];b.event.specialAll[j]&&b.event.specialAll[j].teardown.call(a,l);for(i in f[j])break;if(!i){if(!b.event.special[j]||!1===b.event.special[j].teardown.call(a,l))a.removeEventListener?a.removeEventListener(j,b.data(a,"handle"),!1):a.detachEvent&&a.detachEvent("on"+j,b.data(a,"handle"));i=null;delete f[j]}}})}for(i in f)break;if(!i){if(c=
b.data(a,"handle"))c.elem=null;b.removeData(a,"events");b.removeData(a,"handle")}}}},trigger:function(a,c,d,f){var i=a.type||a;if(!f){a="object"===typeof a?a[vb]?a:b.extend(b.Event(i),a):b.Event(i);if(0<=i.indexOf("!"))a.type=i=i.slice(0,-1),a.exclusive=!0;d||(a.stopPropagation(),this.global[i]&&b.each(b.cache,function(){this.events&&this.events[i]&&b.event.trigger(a,c,this.handle.elem)}));if(!d||3==d.nodeType||8==d.nodeType)return;a.result=void 0;a.target=d;c=b.makeArray(c);c.unshift(a)}a.currentTarget=
d;var j=b.data(d,"handle");j&&j.apply(d,c);if((!d[i]||b.nodeName(d,"a")&&"click"==i)&&d["on"+i]&&!1===d["on"+i].apply(d,c))a.result=!1;if(!f&&d[i]&&!a.isDefaultPrevented()&&!(b.nodeName(d,"a")&&"click"==i)){this.triggered=!0;try{d[i]()}catch(l){}}this.triggered=!1;a.isPropagationStopped()||(d=d.parentNode||d.ownerDocument)&&b.event.trigger(a,c,d,!0)},handle:function(a){var c,d,a=arguments[0]=b.event.fix(a||M.event);a.currentTarget=this;d=a.type.split(".");a.type=d.shift();c=!d.length&&!a.exclusive;
var f=RegExp("(^|\\.)"+d.slice().sort().join(".*\\.")+"(\\.|$)");d=(b.data(this,"events")||{})[a.type];for(var i in d){var j=d[i];if(c||f.test(j.type)){a.handler=j;a.data=j.data;j=j.apply(this,arguments);if(void 0!==j)a.result=j,!1===j&&(a.preventDefault(),a.stopPropagation());if(a.isImmediatePropagationStopped())break}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(a){if(a[vb])return a;for(var c=a,a=b.Event(c),d=this.props.length,f;d;)f=this.props[--d],a[f]=c[f];if(!a.target)a.target=a.srcElement||document;if(3==a.target.nodeType)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement==a.target?a.toElement:a.fromElement;if(null==a.pageX&&null!=a.clientX)c=document.documentElement,d=document.body,a.pageX=a.clientX+(c&&c.scrollLeft||d&&d.scrollLeft||0)-(c.clientLeft||0),a.pageY=a.clientY+(c&&c.scrollTop||d&&d.scrollTop||
0)-(c.clientTop||0);if(!a.which&&(a.charCode||0===a.charCode?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},proxy:function(a,b){b=b||function(){return a.apply(this,arguments)};b.guid=a.guid=a.guid||b.guid||this.guid++;return b},special:{ready:{setup:tb,teardown:function(){}}},specialAll:{live:{setup:function(a,c){b.event.add(this,c[0],H)},teardown:function(a){if(a.length){var c=
0,d=RegExp("(^|\\.)"+a[0]+"(\\.|$)");b.each(b.data(this,"events").live||{},function(){d.test(this.type)&&c++});1>c&&b.event.remove(this,a[0],H)}}}}};b.Event=function(a){if(!this.preventDefault)return new b.Event(a);a&&a.type?(this.originalEvent=a,this.type=a.type):this.type=a;this.timeStamp=+new Date;this[vb]=!0};b.Event.prototype={preventDefault:function(){this.isDefaultPrevented=S;var a=this.originalEvent;if(a)a.preventDefault&&a.preventDefault(),a.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=
S;var a=this.originalEvent;if(a)a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=S;this.stopPropagation()},isDefaultPrevented:E,isPropagationStopped:E,isImmediatePropagationStopped:E};var hd=function(a){for(var c=a.relatedTarget;c&&c!=this;)try{c=c.parentNode}catch(d){c=this}if(c!=this)a.type=a.data,b.event.handle.apply(this,arguments)};b.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(a,c){b.event.special[c]=
{setup:function(){b.event.add(this,a,hd,c)},teardown:function(){b.event.remove(this,a,hd)}}});b.fn.extend({bind:function(a,c,d){return"unload"==a?this.one(a,c,d):this.each(function(){b.event.add(this,a,d||c,d&&c)})},one:function(a,c,d){var f=b.event.proxy(d||c,function(a){b(this).unbind(a,f);return(d||c).apply(this,arguments)});return this.each(function(){b.event.add(this,a,f,d&&c)})},unbind:function(a,c){return this.each(function(){b.event.remove(this,a,c)})},trigger:function(a,c){return this.each(function(){b.event.trigger(a,
c,this)})},triggerHandler:function(a,c){if(this[0]){var d=b.Event(a);d.preventDefault();d.stopPropagation();b.event.trigger(d,c,this[0]);return d.result}},toggle:function(a){for(var c=arguments,d=1;d<c.length;)b.event.proxy(a,c[d++]);return this.click(b.event.proxy(a,function(a){this.lastToggle=(this.lastToggle||0)%d;a.preventDefault();return c[this.lastToggle++].apply(this,arguments)||!1}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b)},ready:function(a){tb();b.isReady?a.call(document,
b):b.readyList.push(a);return this},live:function(a,c){var d=b.event.proxy(c);d.guid+=this.selector+a;b(document).bind(xa(a,this.selector),this.selector,d);return this},die:function(a,c){b(document).unbind(xa(a,this.selector),c?{guid:c.guid+this.selector+a}:null);return this}});b.extend({isReady:!1,readyList:[],ready:function(){if(!b.isReady){b.isReady=!0;if(b.readyList)b.each(b.readyList,function(){this.call(document,b)}),b.readyList=null;b(document).triggerHandler("ready")}}});var ed=!1;b.each("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error".split(","),
function(a,c){b.fn[c]=function(a){return a?this.bind(c,a):this.trigger(c)}});b(M).bind("unload",function(){for(var a in b.cache)1!=a&&b.cache[a].handle&&b.event.remove(b.cache[a].handle.elem)});(function(){b.support={};var a=document.documentElement,c=document.createElement("script"),d=document.createElement("div"),f="script"+(new Date).getTime();d.style.display="none";d.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';
var i=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(i&&i.length&&j){b.support={leadingWhitespace:3==d.firstChild.nodeType,tbody:!d.getElementsByTagName("tbody").length,objectAll:!!d.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:"/a"===j.getAttribute("href"),opacity:"0.5"===j.style.opacity,cssFloat:!!j.style.cssFloat,scriptEval:!1,noCloneEvent:!0,boxModel:null};
c.type="text/javascript";try{c.appendChild(document.createTextNode("window."+f+"=1;"))}catch(l){}a.insertBefore(c,a.firstChild);if(M[f])b.support.scriptEval=!0,delete M[f];a.removeChild(c);d.attachEvent&&d.fireEvent&&(d.attachEvent("onclick",function(){b.support.noCloneEvent=!1;d.detachEvent("onclick",arguments.callee)}),d.cloneNode(!0).fireEvent("onclick"));b(function(){var a=document.createElement("div");a.style.width=a.style.paddingLeft="1px";document.body.appendChild(a);b.boxModel=b.support.boxModel=
2===a.offsetWidth;document.body.removeChild(a).style.display="none"})}})();var Db=b.support.cssFloat?"cssFloat":"styleFloat";b.props={"for":"htmlFor","class":"className","float":Db,cssFloat:Db,styleFloat:Db,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};b.fn.extend({_load:b.fn.load,load:function(a,c,d){if("string"!==typeof a)return this._load(a);var f=a.indexOf(" ");if(0<=f)var i=a.slice(f,a.length),a=a.slice(0,f);f="GET";c&&(b.isFunction(c)?
(d=c,c=null):"object"===typeof c&&(c=b.param(c),f="POST"));var j=this;b.ajax({url:a,type:f,dataType:"html",data:c,complete:function(a,c){if("success"==c||"notmodified"==c)j.html(i?b("<div/>").append(a.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(i):a.responseText);d&&j.each(d,[a.responseText,c,a])}});return this},serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?b.makeArray(this.elements):this}).filter(function(){return this.name&&
!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(a,c){var d=b(this).val();return null==d?null:b.isArray(d)?b.map(d,function(a){return{name:c.name,value:a}}):{name:c.name,value:d}}).get()}});b.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(a,c){b.fn[c]=function(a){return this.bind(c,a)}});var fc=+new Date;b.extend({get:function(a,c,d,f){b.isFunction(c)&&(d=c,c=null);return b.ajax({type:"GET",
url:a,data:c,success:d,dataType:f})},getScript:function(a,c){return b.get(a,null,c,"script")},getJSON:function(a,c,d){return b.get(a,c,d,"json")},post:function(a,c,d,f){b.isFunction(c)&&(d=c,c={});return b.ajax({type:"POST",url:a,data:c,success:d,dataType:f})},ajaxSetup:function(a){b.extend(b.ajaxSettings,a)},ajaxSettings:{url:location.href,global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,xhr:function(){return M.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):
new XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(a){function c(){a.success&&a.success(l,j);a.global&&b.event.trigger("ajaxSuccess",[V,a])}function d(){a.complete&&a.complete(V,j);a.global&&b.event.trigger("ajaxComplete",[V,a]);a.global&&!--b.active&&b.event.trigger("ajaxStop")}var a=b.extend(!0,a,b.extend(!0,{},b.ajaxSettings,
a)),f,i=/=\?(&|$)/g,j,l,y=a.type.toUpperCase();if(a.data&&a.processData&&"string"!==typeof a.data)a.data=b.param(a.data);if("jsonp"==a.dataType){if("GET"==y)a.url.match(i)||(a.url+=(a.url.match(/\?/)?"&":"?")+(a.jsonp||"callback")+"=?");else if(!a.data||!a.data.match(i))a.data=(a.data?a.data+"&":"")+(a.jsonp||"callback")+"=?";a.dataType="json"}if("json"==a.dataType&&(a.data&&a.data.match(i)||a.url.match(i))){f="jsonp"+fc++;if(a.data)a.data=(a.data+"").replace(i,"="+f+"$1");a.url=a.url.replace(i,"="+
f+"$1");a.dataType="script";M[f]=function(a){l=a;c();d();M[f]=void 0;try{delete M[f]}catch(b){}E&&E.removeChild(H)}}if("script"==a.dataType&&null==a.cache)a.cache=!1;if(!1===a.cache&&"GET"==y){var i=+new Date,u=a.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+i+"$2");a.url=u+(u==a.url?(a.url.match(/\?/)?"&":"?")+"_="+i:"")}if(a.data&&"GET"==y)a.url+=(a.url.match(/\?/)?"&":"?")+a.data,a.data=null;a.global&&!b.active++&&b.event.trigger("ajaxStart");i=/^(\w+:)?\/\/([^\/?#]+)/.exec(a.url);if("script"==a.dataType&&
"GET"==y&&i&&(i[1]&&i[1]!=location.protocol||i[2]!=location.host)){var E=document.getElementsByTagName("head")[0],H=document.createElement("script");H.src=a.url;if(a.scriptCharset)H.charset=a.scriptCharset;if(!f){var S=!1;H.onload=H.onreadystatechange=function(){if(!S&&(!this.readyState||"loaded"==this.readyState||"complete"==this.readyState))S=!0,c(),d(),H.onload=H.onreadystatechange=null,E.removeChild(H)}}E.appendChild(H)}else{var X=!1,V=a.xhr();a.username?V.open(y,a.url,a.async,a.username,a.password):
V.open(y,a.url,a.async);try{a.data&&V.setRequestHeader("Content-Type",a.contentType),a.ifModified&&V.setRequestHeader("If-Modified-Since",b.lastModified[a.url]||"Thu, 01 Jan 1970 00:00:00 GMT"),V.setRequestHeader("X-Requested-With","XMLHttpRequest"),V.setRequestHeader("Accept",a.dataType&&a.accepts[a.dataType]?a.accepts[a.dataType]+", */*":a.accepts._default)}catch(ia){}if(a.beforeSend&&!1===a.beforeSend(V,a))return a.global&&!--b.active&&b.event.trigger("ajaxStop"),V.abort(),!1;a.global&&b.event.trigger("ajaxSend",
[V,a]);var q=function(i){if(0==V.readyState)w&&(clearInterval(w),w=null,a.global&&!--b.active&&b.event.trigger("ajaxStop"));else if(!X&&V&&(4==V.readyState||"timeout"==i)){X=!0;w&&(clearInterval(w),w=null);j="timeout"==i?"timeout":!b.httpSuccess(V)?"error":a.ifModified&&b.httpNotModified(V,a.url)?"notmodified":"success";if("success"==j)try{l=b.httpData(V,a.dataType,a)}catch(q){j="parsererror"}if("success"==j){var y;try{y=V.getResponseHeader("Last-Modified")}catch(u){}a.ifModified&&y&&(b.lastModified[a.url]=
y);f||c()}else b.handleError(a,V,j);d();i&&V.abort();a.async&&(V=null)}};if(a.async){var w=setInterval(q,13);0<a.timeout&&setTimeout(function(){V&&!X&&q("timeout")},a.timeout)}try{V.send(a.data)}catch(xa){b.handleError(a,V,null,xa)}a.async||q();return V}},handleError:function(a,c,d,f){a.error&&a.error(c,d,f);a.global&&b.event.trigger("ajaxError",[c,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&"file:"==location.protocol||200<=a.status&&300>a.status||304==a.status||1223==a.status}catch(b){}return!1},
httpNotModified:function(a,c){try{var d=a.getResponseHeader("Last-Modified");return 304==a.status||d==b.lastModified[c]}catch(f){}return!1},httpData:function(a,c,d){var f=a.getResponseHeader("content-type"),a=(f="xml"==c||!c&&f&&0<=f.indexOf("xml"))?a.responseXML:a.responseText;if(f&&"parsererror"==a.documentElement.tagName)throw"parsererror";d&&d.dataFilter&&(a=d.dataFilter(a,c));"string"===typeof a&&("script"==c&&b.globalEval(a),"json"==c&&(a=M.eval("("+a+")")));return a},param:function(a){function c(a,
b){d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)}var d=[];if(b.isArray(a)||a.jquery)b.each(a,function(){c(this.name,this.value)});else for(var f in a)b.isArray(a[f])?b.each(a[f],function(){c(f,this)}):c(f,b.isFunction(a[f])?a[f]():a[f]);return d.join("&").replace(/%20/g,"+")}});var Jc={},Kc,jd=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];b.fn.extend({show:function(a,c){if(a)return this.animate(ia("show",
3),a,c);for(var d=0,f=this.length;d<f;d++){var i=b.data(this[d],"olddisplay");this[d].style.display=i||"";if("none"===b.css(this[d],"display")){var i=this[d].tagName,j;if(Jc[i])j=Jc[i];else{var l=b("<"+i+" />").appendTo("body");j=l.css("display");"none"===j&&(j="block");l.remove();Jc[i]=j}b.data(this[d],"olddisplay",j)}}d=0;for(f=this.length;d<f;d++)this[d].style.display=b.data(this[d],"olddisplay")||"";return this},hide:function(a,c){if(a)return this.animate(ia("hide",3),a,c);for(var d=0,f=this.length;d<
f;d++){var i=b.data(this[d],"olddisplay");!i&&"none"!==i&&b.data(this[d],"olddisplay",b.css(this[d],"display"))}d=0;for(f=this.length;d<f;d++)this[d].style.display="none";return this},_toggle:b.fn.toggle,toggle:function(a,c){var d="boolean"===typeof a;return b.isFunction(a)&&b.isFunction(c)?this._toggle.apply(this,arguments):null==a||d?this.each(function(){var c=d?a:b(this).is(":hidden");b(this)[c?"show":"hide"]()}):this.animate(ia("toggle",3),a,c)},fadeTo:function(a,b,d){return this.animate({opacity:b},
a,d)},animate:function(a,c,d,f){var i=b.speed(c,d,f);return this[!1===i.queue?"each":"queue"](function(){var c=b.extend({},i),d,f=1==this.nodeType&&b(this).is(":hidden"),l=this;for(d in a){if("hide"==a[d]&&f||"show"==a[d]&&!f)return c.complete.call(this);if(("height"==d||"width"==d)&&this.style)c.display=b.css(this,"display"),c.overflow=this.style.overflow}if(null!=c.overflow)this.style.overflow="hidden";c.curAnim=b.extend({},a);b.each(a,function(d,i){var o=new b.fx(l,c,d);if(/toggle|show|hide/.test(i))o["toggle"==
i?f?"show":"hide":i](a);else{var u=i.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),E=o.cur(!0)||0;if(u){var H=parseFloat(u[2]),q=u[3]||"px";"px"!=q&&(l.style[d]=(H||1)+q,E*=(H||1)/o.cur(!0),l.style[d]=E+q);u[1]&&(H=("-="==u[1]?-1:1)*H+E);o.custom(E,H,q)}else o.custom(E,i,"")}});return!0})},stop:function(a,c){var d=b.timers;a&&this.queue([]);this.each(function(){for(var a=d.length-1;0<=a;a--)if(d[a].elem==this){if(c)d[a](!0);d.splice(a,1)}});c||this.dequeue();return this}});b.each({slideDown:ia("show",
1),slideUp:ia("hide",1),slideToggle:ia("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,c){b.fn[a]=function(a,b){return this.animate(c,a,b)}});b.extend({speed:function(a,c,d){var f="object"===typeof a?a:{complete:d||!d&&c||b.isFunction(a)&&a,duration:a,easing:d&&c||c&&!b.isFunction(c)&&c};f.duration=b.fx.off?0:"number"===typeof f.duration?f.duration:b.fx.speeds[f.duration]||b.fx.speeds._default;f.old=f.complete;f.complete=function(){!1!==f.queue&&b(this).dequeue();b.isFunction(f.old)&&
f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});b.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(b.fx.step[this.prop]||b.fx.step._default)(this);if(("height"==this.prop||"width"==this.prop)&&this.elem.style)this.elem.style.display="block"},cur:function(a){return null!=
this.elem[this.prop]&&(!this.elem.style||null==this.elem.style[this.prop])?this.elem[this.prop]:(a=parseFloat(b.css(this.elem,this.prop,a)))&&-1E4<a?a:parseFloat(b.curCSS(this.elem,this.prop))||0},custom:function(a,c,d){function f(a){return i.step(a)}this.startTime=+new Date;this.start=a;this.end=c;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var i=this;f.elem=this.elem;f()&&b.timers.push(f)&&!Kc&&(Kc=setInterval(function(){for(var a=b.timers,c=0;c<a.length;c++)a[c]()||a.splice(c--,
1);a.length||(clearInterval(Kc),Kc=void 0)},13))},show:function(){this.options.orig[this.prop]=b.attr(this.elem.style,this.prop);this.options.show=!0;this.custom("width"==this.prop||"height"==this.prop?1:0,this.cur());b(this.elem).show()},hide:function(){this.options.orig[this.prop]=b.attr(this.elem.style,this.prop);this.options.hide=!0;this.custom(this.cur(),0)},step:function(a){var c=+new Date;if(a||c>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();var a=
this.options.curAnim[this.prop]=!0,d;for(d in this.options.curAnim)!0!==this.options.curAnim[d]&&(a=!1);if(a){if(null!=this.options.display&&(this.elem.style.overflow=this.options.overflow,this.elem.style.display=this.options.display,"none"==b.css(this.elem,"display")))this.elem.style.display="block";this.options.hide&&b(this.elem).hide();if(this.options.hide||this.options.show)for(var f in this.options.curAnim)b.attr(this.elem.style,f,this.options.orig[f]);this.options.complete.call(this.elem)}return!1}d=
c-this.startTime;this.state=d/this.options.duration;this.pos=b.easing[this.options.easing||(b.easing.swing?"swing":"linear")](this.state,d,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update();return!0}};b.extend(b.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){b.attr(a.elem.style,"opacity",a.now)},_default:function(a){a.elem.style&&null!=a.elem.style[a.prop]?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}}});b.fn.offset=document.documentElement.getBoundingClientRect?
function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return b.offset.bodyOffset(this[0]);var a=this[0].getBoundingClientRect(),c=this[0].ownerDocument,d=c.body,c=c.documentElement;return{top:a.top+(self.pageYOffset||b.boxModel&&c.scrollTop||d.scrollTop)-(c.clientTop||d.clientTop||0),left:a.left+(self.pageXOffset||b.boxModel&&c.scrollLeft||d.scrollLeft)-(c.clientLeft||d.clientLeft||0)}}:function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return b.offset.bodyOffset(this[0]);
b.offset.initialized||b.offset.initialize();var a=this[0],c=a.offsetParent,d=a.ownerDocument,f,i=d.documentElement,j=d.body,d=d.defaultView;f=d.getComputedStyle(a,null);for(var l=a.offsetTop,y=a.offsetLeft;(a=a.parentNode)&&a!==j&&a!==i;){f=d.getComputedStyle(a,null);l-=a.scrollTop;y-=a.scrollLeft;if(a===c){l+=a.offsetTop;y+=a.offsetLeft;if(b.offset.doesNotAddBorder&&(!b.offset.doesAddBorderForTableAndCells||!/^t(able|d|h)$/i.test(a.tagName)))l+=parseInt(f.borderTopWidth,10)||0,y+=parseInt(f.borderLeftWidth,
10)||0;c=a.offsetParent}b.offset.subtractsBorderForOverflowNotVisible&&"visible"!==f.overflow&&(l+=parseInt(f.borderTopWidth,10)||0,y+=parseInt(f.borderLeftWidth,10)||0)}if("relative"===f.position||"static"===f.position)l+=j.offsetTop,y+=j.offsetLeft;"fixed"===f.position&&(l+=Math.max(i.scrollTop,j.scrollTop),y+=Math.max(i.scrollLeft,j.scrollLeft));return{top:l,left:y}};b.offset={initialize:function(){if(!this.initialized){var a=document.body,b=document.createElement("div"),d,f,i,j=a.style.marginTop;
f={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(i in f)b.style[i]=f[i];b.innerHTML='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;i=d.nextSibling.firstChild.firstChild;
this.doesNotAddBorder=5!==f.offsetTop;this.doesAddBorderForTableAndCells=5===i.offsetTop;d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=-5===f.offsetTop;a.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=0===a.offsetTop;a.style.marginTop=j;a.removeChild(b);this.initialized=!0}},bodyOffset:function(a){b.offset.initialized||b.offset.initialize();var c=a.offsetTop,d=a.offsetLeft;b.offset.doesNotIncludeMarginInBodyOffset&&(c+=parseInt(b.curCSS(a,
"marginTop",!0),10)||0,d+=parseInt(b.curCSS(a,"marginLeft",!0),10)||0);return{top:c,left:d}}};b.fn.extend({position:function(){var a;if(this[0]){a=this.offsetParent();var b=this.offset(),d=/^body|html$/i.test(a[0].tagName)?{top:0,left:0}:a.offset();b.top-=u(this,"marginTop");b.left-=u(this,"marginLeft");d.top+=u(a,"borderTopWidth");d.left+=u(a,"borderLeftWidth");a={top:b.top-d.top,left:b.left-d.left}}return a},offsetParent:function(){for(var a=this[0].offsetParent||document.body;a&&!/^body|html$/i.test(a.tagName)&&
"static"==b.css(a,"position");)a=a.offsetParent;return b(a)}});b.each(["Left","Top"],function(a,c){var d="scroll"+c;b.fn[d]=function(c){return!this[0]?null:void 0!==c?this.each(function(){this==M||this==document?M.scrollTo(!a?c:b(M).scrollLeft(),a?c:b(M).scrollTop()):this[d]=c}):this[0]==M||this[0]==document?self[a?"pageYOffset":"pageXOffset"]||b.boxModel&&document.documentElement[d]||document.body[d]:this[0][d]}});b.each(["Height","Width"],function(a,c){var d=c.toLowerCase();b.fn["inner"+c]=function(){return this[0]?
b.css(this[0],d,!1,"padding"):null};b.fn["outer"+c]=function(a){return this[0]?b.css(this[0],d,!1,a?"margin":"border"):null};var f=c.toLowerCase();b.fn[f]=function(a){return this[0]==M?"CSS1Compat"==document.compatMode&&document.documentElement["client"+c]||document.body["client"+c]:this[0]==document?Math.max(document.documentElement["client"+c],document.body["scroll"+c],document.documentElement["scroll"+c],document.body["offset"+c],document.documentElement["offset"+c]):void 0===a?this.length?b.css(this[0],
f):null:this.css(f,"string"===typeof a?a:a+"px")}})})();(function(l){l.extend(l.fn,{livequery:function(u,E,S){var H=this,xa;l.isFunction(u)&&(S=E,E=u,u=void 0);l.each(l.livequery.queries,function(l,ia){if(H.selector==ia.selector&&H.context==ia.context&&u==ia.type&&(!E||E.$lqguid==ia.fn.$lqguid)&&(!S||S.$lqguid==ia.fn2.$lqguid))return(xa=ia)&&!1});xa=xa||new l.livequery(this.selector,this.context,u,E,S);xa.stopped=!1;xa.run();return this},expire:function(u,E,S){var H=this;l.isFunction(u)&&(S=E,E=u,
u=void 0);l.each(l.livequery.queries,function(xa,tb){H.selector==tb.selector&&H.context==tb.context&&(!u||u==tb.type)&&(!E||E.$lqguid==tb.fn.$lqguid)&&(!S||S.$lqguid==tb.fn2.$lqguid)&&!this.stopped&&l.livequery.stop(tb.id)});return this}});l.livequery=function(u,E,S,H,xa){this.selector=u;this.context=E;this.type=S;this.fn=H;this.fn2=xa;this.elements=[];this.stopped=!1;this.id=l.livequery.queries.push(this)-1;H.$lqguid=H.$lqguid||l.livequery.guid++;if(xa)xa.$lqguid=xa.$lqguid||l.livequery.guid++;return this};
l.livequery.prototype={stop:function(){var l=this;this.type?this.elements.unbind(this.type,this.fn):this.fn2&&this.elements.each(function(E,S){l.fn2.apply(S)});this.elements=[];this.stopped=!0},run:function(){if(!this.stopped){var u=this,E=this.elements,S=l(this.selector,this.context),H=S.not(E);this.elements=S;this.type?(H.bind(this.type,this.fn),0<E.length&&l.each(E,function(E,H){0>l.inArray(H,S)&&l.event.remove(H,u.type,u.fn)})):(H.each(function(){u.fn.apply(this)}),this.fn2&&0<E.length&&l.each(E,
function(E,H){0>l.inArray(H,S)&&u.fn2.apply(H)}))}}};l.extend(l.livequery,{guid:0,queries:[],queue:[],running:!1,timeout:null,checkQueue:function(){if(l.livequery.running&&l.livequery.queue.length)for(var u=l.livequery.queue.length;u--;)l.livequery.queries[l.livequery.queue.shift()].run()},pause:function(){l.livequery.running=!1},play:function(){l.livequery.running=!0;l.livequery.run()},registerPlugin:function(){l.each(arguments,function(u,E){if(l.fn[E]){var S=l.fn[E];l.fn[E]=function(){var u=S.apply(this,
arguments);l.livequery.run();return u}}})},run:function(u){void 0!=u?0>l.inArray(u,l.livequery.queue)&&l.livequery.queue.push(u):l.each(l.livequery.queries,function(u){0>l.inArray(u,l.livequery.queue)&&l.livequery.queue.push(u)});l.livequery.timeout&&clearTimeout(l.livequery.timeout);l.livequery.timeout=setTimeout(l.livequery.checkQueue,20)},stop:function(u){void 0!=u?l.livequery.queries[u].stop():l.each(l.livequery.queries,function(u){l.livequery.queries[u].stop()})}});l.livequery.registerPlugin("append",
"prepend","after","before","wrap","attr","removeAttr","addClass","removeClass","toggleClass","empty","remove","html");l(function(){l.livequery.play()})})(jQuery);jQuery.fn.comments=function(l){var l=l||!1,u=$([]);this.each(function(E,S){for(var H=S.firstChild,xa=$(this).attr("id");H;)8===H.nodeType?u=u.add("<div rel='"+xa+"'>"+H.nodeValue+"</div>"):l&&1===H.nodeType&&(u=u.add($(H).comments(!0))),H=H.nextSibling});return u};setTimeout(function(){cd()},200)}setTimeout(function(){hitHuntHeal()},100);