// ==UserScript== // @name UnlockedMW PRO // @namespace mafiawars // @description Unlocks MW // @include http://facebook.mafiawars.zynga.com/mwfb/remote/html_server.php* // @include http://mwfb.zynga.com/mwfb/remote/html_server.php* // @include http://facebook.mafiawars.zynga.com/mwfb/xd_receiver.htm // @include http://apps.facebook.com/inthemafia/* // @include http://apps.new.facebook.com/inthemafia/* // @include http://www.facebook.com/connect/uiserver* // @include https://www.facebook.com/dialog/feed* // @exclude http://mwfb.zynga.com/mwfb/*#* // @exclude http://facebook.mafiawars.zynga.com/mwfb/*#* // @exclude http://apps.facebook.com/inthemafia/sk_updater.php* // @exclude http://facebook.mafiawars.zynga.com/mwfb/iframe_proxy.php* // @version 3.0.2 // ==/UserScript== function injectScript(source) { // Utilities var isFunction = function (arg) { return (Object.prototype.toString.call(arg) == "[object Function]"); }; var jsEscape = function (str) { // Replaces quotes with numerical escape sequences to // avoid single-quote-double-quote-hell, also helps by escaping HTML special chars. if (!str || !str.length) return str; // use \W in the square brackets if you have trouble with any values. var r = /['"<>\/]/g, result = "", l = 0, c; do { c = r.exec(str); result += (c ? (str.substring(l, r.lastIndex - 1) + "\\x" + c[0].charCodeAt(0).toString(16)) : (str.substring(l))); } while (c && ((l = r.lastIndex) > 0)) return (result.length ? result : str); }; var bFunction = isFunction(source); var elem = document.createElement("script"); // create the new script element. var script, ret, id = ""; if (bFunction) { // We're dealing with a function, prepare the arguments. var args = []; for (var i = 1; i < arguments.length; i++) { var raw = arguments[i]; var arg; if (isFunction(raw)) // argument is a function. arg = "eval(\"" + jsEscape("(" + raw.toString() + ")") + "\")"; else if (Object.prototype.toString.call(raw) == '[object Date]') // Date arg = "(new Date(" + raw.getTime().toString() + "))"; else if (Object.prototype.toString.call(raw) == '[object RegExp]') // RegExp arg = "(new RegExp(" + raw.toString() + "))"; else if (typeof raw === 'string' || typeof raw === 'object') // String or another object arg = "JSON.parse(\"" + jsEscape(JSON.stringify(raw)) + "\")"; else arg = raw.toString(); // Anything else number/boolean args.push(arg); // push the new argument on the list } // generate a random id string for the script block while (id.length < 16) id += String.fromCharCode(((!id.length || Math.random() > 0.5) ? 0x61 + Math.floor(Math.random() * 0x19) : 0x30 + Math.floor(Math.random() * 0x9))); // build the final script string, wrapping the original in a boot-strapper/proxy: script = "(function(){var value={callResult: null, throwValue: false};try{value.callResult=((" + source.toString() + ")(" + args.join() + "));}catch(e){value.throwValue=true;value.callResult=e;};" + "document.getElementById('" + id + "').innerText=JSON.stringify(value);})();"; elem.id = id; } else // plain string, just copy it over. { script = source; } elem.type = "text/javascript"; elem.innerHTML = script; // insert the element into the DOM (it starts to execute instantly) document.head.appendChild(elem); if (bFunction) { // get the return value from our function: ret = JSON.parse(elem.innerText); // remove the now-useless clutter. elem.parentNode.removeChild(elem); // make sure the garbage collector picks it instantly. (and hope it does) delete(elem); // see if our returned value was thrown or not if (ret.throwValue) throw (ret.callResult); else return (ret.callResult); } else // plain text insertion, return the new script element. return (elem); } var myscript = function(){var is_chrome=navigator.userAgent.toLowerCase().indexOf("chrome")>-1;if(document.getElementById("pagelet_ticker")){var ticker=document.getElementById("pagelet_ticker");var ego_pane=document.getElementById("pagelet_ego_pane");ticker.parentNode.removeChild(ticker);ego_pane.parentNode.removeChild(ego_pane);return}function x$(selector,context){context=context||document;return document.evaluate(selector,context,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}function topshelfstuff(){var mlbarr=0;mlbarr=window.setInterval(function(){if(document.getElementById("mw_like_button")){$("#mw_like_button").remove();window.clearInterval}},50);var sbarr=0;sbarr=window.setInterval(function(){if(document.getElementById("snapi_zbar")){$("#snapi_zbar").parent().remove();window.clearInterval}},50)}topshelfstuff();if(/dialog\/feed/.test(window.location.href)){if(document.evaluate('//input[@type="submit" and @name="publish"]',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength>0){var pubElt=document.evaluate('//input[@type="submit" and @name="publish"]',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);if(/Get a Boost/.test(document.body.innerHTML)){var evt=document.createEvent("MouseEvents");evt.initMouseEvent("click",true,true,window,0,0,0,0,0,false,false,false,false,0,null);pubElt.snapshotItem(0).dispatchEvent(evt)}}return}var xw_user=/sf_xw_user_id': '(.+)'/.exec(document.body.innerHTML)[1];var name=/\'name\': \'(.+?)\b /.exec(document.body.innerHTML)[1];var city=/mw_city(\d)/.exec(document.getElementById("mw_city_wrapper").className)[1];var opponent;var avoidlist=[];var rivalcycle=[];var familytargets=[];var familymodeOn=false;var familyindex=0;var fighton=false;var newfighton=false;var hitlist=false;var stamOn=true;var healOn=true;var autopostOn=false;var healat=500;var stopat=500;var postOn=true;var jobsOn=true;var burstOn=true;var pauseOn=true;var CurHealth;var evilOn=false;var icesteal=true;var NYjobon=false;var BKjobon=false;var Bjobon=false;var Bjobid=0;var attackProfile=false;var targetid;var target_name;var ajax=false;var icecount=0;var killcount=0;var ILVjobon=false;var fightwatchdogtimout;var icecheckfail=false;var fightInterval;var healInterval;var energyInterval;var fbfeedloc="";var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var PublishData={};var evilInterval;var evilCity;var closing=false;var fightActionRunning=false;var rref=5900;function writeCookie(){var a=stamOn+"|"+healOn+"|"+postOn+"|"+fbfeedloc+"|"+jobsOn+"|"+healat+"|"+icesteal+"|"+burstOn+"|"+pauseOn+"|"+stopat+"|"+autopostOn+"|"+rref;createCookie("UMW",a)}function readCookieSettings(){try{var a=readCookie("UMW");if(a==null||(/undefined/.test(a))||a.length<10){stamOn=false;postOn=false;healOn=false;fbfeedloc="";jobsOn=false;healat=500;icesteal=true;burstOn=false;pauseOn=true;stopat=500;autopostOn=false;rref=5900;writeCookie();return}a=a.split("|");stamOn=a[0];healOn=a[1];postOn=a[2];fbfeedloc=a[3];jobsOn=a[4];healat=a[5];icesteal=a[6];burstOn=a[7];pauseOn=a[8];stopat=a[9];autopostOn=a[10];rref=a[11]||5900}catch(e){}}function createCookie(a,b){var c=new Date();c.setDate(c.getDate()+120);document.cookie=a+"="+b+";expires="+c.toGMTString()+"; path=/"}function readCookie(a){var i,cookie,nameEQ=a+"=",cookieArray=document.cookie.split(";");for(i=0;i<cookieArray.length;i++){cookie=cookieArray[i];while(cookie.charAt(0)==" "){cookie=cookie.substring(1,cookie.length)}if(cookie.indexOf(nameEQ)==0){return cookie.substring(nameEQ.length,cookie.length)}}return null}function toggleStam(){if(stamOn==true){stamOn=2;clearInterval(fightInterval);fightInterval=setInterval(Fighter,666);document.getElementById("StamOnOff").setAttribute("class","sexy_button_new short red");document.getElementById("StamOnOff").innerHTML='<span class="sexy_health_new"><span><img src="http://mwfb.static.zgncdn.com/mwfb/graphics/icon_stamina_16x16.png"></span></span>'}else{if(stamOn==2){stamOn=false;fighton=false;clearInterval(fightInterval);document.getElementById("StamOnOff").setAttribute("class","sexy_button_new short black");document.getElementById("StamOnOff").innerHTML='<span class="sexy_health_new"><span><img src="http://mwfb.static.zgncdn.com/mwfb/graphics/icon_stamina_16x16.png"></span></span>'}else{fightInterval=setInterval(Fighter,500);stamOn=true;document.getElementById("StamOnOff").setAttribute("class","sexy_button_new short green");document.getElementById("StamOnOff").innerHTML='<span class="sexy_health_new"><span><img src="http://mwfb.static.zgncdn.com/mwfb/graphics/icon_stamina_16x16.png"></span></span>'}}writeCookie()}function toggleHeal(){if(healOn==true){healOn=false;clearInterval(healInterval);document.getElementById("HealOnOff").setAttribute("class","sexy_button_new short black");document.getElementById("HealOnOff").innerHTML='<span class="sexy_health_new"><span><img src="http://mwfb.static.zgncdn.com/mwfb/graphics/icon_health_16x16_01.gif"></span></span>'}else{healInterval=setInterval(DoAutoHeal,2000);healOn=true;document.getElementById("HealOnOff").setAttribute("class","sexy_button_new short green");document.getElementById("HealOnOff").innerHTML='<span class="sexy_health_new"><span><img src="http://mwfb.static.zgncdn.com/mwfb/graphics/icon_health_16x16_01.gif"></span></span>'}writeCookie()}function togglePost(){if(postOn==true){postOn=false;document.getElementById("PostOnOff").setAttribute("class","sexy_button_new short black");document.getElementById("PostOnOff").innerHTML='<span class="sexy_health_new"><span><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsSAAALEgHS3X78AAAACXZwQWcAAAAQAAAAEABcxq3DAAABUUlEQVQ4y52TMS8EURSFv4nR2LEYWsUWej+ATtBpSDQSUSgldEKHQoOWQpQqiXI1IvsHlBKdgkSxiQ22eO+ep5jM2mWHZG81Jznn5Jz77kQhBOaWdwI9TPXyIIpmlrbD5PRsL3ruazfEAObEW/29kGhmND8/WjgZLDOUJshELBPOhDcVGgwnfWyuzpMOlwDYPaniTJhEbBLmDTMrNFhbnGqJ80TmDUnEUp6g2CAXH1/c8fzaAOhM4Jzw/neFz49GB354fAJgoFTGOSEFYilgpq4VTg9WuuKNvSvMlFVwzuOc4X1xhZ/jveGcYabsGb1Z1x2s714CcLa/3IFzzY8d/J+gneOcvu+gKMEvgzZOK8FoWmKiMkKj3v+vQWV8rPVdThOaL4PZDmQB/XGJ+bRzZIGgQByUiZOhUqHw8PwWoIMjy+4gCiEwvbDV0+9cuz6KvgDVmeooGa+dswAAACV0RVh0Y3JlYXRlLWRhdGUAMjAxMC0wNC0xM1QxOTo0NjoyMCswMDowMLs82X8AAAAVdEVYdENyZWF0aW9uIFRpbWUAMjcvMy8wOeispIwAAAAldEVYdG1vZGlmeS1kYXRlADIwMTAtMDQtMTNUMTk6NDY6MjArMDA6MDDkja9LAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1MzmNZGAwAAAal6VFh0WE1MOmNvbS5hZG9iZS54bXAAAHja1VLLitswFN3nKy7qtrYezozHwvZQEkIppAyTQEt3siV7TKIHsgZr8vVd5NFMKF0UuuhZXs7j3sMtH6MT7U4FaFQ/mAoBAIJBVujb3Zqs3UK9DJ8PXm0OX7ftYdcWEj3WszLyqJ1WQUDUezPyWCEhbaO4GblWQWAEkUftwq5Cn6RtFHxfP8HCegXzlCYtyeYwv09Zzor8/iNsRIAvwgDLgRGSA2OcUj6ncAKqZwBQetnx5+XqlOllV6GXEBzHeJqmdMpS63tMi6LAhGHGEi+7ZHwzQcTEjB+OJmefpRpbP7gwWANedlw09jVUCM3gCqfjhLsEmTEV0jYqba3GUThMU4IvzgBQRuH4wisRrN9au6+P568GrybrdyMsNlmJb0m/06ulCKpmhBQJyRKWb+kdZw88oz+u9EfSjXxt5dC9XcmLhDxsWcZpxslZfkU694JvivnbwmR76cu9+n1qfY9li9VeaWXCiGlK33cmW95Zr0WoBy16hZ3pS/xr+Mf9jtPn5aqelfjyl/W7tf4V/vuQn8/A+zhjKi18AAAAAElFTkSuQmCC"></span></span>'}else{postOn=true;document.getElementById("PostOnOff").setAttribute("class","sexy_button_new short green");document.getElementById("PostOnOff").innerHTML='<span class="sexy_health_new"><span><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsSAAALEgHS3X78AAAACXZwQWcAAAAQAAAAEABcxq3DAAABUUlEQVQ4y52TMS8EURSFv4nR2LEYWsUWej+ATtBpSDQSUSgldEKHQoOWQpQqiXI1IvsHlBKdgkSxiQ22eO+ep5jM2mWHZG81Jznn5Jz77kQhBOaWdwI9TPXyIIpmlrbD5PRsL3ruazfEAObEW/29kGhmND8/WjgZLDOUJshELBPOhDcVGgwnfWyuzpMOlwDYPaniTJhEbBLmDTMrNFhbnGqJ80TmDUnEUp6g2CAXH1/c8fzaAOhM4Jzw/neFz49GB354fAJgoFTGOSEFYilgpq4VTg9WuuKNvSvMlFVwzuOc4X1xhZ/jveGcYabsGb1Z1x2s714CcLa/3IFzzY8d/J+gneOcvu+gKMEvgzZOK8FoWmKiMkKj3v+vQWV8rPVdThOaL4PZDmQB/XGJ+bRzZIGgQByUiZOhUqHw8PwWoIMjy+4gCiEwvbDV0+9cuz6KvgDVmeooGa+dswAAACV0RVh0Y3JlYXRlLWRhdGUAMjAxMC0wNC0xM1QxOTo0NjoyMCswMDowMLs82X8AAAAVdEVYdENyZWF0aW9uIFRpbWUAMjcvMy8wOeispIwAAAAldEVYdG1vZGlmeS1kYXRlADIwMTAtMDQtMTNUMTk6NDY6MjArMDA6MDDkja9LAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1MzmNZGAwAAAal6VFh0WE1MOmNvbS5hZG9iZS54bXAAAHja1VLLitswFN3nKy7qtrYezozHwvZQEkIppAyTQEt3siV7TKIHsgZr8vVd5NFMKF0UuuhZXs7j3sMtH6MT7U4FaFQ/mAoBAIJBVujb3Zqs3UK9DJ8PXm0OX7ftYdcWEj3WszLyqJ1WQUDUezPyWCEhbaO4GblWQWAEkUftwq5Cn6RtFHxfP8HCegXzlCYtyeYwv09Zzor8/iNsRIAvwgDLgRGSA2OcUj6ncAKqZwBQetnx5+XqlOllV6GXEBzHeJqmdMpS63tMi6LAhGHGEi+7ZHwzQcTEjB+OJmefpRpbP7gwWANedlw09jVUCM3gCqfjhLsEmTEV0jYqba3GUThMU4IvzgBQRuH4wisRrN9au6+P568GrybrdyMsNlmJb0m/06ulCKpmhBQJyRKWb+kdZw88oz+u9EfSjXxt5dC9XcmLhDxsWcZpxslZfkU694JvivnbwmR76cu9+n1qfY9li9VeaWXCiGlK33cmW95Zr0WoBy16hZ3pS/xr+Mf9jtPn5aqelfjyl/W7tf4V/vuQn8/A+zhjKi18AAAAAElFTkSuQmCC"></span></span>'}writeCookie()}function toggleJobs(){if(jobsOn==true){NYjobon=false;jobsOn=false;clearInterval(energyInterval);document.getElementById("JobsOnOff").setAttribute("class","sexy_button_new short black");document.getElementById("JobsOnOff").innerHTML='<span class="sexy_health_new"><span><img src="http://mwfb.static.zgncdn.com/mwfb/graphics/icon_energy_16x16_01.gif"></span></span>'}else{energyInterval=setInterval(Jobber,1000);jobsOn=true;document.getElementById("JobsOnOff").setAttribute("class","sexy_button_new short green");document.getElementById("JobsOnOff").innerHTML='<span class="sexy_health_new"><span><img src="http://mwfb.static.zgncdn.com/mwfb/graphics/icon_energy_16x16_01.gif"></span></span>'}writeCookie()}function toggleEvil(){if(evilOn==true){evilOn=false;familymodeOn=false;clearInterval(evilInterval);document.getElementById("unlockedStatus").innerHTML="SLAYER STOPPED ICES:"+icecount+" KILLS:"+killcount+" TOTAL:"+(icecount+killcount*2);document.getElementById("EvilOnOff").setAttribute("class","sexy_button_new short black");document.getElementById("EvilOnOff").innerHTML='<span class="sexy_health_new"><span><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACcElEQVQ4ja2TXUiTYRTHz9vcFN1UXOwia1uWZRmVpVtYtlQwtRYVKzcldboKhDI/CMwMFiRudFMIliVYZJZ9XCRSN2n0RZeZ9kWYZKFlfpIphvbvOVtiBruJDvx5z3ue/++c93l4XqK5oRHaTP8a/nI6faaKpkVaKhE5wyRqYHEualvjjfROJqNSnw2CA6XayS4JzcUKvLGvw+iJFI84P5usxEgnQRVINb54Y6paPtTdEoixJ0r8qEwHqmb1rUmLT20BSA2TD7H3b3hBslLqH9kdji8OLYZztJjOWwLkz2pKaCBPh2HhYS8zs58u0eXXBn+MbVehJGo+Cmw2FJli0Z+iwmhaMIpELTtaj5b1AZjaEQL2MjPDq3NDaXJiix/qY+S413IX7Q4HXhUewa2MjbiUFo0XTie6q6tRXlKMviQZJkx+yBEMs9wgvU5L+J4koXKTBl2NjXAkJqLWasXjgp14eMCMCn63WPDgTjOemghj8RLqFhGY5QaZ13WE4Q2EG7sIF86dx82sLDRkWPHMqkdH9jJcNJtxOy8frpNHMWAVXgPhms7TIJMbJJzSEPpiCCMWQs0+CWW5kWjaG4RxMW08gfAoOxT1hxajYz9hMJ7Qu5bADLPcQG5UUO/LKELPasJnozAJcChOTIrzPgeFvsZ6h3wQns7lBINgmJ05SHt5KKE9kvB2BeH9Kq/x4xqvOOcarz1fSigL8Uy3z7kICiJ3oZJ+ti4kuCPUqNhjxrGCgx4dt5jhigjD/XDCYeERY92+bqNtpYx6ioMIV9SEVnFQbXpvzjVeY4/Pf+F38L62zSNyKYmusjjn2p97/m/xC4Y0QDH2x7LDAAAAAElFTkSuQmCC""></span></span></a>'}else{evilCity=/mw_city(\d)/.exec(document.getElementById("mw_city_wrapper").className)[1];if(/Sucker Punch/.test(document.body.innerHTML)){targetid="p|"+(/user=p\|(\d+)'.+>Profile/.exec(document.body.innerHTML)[1]);target_name=/levels">\((.*?)\)/.exec(document.body.innerHTML)[1];evilInterval=setInterval(PureEvil,15000);evilOn=true;document.getElementById("EvilOnOff").setAttribute("class","sexy_button_new short green");document.getElementById("EvilOnOff").innerHTML='<span class="sexy_health_new"><span><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACcElEQVQ4ja2TXUiTYRTHz9vcFN1UXOwia1uWZRmVpVtYtlQwtRYVKzcldboKhDI/CMwMFiRudFMIliVYZJZ9XCRSN2n0RZeZ9kWYZKFlfpIphvbvOVtiBruJDvx5z3ue/++c93l4XqK5oRHaTP8a/nI6faaKpkVaKhE5wyRqYHEualvjjfROJqNSnw2CA6XayS4JzcUKvLGvw+iJFI84P5usxEgnQRVINb54Y6paPtTdEoixJ0r8qEwHqmb1rUmLT20BSA2TD7H3b3hBslLqH9kdji8OLYZztJjOWwLkz2pKaCBPh2HhYS8zs58u0eXXBn+MbVehJGo+Cmw2FJli0Z+iwmhaMIpELTtaj5b1AZjaEQL2MjPDq3NDaXJiix/qY+S413IX7Q4HXhUewa2MjbiUFo0XTie6q6tRXlKMviQZJkx+yBEMs9wgvU5L+J4koXKTBl2NjXAkJqLWasXjgp14eMCMCn63WPDgTjOemghj8RLqFhGY5QaZ13WE4Q2EG7sIF86dx82sLDRkWPHMqkdH9jJcNJtxOy8frpNHMWAVXgPhms7TIJMbJJzSEPpiCCMWQs0+CWW5kWjaG4RxMW08gfAoOxT1hxajYz9hMJ7Qu5bADLPcQG5UUO/LKELPasJnozAJcChOTIrzPgeFvsZ6h3wQns7lBINgmJ05SHt5KKE9kvB2BeH9Kq/x4xqvOOcarz1fSigL8Uy3z7kICiJ3oZJ+ti4kuCPUqNhjxrGCgx4dt5jhigjD/XDCYeERY92+bqNtpYx6ioMIV9SEVnFQbXpvzjVeY4/Pf+F38L62zSNyKYmusjjn2p97/m/xC4Y0QDH2x7LDAAAAAElFTkSuQmCC""></span></span></a>';PureEvil()}else{if(document.evaluate('//li[contains(@class, "tab_on tab_middle")]//a[contains(., "Fighters")]',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength>0){evilOn=true;document.getElementById("EvilOnOff").setAttribute("class","sexy_button_new short green");document.getElementById("EvilOnOff").innerHTML='<span class="sexy_health_new"><span><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACcElEQVQ4ja2TXUiTYRTHz9vcFN1UXOwia1uWZRmVpVtYtlQwtRYVKzcldboKhDI/CMwMFiRudFMIliVYZJZ9XCRSN2n0RZeZ9kWYZKFlfpIphvbvOVtiBruJDvx5z3ue/++c93l4XqK5oRHaTP8a/nI6faaKpkVaKhE5wyRqYHEualvjjfROJqNSnw2CA6XayS4JzcUKvLGvw+iJFI84P5usxEgnQRVINb54Y6paPtTdEoixJ0r8qEwHqmb1rUmLT20BSA2TD7H3b3hBslLqH9kdji8OLYZztJjOWwLkz2pKaCBPh2HhYS8zs58u0eXXBn+MbVehJGo+Cmw2FJli0Z+iwmhaMIpELTtaj5b1AZjaEQL2MjPDq3NDaXJiix/qY+S413IX7Q4HXhUewa2MjbiUFo0XTie6q6tRXlKMviQZJkx+yBEMs9wgvU5L+J4koXKTBl2NjXAkJqLWasXjgp14eMCMCn63WPDgTjOemghj8RLqFhGY5QaZ13WE4Q2EG7sIF86dx82sLDRkWPHMqkdH9jJcNJtxOy8frpNHMWAVXgPhms7TIJMbJJzSEPpiCCMWQs0+CWW5kWjaG4RxMW08gfAoOxT1hxajYz9hMJ7Qu5bADLPcQG5UUO/LKELPasJnozAJcChOTIrzPgeFvsZ6h3wQns7lBINgmJ05SHt5KKE9kvB2BeH9Kq/x4xqvOOcarz1fSigL8Uy3z7kICiJ3oZJ+ti4kuCPUqNhjxrGCgx4dt5jhigjD/XDCYeERY92+bqNtpYx6ioMIV9SEVnFQbXpvzjVeY4/Pf+F38L62zSNyKYmusjjn2p97/m/xC4Y0QDH2x7LDAAAAAElFTkSuQmCC""></span></span></a>';evilInterval=setInterval(Fightlist,5000);Fightlist()}else{if(document.evaluate('//li[contains(@class, "tab_on tab_middle")]//a[contains(., "Rivals")]',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength>0){evilOn=true;document.getElementById("EvilOnOff").setAttribute("class","sexy_button_new short green");document.getElementById("EvilOnOff").innerHTML='<span class="sexy_health_new"><span><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACcElEQVQ4ja2TXUiTYRTHz9vcFN1UXOwia1uWZRmVpVtYtlQwtRYVKzcldboKhDI/CMwMFiRudFMIliVYZJZ9XCRSN2n0RZeZ9kWYZKFlfpIphvbvOVtiBruJDvx5z3ue/++c93l4XqK5oRHaTP8a/nI6faaKpkVaKhE5wyRqYHEualvjjfROJqNSnw2CA6XayS4JzcUKvLGvw+iJFI84P5usxEgnQRVINb54Y6paPtTdEoixJ0r8qEwHqmb1rUmLT20BSA2TD7H3b3hBslLqH9kdji8OLYZztJjOWwLkz2pKaCBPh2HhYS8zs58u0eXXBn+MbVehJGo+Cmw2FJli0Z+iwmhaMIpELTtaj5b1AZjaEQL2MjPDq3NDaXJiix/qY+S413IX7Q4HXhUewa2MjbiUFo0XTie6q6tRXlKMviQZJkx+yBEMs9wgvU5L+J4koXKTBl2NjXAkJqLWasXjgp14eMCMCn63WPDgTjOemghj8RLqFhGY5QaZ13WE4Q2EG7sIF86dx82sLDRkWPHMqkdH9jJcNJtxOy8frpNHMWAVXgPhms7TIJMbJJzSEPpiCCMWQs0+CWW5kWjaG4RxMW08gfAoOxT1hxajYz9hMJ7Qu5bADLPcQG5UUO/LKELPasJnozAJcChOTIrzPgeFvsZ6h3wQns7lBINgmJ05SHt5KKE9kvB2BeH9Kq/x4xqvOOcarz1fSigL8Uy3z7kICiJ3oZJ+ti4kuCPUqNhjxrGCgx4dt5jhigjD/XDCYeERY92+bqNtpYx6ioMIV9SEVnFQbXpvzjVeY4/Pf+F38L62zSNyKYmusjjn2p97/m/xC4Y0QDH2x7LDAAAAAElFTkSuQmCC""></span></span></a>';evilInterval=setInterval(Rivals,5000);Rivals()}else{if(document.evaluate('//li[contains(@class, "tab_on")]//a[contains(., "Robbing")]',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength>0){evilOn=true;document.getElementById("EvilOnOff").setAttribute("class","sexy_button_new short green");document.getElementById("EvilOnOff").innerHTML='<span class="sexy_health_new"><span><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACcElEQVQ4ja2TXUiTYRTHz9vcFN1UXOwia1uWZRmVpVtYtlQwtRYVKzcldboKhDI/CMwMFiRudFMIliVYZJZ9XCRSN2n0RZeZ9kWYZKFlfpIphvbvOVtiBruJDvx5z3ue/++c93l4XqK5oRHaTP8a/nI6faaKpkVaKhE5wyRqYHEualvjjfROJqNSnw2CA6XayS4JzcUKvLGvw+iJFI84P5usxEgnQRVINb54Y6paPtTdEoixJ0r8qEwHqmb1rUmLT20BSA2TD7H3b3hBslLqH9kdji8OLYZztJjOWwLkz2pKaCBPh2HhYS8zs58u0eXXBn+MbVehJGo+Cmw2FJli0Z+iwmhaMIpELTtaj5b1AZjaEQL2MjPDq3NDaXJiix/qY+S413IX7Q4HXhUewa2MjbiUFo0XTie6q6tRXlKMviQZJkx+yBEMs9wgvU5L+J4koXKTBl2NjXAkJqLWasXjgp14eMCMCn63WPDgTjOemghj8RLqFhGY5QaZ13WE4Q2EG7sIF86dx82sLDRkWPHMqkdH9jJcNJtxOy8frpNHMWAVXgPhms7TIJMbJJzSEPpiCCMWQs0+CWW5kWjaG4RxMW08gfAoOxT1hxajYz9hMJ7Qu5bADLPcQG5UUO/LKELPasJnozAJcChOTIrzPgeFvsZ6h3wQns7lBINgmJ05SHt5KKE9kvB2BeH9Kq/x4xqvOOcarz1fSigL8Uy3z7kICiJ3oZJ+ti4kuCPUqNhjxrGCgx4dt5jhigjD/XDCYeERY92+bqNtpYx6ioMIV9SEVnFQbXpvzjVeY4/Pf+F38L62zSNyKYmusjjn2p97/m/xC4Y0QDH2x7LDAAAAAElFTkSuQmCC""></span></span></a>';setTimeout(LetThereBeRobberies,1000);document.getElementById("unlockedStatus").innerHTML="Robbing in progress....."}else{if(document.evaluate('//li[contains(@class, "tab_on tab_first")]//a[contains(., "Families")]',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength>0){var tabs=document.getElementsByClassName("clan_nav_tab selected");if(tabs.length>0&&tabs[0].id=="battle_tab"){evilOn=true;document.getElementById("EvilOnOff").setAttribute("class","sexy_button_new short green");document.getElementById("EvilOnOff").innerHTML='<span class="sexy_health_new"><span><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACcElEQVQ4ja2TXUiTYRTHz9vcFN1UXOwia1uWZRmVpVtYtlQwtRYVKzcldboKhDI/CMwMFiRudFMIliVYZJZ9XCRSN2n0RZeZ9kWYZKFlfpIphvbvOVtiBruJDvx5z3ue/++c93l4XqK5oRHaTP8a/nI6faaKpkVaKhE5wyRqYHEualvjjfROJqNSnw2CA6XayS4JzcUKvLGvw+iJFI84P5usxEgnQRVINb54Y6paPtTdEoixJ0r8qEwHqmb1rUmLT20BSA2TD7H3b3hBslLqH9kdji8OLYZztJjOWwLkz2pKaCBPh2HhYS8zs58u0eXXBn+MbVehJGo+Cmw2FJli0Z+iwmhaMIpELTtaj5b1AZjaEQL2MjPDq3NDaXJiix/qY+S413IX7Q4HXhUewa2MjbiUFo0XTie6q6tRXlKMviQZJkx+yBEMs9wgvU5L+J4koXKTBl2NjXAkJqLWasXjgp14eMCMCn63WPDgTjOemghj8RLqFhGY5QaZ13WE4Q2EG7sIF86dx82sLDRkWPHMqkdH9jJcNJtxOy8frpNHMWAVXgPhms7TIJMbJJzSEPpiCCMWQs0+CWW5kWjaG4RxMW08gfAoOxT1hxajYz9hMJ7Qu5bADLPcQG5UUO/LKELPasJnozAJcChOTIrzPgeFvsZ6h3wQns7lBINgmJ05SHt5KKE9kvB2BeH9Kq/x4xqvOOcarz1fSigL8Uy3z7kICiJ3oZJ+ti4kuCPUqNhjxrGCgx4dt5jhigjD/XDCYeERY92+bqNtpYx6ioMIV9SEVnFQbXpvzjVeY4/Pf+F38L62zSNyKYmusjjn2p97/m/xC4Y0QDH2x7LDAAAAAElFTkSuQmCC""></span></span></a>';evilInterval=setInterval(Battle,10000);document.getElementById("unlockedStatus").innerHTML="Battle Mode Loading";Battle();return}evilOn=true;familymodeOn=true;var j=0;familyindex=0;familytargets.length=0;var members=document.getElementsByClassName("name_n_rank");for(i=0;i<members.length;i++){if(members[i].style.clear=="both"){familytargets[j++]=decodeID(/user=(.+?)\"/.exec(members[i].innerHTML)[1])}}document.getElementById("EvilOnOff").setAttribute("class","sexy_button_new short green");document.getElementById("EvilOnOff").innerHTML='<span class="sexy_health_new"><span><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACcElEQVQ4ja2TXUiTYRTHz9vcFN1UXOwia1uWZRmVpVtYtlQwtRYVKzcldboKhDI/CMwMFiRudFMIliVYZJZ9XCRSN2n0RZeZ9kWYZKFlfpIphvbvOVtiBruJDvx5z3ue/++c93l4XqK5oRHaTP8a/nI6faaKpkVaKhE5wyRqYHEualvjjfROJqNSnw2CA6XayS4JzcUKvLGvw+iJFI84P5usxEgnQRVINb54Y6paPtTdEoixJ0r8qEwHqmb1rUmLT20BSA2TD7H3b3hBslLqH9kdji8OLYZztJjOWwLkz2pKaCBPh2HhYS8zs58u0eXXBn+MbVehJGo+Cmw2FJli0Z+iwmhaMIpELTtaj5b1AZjaEQL2MjPDq3NDaXJiix/qY+S413IX7Q4HXhUewa2MjbiUFo0XTie6q6tRXlKMviQZJkx+yBEMs9wgvU5L+J4koXKTBl2NjXAkJqLWasXjgp14eMCMCn63WPDgTjOemghj8RLqFhGY5QaZ13WE4Q2EG7sIF86dx82sLDRkWPHMqkdH9jJcNJtxOy8frpNHMWAVXgPhms7TIJMbJJzSEPpiCCMWQs0+CWW5kWjaG4RxMW08gfAoOxT1hxajYz9hMJ7Qu5bADLPcQG5UUO/LKELPasJnozAJcChOTIrzPgeFvsZ6h3wQns7lBINgmJ05SHt5KKE9kvB2BeH9Kq/x4xqvOOcarz1fSigL8Uy3z7kICiJ3oZJ+ti4kuCPUqNhjxrGCgx4dt5jhigjD/XDCYeERY92+bqNtpYx6ioMIV9SEVnFQbXpvzjVeY4/Pf+F38L62zSNyKYmusjjn2p97/m/xC4Y0QDH2x7LDAAAAAElFTkSuQmCC""></span></span></a>';evilInterval=setInterval(FightFamily,5000);document.getElementById("unlockedStatus").innerHTML="Fight Family Loading";FightFamily()}else{if(document.evaluate('//li[contains(@class, "tab_on tab_last")]//a[contains(., "Boosts")]',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength>0){document.getElementById("EvilOnOff").setAttribute("class","sexy_button_new short red");document.getElementById("EvilOnOff").innerHTML='<span class="sexy_health_new"><span><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACcElEQVQ4ja2TXUiTYRTHz9vcFN1UXOwia1uWZRmVpVtYtlQwtRYVKzcldboKhDI/CMwMFiRudFMIliVYZJZ9XCRSN2n0RZeZ9kWYZKFlfpIphvbvOVtiBruJDvx5z3ue/++c93l4XqK5oRHaTP8a/nI6faaKpkVaKhE5wyRqYHEualvjjfROJqNSnw2CA6XayS4JzcUKvLGvw+iJFI84P5usxEgnQRVINb54Y6paPtTdEoixJ0r8qEwHqmb1rUmLT20BSA2TD7H3b3hBslLqH9kdji8OLYZztJjOWwLkz2pKaCBPh2HhYS8zs58u0eXXBn+MbVehJGo+Cmw2FJli0Z+iwmhaMIpELTtaj5b1AZjaEQL2MjPDq3NDaXJiix/qY+S413IX7Q4HXhUewa2MjbiUFo0XTie6q6tRXlKMviQZJkx+yBEMs9wgvU5L+J4koXKTBl2NjXAkJqLWasXjgp14eMCMCn63WPDgTjOemghj8RLqFhGY5QaZ13WE4Q2EG7sIF86dx82sLDRkWPHMqkdH9jJcNJtxOy8frpNHMWAVXgPhms7TIJMbJJzSEPpiCCMWQs0+CWW5kWjaG4RxMW08gfAoOxT1hxajYz9hMJ7Qu5bADLPcQG5UUO/LKELPasJnozAJcChOTIrzPgeFvsZ6h3wQns7lBINgmJ05SHt5KKE9kvB2BeH9Kq/x4xqvOOcarz1fSigL8Uy3z7kICiJ3oZJ+ti4kuCPUqNhjxrGCgx4dt5jhigjD/XDCYeERY92+bqNtpYx6ioMIV9SEVnFQbXpvzjVeY4/Pf+F38L62zSNyKYmusjjn2p97/m/xC4Y0QDH2x7LDAAAAAElFTkSuQmCC""></span></span></a>';if(stamOn==true||stamOn==2){clearInterval(fightInterval);fightInterval=setInterval(Fighter,333)}}}}}}}}}function openToolsMenu(){var toolsMenu=document.getElementById("toolsMenu");if(toolsMenu){toolsMenu.style.display="block"}}function closeToolsMenu(){var toolsMenu=document.getElementById("toolsMenu");if(toolsMenu){toolsMenu.style.display="none"}}function toggleToolsMenu(){var toolsMenu=document.getElementById("toolsMenu");if(toolsMenu){if(toolsMenu.style.display=="none"){toolsMenu.style.display="block"}if(toolsMenu.style.display=="block"){toolsMenu.style.display="none"}}}function ExternalLinks(){var toolbar=document.getElementById("mw_masthead");if(toolbar){var toolbar_div;if(document.getElementById("unlock_links")){toolbar_div=document.getElementById("unlock_links");document.getElementById("tools_container").addEventListener("click",toggleToolsMenu,false);document.getElementById("tools_container").addEventListener("mouseover",openToolsMenu,false);document.getElementById("tools_container").addEventListener("mouseout",closeToolsMenu,false)}else{toolbar_div=document.createElement("div");toolbar_div.id="unlock_links";toolbar.appendChild(toolbar_div);var toolbarhtml='<style type="text/css">#toolsMenu {border: 1px solid #cdcdcd; border-width: 0 1px 1px; font-size: 12px; font-weight: bold; margin: 0 2px;}</style><div id="tools_container" style="width: 100px; position: relative; left: 90px; top: 173px;"><a class="sexy_button_new short black_white_border" style="width: 95px;"><span><span style="background: transparent url(http://mwfb.static.zynga.com/mwfb/graphics/dropdown_travel_arrow.gif) no-repeat scroll 75px 50%; text-align: left; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">Tools</span</span> </a><div id="toolsMenu" style="z-index: 20; display: none;margin-top:-2px;width:150x;" ><a href="javascript:%28function%28%29%7Bvar%20a%3Ddocument.createElement%28%22script%22%29%3Ba.type%3D%22text%2Fjavascript%22%3Ba.src%3D%22http://unlockedmw.com/toolbar/switch.js%3F%22%2BMath.random%28%29%3Bdocument.getElementsByTagName%28%22head%22%29%5B0%5D.appendChild%28a%29%7D%29%28%29%3B"><div class="sexy_destination middle"> Switch</div></a><a href="javascript:%28function%28%29%7Bvar%20a%3Ddocument.createElement%28%22script%22%29%3Ba.type%3D%22text%2Fjavascript%22%3Ba.src%3D%22http://spocklet.com/bookmarklet/assassin-a-nator.js%3F%22%2BMath.random%28%29%3Bdocument.getElementsByTagName%28%22head%22%29%5B0%5D.appendChild%28a%29%7D%29%28%29%3B"><div class="sexy_destination middle">Assassin-a-nator</div></a><a href="javascript:(function(){var%20a%3Ddocument.createElement(%22script%22)%3Ba.type%3D%22text%2Fjavascript%22%3Ba.src%3D%22http%3A%2F%2Fcodeoutpost.com%2FScripts%2FChuckACrapQueue.js%3F%22%2BMath.random()%3Bdocument.getElementsByTagName(%22head%22)[0].appendChild(a)})()%3B"> <div class="sexy_destination middle"> Chucker</div></a><a href="javascript:%28function%28%29%7Bvar%20a%3Ddocument.createElement%28%22script%22%29%3Ba.type%3D%22text%2Fjavascript%22%3Ba.src%3D%22http://www.spocklet.com/bookmarklet/robber.bg.js%3F%22%2BMath.random%28%29%3Bdocument.getElementsByTagName%28%22head%22%29%5B0%5D.appendChild%28a%29%7D%29%28%29%3B"><div class="sexy_destination middle"> Robber</div></a><a href="javascript:%28function%28%29%7Bvar%20a%3Ddocument.createElement%28%22script%22%29%3Ba.type%3D%22text%2Fjavascript%22%3Ba.src%3D%22http://www.spockholm.com/mafia/minipack.js%3F%22%2BMath.random%28%29%3Bdocument.getElementsByTagName%28%22head%22%29%5B0%5D.appendChild%28a%29%7D%29%28%29%3B"><div class="sexy_destination middle"> Mini-Pack</div><a href="javascript:%28function%28%29%7Bvar%20a%3Ddocument.createElement%28%22script%22%29%3Ba.type%3D%22text%2Fjavascript%22%3Ba.src%3D%22http://www.exellerate.com/mafia/link-a-nator.js%3F%22%2BMath.random%28%29%3Bdocument.getElementsByTagName%28%22head%22%29%5B0%5D.appendChild%28a%29%7D%29%28%29%3B"><div class="sexy_destination middle"> Link-a-nator</div><a href="javascript:%28function%28%29%7Bvar%20a%3Ddocument.createElement%28%22script%22%29%3Ba.type%3D%22text%2Fjavascript%22%3Ba.src%3D%22http://www.exellerate.com/mafia/free_gift_get_a_nator.js%3F%22%2BMath.random%28%29%3Bdocument.getElementsByTagName%28%22head%22%29%5B0%5D.appendChild%28a%29%7D%29%28%29%3B"><div class="sexy_destination middle"> Get-a-nator</div><a href="javascript:%28function%28%29%7Bvar%20a%3Ddocument.createElement%28%22script%22%29%3Ba.type%3D%22text%2Fjavascript%22%3Ba.src%3D%22http://www.spocklet.com/bookmarklet/property.manager.light.js%3F%22%2BMath.random%28%29%3Bdocument.getElementsByTagName%28%22head%22%29%5B0%5D.appendChild%28a%29%7D%29%28%29%3B"><div class="sexy_destination middle"> Property Manager</div> </a></div></div>';toolbar_div.innerHTML=toolbarhtml;document.getElementById("tools_container").addEventListener("click",toggleToolsMenu,false);document.getElementById("tools_container").addEventListener("mouseover",openToolsMenu,false);document.getElementById("tools_container").addEventListener("mouseout",closeToolsMenu,false)}}}function Toolbar(){var toolbar=document.getElementById("menubar");if(toolbar){var toolbar_div;if(document.getElementById("unlock_toolbar")){toolbar_div=document.getElementById("unlock_toolbar");document.getElementById("BankButtonB").addEventListener("click",Bank,false);document.getElementById("PostOnOff").addEventListener("click",togglePost,false);document.getElementById("HealOnOff").addEventListener("click",toggleHeal,false);document.getElementById("StamOnOff").addEventListener("click",toggleStam,false);document.getElementById("unlockSettings").addEventListener("click",Settings,false);document.getElementById("EvilOnOff").addEventListener("click",toggleEvil,false)}else{toolbar_div=document.createElement("div");toolbar_div.id="unlock_toolbar";toolbar.appendChild(toolbar_div);var toolbarhtml='<div id="toolbar_content" class="clearfix empire_module_title" style="height: 30px;width:750px;"><a href="http://unlockedmw.com" id="logo" target="_blank" style="position:relative; top:-5px;" > <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB8AAAAeCAYAAADU8sWcAAAKmklEQVR42s1XeVRTZxZHq9hWnVNre9pZbHs6VRCVpbQuFRStVlsLRdYUkEWRHUESIGwiRVYF2RFCACPIYgApKDtBAiJLBBQIBgRFCasIooC4/OZCpz09006n0/ln3jn3fO/lve/73fu7a2Rk/l+v7OzsZVVVVVvq6upCmpub2yUSyYRUKn02NDj4cmho6OXAwMDLnp6ep6Lr10fLKsqac3NzT/J4vO2+vr5v0PYFfxiYy+Uuv3LlylcEKiQAjI6M4MHoKIaHhkDgGBwYwCCtw8PDGKF3c9Ld3Y3KysrhjIyMuJiYmHV0zML/CtTKympxdXW1okgkyurt7UV/fz/a29tBB8LZyQl79+yBsqIi5NaswToFBairqcHM1BSRERGou3oVfX196OrqQlFRUTeHwzkSEBDwzu9iISEh4fWGhgattra2rp7eHjQ2NiA4OBjb1NQh99FqKKyRw3r5tVBatx4qGxShvGEDNtC9wloFyMvJ4WMVFdhYW6OwsHBegZrammepvFQuuUH+N1lISUl5lYANWltbH3V0dCCbnwXt/VoEoIiNyqrYu30nbE3M8Z0LGylh0cjjnkMOl4fEkxHwY7FhbmgEja3q+FhZGRrbtyOUlG6or0dt3VVwkpOTmUzmryugr6//ilAo3NvS0vKQfIyExERo7NyBzzZuhtaOL+B52AH8iER0lNdgovsepvtHMCUdwZM5uT+MofZutJRWIys2CY4WVtilsRNqW7fCw9UNVZUCVAoEIFY5rq6uf/+FCwQCwd8ootuaRCKQkthDft21QwNmX32DOJY3buYVYbz1Fh7ekGCMgMY6e/DwVi/GJD0YE9PzTQkm6P3w1eu4lpmLcLYPDLV1sGvn5/Dx8p4LQlAmPImMjGSx2ewVP08nWbI6rJ4oysu/CIahIb7asxfmezTBsWGhJ6cIg5W1kApq0V/TiME2McalA5gcG8Oj4RGMdvVgsK4ZA1XXIK2qg7RUiIaENMQ6e8BczxBampqIiIwABTHizsR3uru7f/YT/aSVHKXUo4rKCrC92ND5RhsH9nyNoN166DyVjHvZl3D3QiHuXCzGYGMrZiYmMfNkGk8eTmBqchJPp6bx8HYf7pYIcSe/HH25Jbh9lo8y1+8QYmELMwMGLA8dRGZmJnLyckHR70tufvNHcM9KQSUyMjNgbGIME119uG3ciQtqOrgXfRZdsTx0x/GIgUJMDgxievwRhppuoKegDH3Ceozf6cN4z13cE9Sh6/z3uJ2Yid5oHoRmR8E3tMIxi8M4YGyM0JMncamoaC57Wo4cObJ+Hry0vFxEOYnAkCCYHTSH3b79CP3zWpQp70KXbyg6vzuNjoAIdPPzMTs1hdGbnWg7FQ8x/X4riotbWfkQ8wsgyfweXbwcdJ5OpH1haPzGAjkKaogzPoijtnZguboiMzsbVHzg7++vTdbLyly6fJl8nQ93D3fYUY66bt6BlCXvoujt1WhnWENi74l2F1/cTudjdvIx+bUWLc4+aD/igzYCkaTnQNpwHb3FleiIJmW8gyG2cIZww3bwl/wV2VoMHHd0BlmL5NRUpPLOwo3t5rtv374VMrkXLyKDNGK5McF0sIeHnDLyF6xE2aKVqFmljLYv9NFq5YLe3EuYffwEg9cacSPwNMT+YbRGQUJWTw4OY/hGO274haJF2xT1ittQuWwVimVWoEDtS4Q6OIHFZCI+Ph6ZWZmwdbTlaGhovCuTkZWNFB4P3j6e8GK6wOd9onzBG6iSWQbhwj9B+NaHqNezQB9ZNkl1fWp8HKMdYgxU12KkqRmPKQ5mp2coFsbRm3wO11S2oXrxStq/dF6KVbcj5shRHPP2nqc87fx5mFlYcBQUFN6V4aWlzVUgnDhxAgGenvCTV0K17ErUybyGJpK6JStR/ennaDoViXvXRZidmcFQlRBNDix0JSRjavQBnr14juck/Xnfo0FxM67JvE7yKmoWLoNAbQ84bE8EBpyYB08h6k1MTX8A56akICEpCafCwnHKPwDHNquj+X0FiGhzK4loyRtkzVY0+Qehr74BTx8/xm1uMgpXfYRG88OY6L0zD/6CRJpXiGalTWgmpVvm9i5/BzW6xkgNCEJ4eBhi4+Io18/ggIVFwjztHC73RQz5IiY2DjGkgDdVptYde9GyaBnEMovQJrscIuXNuEHg9wn82ewsRhoaUGd2CK2exzBNrfT5yx8sH8wrQJvSp+iQkcXNha9BvF4VVU4uSImIRAwBz0lgUBDs7e3953OdLO86HRWFWNIoOTEJJ93dkf+1DrpXq6BzoSy6ZJfiuspmtAaE4H5DE1n5Ao8fPMBNbgoaSaFJaf8/aX+BIaK9U0kVtxYshuStVRDrGeFySAjOJnGQyOEgIjoaR5nMpzY2NvuJdlmZpNTU8JNhYQiPjML59HSkJiQi3OBbSAxM0PPBh+h6dSlalT9BW8gpSJuaCOQZnk5PY4Aa0N3yMkxTmX3+7Nm8DGXyIVFQQs+Kt3Fvtybq3X2Qm8jBeQqy+IQEhFChOWRlJd6/f/8PRSY9PX3jqbCw8UBqgXN5yOfzkRAQiExTC9xnMHCXerZkyzYMh57EKCk2kpqM4eRUjCRxMcLl0H0Khuh5KCkF3Za26N6ggsHdX6LjKAslUbHIu3AB56m0htOw4UqsUrAFqaurv/3T5BIVFcXx8/NDKDGQk5eHwov5OOPtg0LLw5BaHET/57vRu3ETetfI4857H6Dvvfdxj9b7tN4huf3hanSrfIK71PMHDL9FJ/X38tORuJyTi4LCy4gjq32OH4epmVmblpbWVoJ95cfGtoDAlQIDA8WePj6IiolFcUkpii9dQmpgEArsHdFhY4MxU3OMUasd37QR4+vXYVxuDR6tlccETS8TGhoY1zOAlL5tIaUromNQkV+AUurlyWnpOO7vj8PW1o/0DQ1dt2zZ8uYv5jaixcLD03PAnc1GXPwZlFMPpm6HHBosco/7ocSBDra1xRDNcRMODnhkY4UJO2s8cHbEHRdniGhwuBIcggreOdSUV6BGWIM0mvuOEbCltc2MHoORamRktPpX5zk3N7flNGs5sFgsKZPJmvdRQdFl0FiM6opyFJ3joZSKRFlAAMqP+aDSxwsCXx8IgoNwhZStzshCbVkpRKImVFUL5wuXh7cXLA4emtmvo5Omo6Pzsaqq6uJ/O8c5Ojr+ycvLy87FxaXDlqzz9vVFIpeLChqD2ts70NZyA9eqqlFDbqkpLsFVWq8JrqD1ejPEYjGuUv7P9YlgCk6HI05gGJuM6hkYcKmJqNLxi//jBDvHgIeHx9cOTk7pVnZ2U9Z2dvCkujzHxDlKmcKiEgiorgvr6lFdU4fSsgpc4OcgNuEMfE/4w57ccsDMDPoGBs1krZuurq78b1r8rxeVvkVMDw95ZxcXeztHx7KDloenDpiZw9rGFk5HmWC5s+Hu6QVXqtlHWa6YY8nE9AD0DPSfG37LuMUwMgqnqN5N+bzyD/9zIf8vZbLZqnOucHNj8+3s7G+amJj0MRhG0NXTnxcdXb0RhrHxTUtLyyKqXL6HDh3aq8Vg/OXn6fS/XAtiY2OXhYWFrXFyctrEYJioa2vrfampqTkv2traGkTtJqrX6yhdV1LQLvq9B/8DrIup5MQ5YSwAAAAASUVORK5CYII%3D"></a><a class="sexy_button_new short black" id="BankButtonB" style="position:relative; top:-15px; left:10px"><span><span><img src="http://mwfb.static.zgncdn.com/mwfb/graphics/icon_cash_16x16_01.gif"></span></span></a><marquee behavior="scroll" direction="left" id="unlockedStatus" width="30%" style="position:relative; top:-10px; left:150px;" ><iframe src="http://www.facebook.com/plugins/like.php?app_id=116987501735207&href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FUnlockedMW-Unlock-your-Mafia-Wars-Game%2F216635788360770%3Fsk%3Dwall&send=false&layout=button_count&width=50&show_faces=true&action=like&colorscheme=light&font&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:21px; position:relative; top:3px;" allowTransparency="true"></iframe>ICES:'+icecount+" KILLS:"+killcount+" TOTAL:"+(icecount+killcount*2)+'</marquee><a id="unlockSettings" style="position:relative; top:-15px; left:180px;" class="sexy_button_new short black"><span class="sexy_health_new"><span><img src="http://mwfb.static.zgncdn.com/mwfb/graphics/v3/icon_hammer_wrench.png"></span></span></a><a id="EvilOnOff" style="position:relative; top:-15px; left:185px;" class="sexy_button_new short black"><span class="sexy_health_new"><span><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACcElEQVQ4ja2TXUiTYRTHz9vcFN1UXOwia1uWZRmVpVtYtlQwtRYVKzcldboKhDI/CMwMFiRudFMIliVYZJZ9XCRSN2n0RZeZ9kWYZKFlfpIphvbvOVtiBruJDvx5z3ue/++c93l4XqK5oRHaTP8a/nI6faaKpkVaKhE5wyRqYHEualvjjfROJqNSnw2CA6XayS4JzcUKvLGvw+iJFI84P5usxEgnQRVINb54Y6paPtTdEoixJ0r8qEwHqmb1rUmLT20BSA2TD7H3b3hBslLqH9kdji8OLYZztJjOWwLkz2pKaCBPh2HhYS8zs58u0eXXBn+MbVehJGo+Cmw2FJli0Z+iwmhaMIpELTtaj5b1AZjaEQL2MjPDq3NDaXJiix/qY+S413IX7Q4HXhUewa2MjbiUFo0XTie6q6tRXlKMviQZJkx+yBEMs9wgvU5L+J4koXKTBl2NjXAkJqLWasXjgp14eMCMCn63WPDgTjOemghj8RLqFhGY5QaZ13WE4Q2EG7sIF86dx82sLDRkWPHMqkdH9jJcNJtxOy8frpNHMWAVXgPhms7TIJMbJJzSEPpiCCMWQs0+CWW5kWjaG4RxMW08gfAoOxT1hxajYz9hMJ7Qu5bADLPcQG5UUO/LKELPasJnozAJcChOTIrzPgeFvsZ6h3wQns7lBINgmJ05SHt5KKE9kvB2BeH9Kq/x4xqvOOcarz1fSigL8Uy3z7kICiJ3oZJ+ti4kuCPUqNhjxrGCgx4dt5jhigjD/XDCYeERY92+bqNtpYx6ioMIV9SEVnFQbXpvzjVeY4/Pf+F38L62zSNyKYmusjjn2p97/m/xC4Y0QDH2x7LDAAAAAElFTkSuQmCC""></span></span></a><a id="PostOnOff" style="position:relative; top:-15px; left:190px;" class="sexy_button_new short black"><span class="sexy_health_new"><span><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsSAAALEgHS3X78AAAACXZwQWcAAAAQAAAAEABcxq3DAAABUUlEQVQ4y52TMS8EURSFv4nR2LEYWsUWej+ATtBpSDQSUSgldEKHQoOWQpQqiXI1IvsHlBKdgkSxiQ22eO+ep5jM2mWHZG81Jznn5Jz77kQhBOaWdwI9TPXyIIpmlrbD5PRsL3ruazfEAObEW/29kGhmND8/WjgZLDOUJshELBPOhDcVGgwnfWyuzpMOlwDYPaniTJhEbBLmDTMrNFhbnGqJ80TmDUnEUp6g2CAXH1/c8fzaAOhM4Jzw/neFz49GB354fAJgoFTGOSEFYilgpq4VTg9WuuKNvSvMlFVwzuOc4X1xhZ/jveGcYabsGb1Z1x2s714CcLa/3IFzzY8d/J+gneOcvu+gKMEvgzZOK8FoWmKiMkKj3v+vQWV8rPVdThOaL4PZDmQB/XGJ+bRzZIGgQByUiZOhUqHw8PwWoIMjy+4gCiEwvbDV0+9cuz6KvgDVmeooGa+dswAAACV0RVh0Y3JlYXRlLWRhdGUAMjAxMC0wNC0xM1QxOTo0NjoyMCswMDowMLs82X8AAAAVdEVYdENyZWF0aW9uIFRpbWUAMjcvMy8wOeispIwAAAAldEVYdG1vZGlmeS1kYXRlADIwMTAtMDQtMTNUMTk6NDY6MjArMDA6MDDkja9LAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1MzmNZGAwAAAal6VFh0WE1MOmNvbS5hZG9iZS54bXAAAHja1VLLitswFN3nKy7qtrYezozHwvZQEkIppAyTQEt3siV7TKIHsgZr8vVd5NFMKF0UuuhZXs7j3sMtH6MT7U4FaFQ/mAoBAIJBVujb3Zqs3UK9DJ8PXm0OX7ftYdcWEj3WszLyqJ1WQUDUezPyWCEhbaO4GblWQWAEkUftwq5Cn6RtFHxfP8HCegXzlCYtyeYwv09Zzor8/iNsRIAvwgDLgRGSA2OcUj6ncAKqZwBQetnx5+XqlOllV6GXEBzHeJqmdMpS63tMi6LAhGHGEi+7ZHwzQcTEjB+OJmefpRpbP7gwWANedlw09jVUCM3gCqfjhLsEmTEV0jYqba3GUThMU4IvzgBQRuH4wisRrN9au6+P568GrybrdyMsNlmJb0m/06ulCKpmhBQJyRKWb+kdZw88oz+u9EfSjXxt5dC9XcmLhDxsWcZpxslZfkU694JvivnbwmR76cu9+n1qfY9li9VeaWXCiGlK33cmW95Zr0WoBy16hZ3pS/xr+Mf9jtPn5aqelfjyl/W7tf4V/vuQn8/A+zhjKi18AAAAAElFTkSuQmCC"></span></span></a><a id="HealOnOff" style="position:relative; top:-15px; left:195px;" class="sexy_button_new short black"><span class="sexy_health_new"><span><img src="http://mwfb.static.zgncdn.com/mwfb/graphics/icon_health_16x16_01.gif"></span></span></a><a id="StamOnOff" style="position:relative; top:-15px; left:200px;" class="sexy_button_new short black"><span class="sexy_health_new"><span><img src="http://mwfb.static.zgncdn.com/mwfb/graphics/icon_stamina_16x16.png"></span></span></a><a id="JobsOnOff" style="position:relative; top:-15px; left:205px;" class="sexy_button_new short black"><span class="sexy_health_new"><span><img src="http://mwfb.static.zgncdn.com/mwfb/graphics/icon_energy_16x16_01.gif"></span></span></a>';toolbar_div.innerHTML=toolbarhtml;document.getElementById("BankButtonB").addEventListener("click",Bank,false);document.getElementById("PostOnOff").addEventListener("click",togglePost,false);document.getElementById("HealOnOff").addEventListener("click",toggleHeal,false);document.getElementById("StamOnOff").addEventListener("click",toggleStam,false);document.getElementById("JobsOnOff").addEventListener("click",toggleJobs,false);document.getElementById("unlockSettings").addEventListener("click",Settings,false);document.getElementById("EvilOnOff").addEventListener("click",toggleEvil,false);if(stamOn=="true"||stamOn==true){document.getElementById("StamOnOff").setAttribute("class","sexy_button_new short green");document.getElementById("StamOnOff").innerHTML='<span class="sexy_health_new"><span><img src="http://mwfb.static.zgncdn.com/mwfb/graphics/icon_stamina_16x16.png"></span></span>'}else{if(stamOn==2){document.getElementById("StamOnOff").setAttribute("class","sexy_button_new short red");document.getElementById("StamOnOff").innerHTML='<span class="sexy_health_new"><span><img src="http://mwfb.static.zgncdn.com/mwfb/graphics/icon_stamina_16x16.png"></span></span>'}}if(healOn=="true"||healOn==true){document.getElementById("HealOnOff").setAttribute("class","sexy_button_new short green");document.getElementById("HealOnOff").innerHTML='<span class="sexy_health_new"><span><img src="http://mwfb.static.zgncdn.com/mwfb/graphics/icon_health_16x16_01.gif"></span></span>'}if(postOn=="true"||postOn==true){document.getElementById("PostOnOff").setAttribute("class","sexy_button_new short green");document.getElementById("PostOnOff").innerHTML='<span class="sexy_health_new"><span><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsSAAALEgHS3X78AAAACXZwQWcAAAAQAAAAEABcxq3DAAABUUlEQVQ4y52TMS8EURSFv4nR2LEYWsUWej+ATtBpSDQSUSgldEKHQoOWQpQqiXI1IvsHlBKdgkSxiQ22eO+ep5jM2mWHZG81Jznn5Jz77kQhBOaWdwI9TPXyIIpmlrbD5PRsL3ruazfEAObEW/29kGhmND8/WjgZLDOUJshELBPOhDcVGgwnfWyuzpMOlwDYPaniTJhEbBLmDTMrNFhbnGqJ80TmDUnEUp6g2CAXH1/c8fzaAOhM4Jzw/neFz49GB354fAJgoFTGOSEFYilgpq4VTg9WuuKNvSvMlFVwzuOc4X1xhZ/jveGcYabsGb1Z1x2s714CcLa/3IFzzY8d/J+gneOcvu+gKMEvgzZOK8FoWmKiMkKj3v+vQWV8rPVdThOaL4PZDmQB/XGJ+bRzZIGgQByUiZOhUqHw8PwWoIMjy+4gCiEwvbDV0+9cuz6KvgDVmeooGa+dswAAACV0RVh0Y3JlYXRlLWRhdGUAMjAxMC0wNC0xM1QxOTo0NjoyMCswMDowMLs82X8AAAAVdEVYdENyZWF0aW9uIFRpbWUAMjcvMy8wOeispIwAAAAldEVYdG1vZGlmeS1kYXRlADIwMTAtMDQtMTNUMTk6NDY6MjArMDA6MDDkja9LAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1MzmNZGAwAAAal6VFh0WE1MOmNvbS5hZG9iZS54bXAAAHja1VLLitswFN3nKy7qtrYezozHwvZQEkIppAyTQEt3siV7TKIHsgZr8vVd5NFMKF0UuuhZXs7j3sMtH6MT7U4FaFQ/mAoBAIJBVujb3Zqs3UK9DJ8PXm0OX7ftYdcWEj3WszLyqJ1WQUDUezPyWCEhbaO4GblWQWAEkUftwq5Cn6RtFHxfP8HCegXzlCYtyeYwv09Zzor8/iNsRIAvwgDLgRGSA2OcUj6ncAKqZwBQetnx5+XqlOllV6GXEBzHeJqmdMpS63tMi6LAhGHGEi+7ZHwzQcTEjB+OJmefpRpbP7gwWANedlw09jVUCM3gCqfjhLsEmTEV0jYqba3GUThMU4IvzgBQRuH4wisRrN9au6+P568GrybrdyMsNlmJb0m/06ulCKpmhBQJyRKWb+kdZw88oz+u9EfSjXxt5dC9XcmLhDxsWcZpxslZfkU694JvivnbwmR76cu9+n1qfY9li9VeaWXCiGlK33cmW95Zr0WoBy16hZ3pS/xr+Mf9jtPn5aqelfjyl/W7tf4V/vuQn8/A+zhjKi18AAAAAElFTkSuQmCC"></span></span>'}if(jobsOn=="true"||jobsOn==true){document.getElementById("JobsOnOff").setAttribute("class","sexy_button_new short green");document.getElementById("JobsOnOff").innerHTML='<span class="sexy_health_new"><span><img src="http://mwfb.static.zgncdn.com/mwfb/graphics/icon_energy_16x16_01.gif"></span></span>'}}}ExternalLinks()}function Jobber(){if(NYjobon||BKjobon||ILVjobon||Bjobon){if(pauseOn){if(parseInt(document.getElementById("exp_to_next_level").innerHTML)<stopat){NYjobon=false;BKjobon=false;ILVjobon=false;Bjobon=false;return}}var Job;var url;if(NYjobon){Job=document.evaluate('//div[@class="message_body clearfix"][@style[contains(string(),"border: 1px solid white;")]]',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);Job=Job.snapshotItem(0).innerHTML;city=/mw_city(\d)/.exec(document.getElementById("mw_city_wrapper").className)[1];if(parseInt(document.getElementById("user_energy").innerHTML)<parseInt((/([\d]+) Energy/.exec(Job))[1])){NYjobon=false;return}url="html_server.php?xw_controller=job&xw_action=dojob&xw_city="+city+"&tmp="+(/tmp=([\da-f]+)/.exec(Job))[1]+"&cb="+(/cb=([\da-f]+)/.exec(Job))[1]+"&xw_person="+(/person=([\d]+)/.exec(Job))[1]+"&job="+(/job=([\d]+)/.exec(Job))[1]+"&tab="+(/tab=([\d]+)/.exec(Job))[1]}else{if(BKjobon){if((/Do This Job Again!/.test(document.getElementById("inner_page").innerHTML))){Job=document.evaluate("//a[@class='sexy_button_new short orange sexy_energy_new'][contains(string(),'Do This Job Again!')]",document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);url="html_server.php?"+(/xw_controller=job&xw_action=dojob([&\w\d\=]+)/.exec(Job.snapshotItem(0).onclick))[0]}else{if((/Do This Job Again/.test(document.getElementById("inner_page").innerHTML))){Job=document.evaluate("//a[@class='sexy_button_new short orange sexy_energy_new'][contains(string(),'Do This Job Again')]",document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);url="html_server.php?"+(/xw_controller=story&xw_action=dojob([&\w\d\=]+)/.exec(Job.snapshotItem(0).onclick))[0]}else{BKjobon=false;return}}}else{if(ILVjobon){if(document.getElementsByClassName("buy_prompt").length>0){ILVjobon=false;return}city=/mw_city(\d)/.exec(document.getElementById("mw_city_wrapper").className)[1];Job=document.evaluate('//div[@class="job_info"][@style[contains(string(),"255, 255, 255")]]',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);Job=parseInt((/job([\d]+)/.exec(Job.snapshotItem(0).id))[1]);if(([4,6,8,13,16,25,28,31,39,42,46,49,52,59,60,61,70,74,79,82].indexOf(Job)!==-1&&city==6)||([5,11,12,20,23,33,41,46,51,54,56,62,65,67,72,76,78].indexOf(Job)!==-1&&city==5)){ExpertMapController.selectNode(Job);return MapController.doFightJob(Job,(/(p\|[\d]+)/.exec(document.getElementById("fight_list0").onclick))[1],1,(/'p\|([\d]+)',0,'(.+)'\);/.exec(document.getElementById("fight_list0").onclick))[2])}else{ExpertMapController.selectNode(Job);return MapController.panelButtonDoJob(Job)}}else{if(Bjobon){var clickMe=document.getElementById("btn_dojob_"+Bjobid);var evt=document.createEvent("MouseEvents");evt.initMouseEvent("click",true,true,window,0,0,0,0,0,false,false,false,false,0,null);clickMe.dispatchEvent(evt);return}}}}var client=new XMLHttpRequest();client.open("POST",url,true);client.setRequestHeader("X-Requested-With","XMLHttpRequest");client.setRequestHeader("Accept","*/*");client.setRequestHeader("Content-Type","application/x-www-form-urlencoded");client.send("ajax=1&liteload=1&sf_xw_user_id="+xw_user+"&sf_xw_sig="+local_xw_sig+"&skip_req_frame=1");client.onreadystatechange=function(){if(this.readyState==4){response=client.responseText;if((/user_cash_nyc":"([$\d,]+)"/.test(response))){document.getElementById("user_cash_nyc").innerHTML=(/user_cash_nyc":"([$\d,]+)"/.exec(response))[1];document.getElementById("user_cash_bangkok").innerHTML=(/user_cash_bangkok":"([B$\d,]+)"/.exec(response))[1];document.getElementById("user_cash_italy").innerHTML=(/user_cash_italy":"([L$\d,]+)"/.exec(response))[1];document.getElementById("user_cash_vegas").innerHTML=(/user_cash_vegas":"([V$\d,]+)"/.exec(response))[1];document.getElementById("user_cash_brazil").innerHTML=(/user_cash_brazil":"([BRL$\d,]+)"/.exec(response))[1];document.getElementById("level_bar").setAttribute("style","overflow-x: hidden; overflow-y: hidden; background-color: rgb(41, 202, 49); text-align: left; float: left; width: "+(/percent_complete":([\d]+),"/.exec(response))[1]+"%;");document.getElementById("user_stamina").innerHTML=(/"user_stamina":([\d]+),"user_max_stamina/.exec(response))[1]}else{if((/user_cash_nyc'\] = "([$\d,]+)/.test(response))){document.getElementById("inner_page").innerHTML=response;document.getElementById("user_energy").innerHTML=(/user_energy'\] = parseInt\("([\d]+)/.exec(response))[1];document.getElementById("level_bar").setAttribute("style","overflow-x: hidden; overflow-y: hidden; background-color: rgb(41, 202, 49); text-align: left; float: left; width: "+(/percent_complete'\] = "([\d]+)/.exec(response))[1]+"%;");document.getElementsByClassName("cur_cash").innerHTML=(/user_cash'\] = parseInt\("([\d]+)/.exec(response))[1];document.getElementById("exp_to_next_level").innerHTML=(/exp_to_next_level'\] = parseInt\("([\d]+)/.exec(response))[1];document.getElementById("user_cash_nyc").innerHTML=(/user_cash_nyc'\] = "([$\d,]+)"/.exec(response))[1];document.getElementById("user_cash_bangkok").innerHTML=(/user_cash_bangkok'\] = "([B$\d,]+)"/.exec(response))[1];document.getElementById("user_cash_italy").innerHTML=(/'user_cash_italy'\] = "([L$\d,]+)"/.exec(response))[1];document.getElementById("user_cash_vegas").innerHTML=(/'user_cash_vegas'\] = "([V$\d,]+)"/.exec(response))[1];document.getElementById("user_cash_brazil").innerHTML=(/'user_cash_brazil'\] = "([BRL$\d,]+)"/.exec(response))[1]}}}}}}function loadProfile(pid){do_ajax("inner_page","remote/html_server.php?xw_controller=stats&xw_action=view&user="+pid,1,1,0,0)}function Fightlist(){var i;if(fightActionRunning||isFightPopOpen()||(document.getElementById("user_stamina").innerHTML<=10)||(parseInt(document.getElementById("user_health").innerHTML)<healat)){return}if((document.getElementsByClassName("impulse_buy_prompt contextual").length>0)||(document.evaluate('//li[contains(@class, "tab_on tab_middle")]//a[contains(., "Fighters")]',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength==0)){document.getElementById("unlockedStatus").innerHTML="Re-Loading fightlist ICES"+icecount+" KILLS:"+killcount+" TOTAL:"+(icecount+killcount*2);do_ajax("inner_page","remote/html_server.php?xw_controller=fight&xw_action=view&tab=0",1,1,0,0);return}city=/mw_city(\d)/.exec(document.getElementById("mw_city_wrapper").className)[1];if(evilCity!=city){do_ajax("inner_page","remote/html_server.php?xw_controller=travel&xw_action=travel&destination="+evilCity+"&from=index&nextParams=&menu=travel",1,1,0,0)}fightActionRunning=true;clearTimeout(fightwatchdogtimout);fightwatchdogtimout=setTimeout(resetfightaction,15000);var fightlist=document.evaluate('//table[@class="main_table fight_table"]//a[contains(@href, "opponent_id")]',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);var randomizer=Math.floor(Math.random()*10)+1;for(i=fightlist.snapshotLength-randomizer;i>0;i--){var iced=fightlist.snapshotItem(i).parentNode.parentNode.getElementsByTagName("td")[0].className;if(iced!="fight_list_player_dead"){break}}if(fightlist.snapshotItem(i).parentNode.parentNode.getElementsByTagName("td")[0].getElementsByTagName("a")[2]){target_name=fightlist.snapshotItem(i).parentNode.parentNode.getElementsByTagName("td")[0].getElementsByTagName("a")[1].innerHTML+" "+fightlist.snapshotItem(i).parentNode.parentNode.getElementsByTagName("td")[0].getElementsByTagName("a")[2].innerHTML}else{target_name=fightlist.snapshotItem(i).parentNode.parentNode.getElementsByTagName("td")[0].getElementsByTagName("a")[1].innerHTML}document.getElementById("unlockedStatus").innerHTML="Attacking "+target_name+" ICES:"+icecount+" KILLS:"+killcount+" TOTAL:"+(icecount+killcount*2);var evt=document.createEvent("MouseEvents");evt.initMouseEvent("click",true,true,window,0,0,0,0,0,false,false,false,false,0,null);fightlist.snapshotItem(i).dispatchEvent(evt)}function Battle(){var targets;if(fightActionRunning||isFightPopOpen()||(document.getElementById("user_stamina").innerHTML<=0)||(parseInt(document.getElementById("user_health").innerHTML)<healat)){return}if(document.getElementsByClassName("sexy_button_new short red sexy_attack_new impulse_buy mw_new_ajax").length>0){targets=document.getElementsByClassName("sexy_button_new short red sexy_attack_new impulse_buy mw_new_ajax");var targnum=Math.floor(Math.random()*targets.length);var evt=document.createEvent("MouseEvents");evt.initMouseEvent("click",true,true,window,0,0,0,0,0,false,false,false,false,0,null);targets[targnum].dispatchEvent(evt)}else{if(document.getElementsByClassName("sexy_button_new short red sexy_attack_new impulse_buy mw_new_ajax").length>0){targets=document.getElementsByClassName("sexy_button_new medium red sexy_attack_new impulse_buy mw_new_ajax");var evt=document.createEvent("MouseEvents");evt.initMouseEvent("click",true,true,window,0,0,0,0,0,false,false,false,false,0,null);targets[0].dispatchEvent(evt)}else{targets=document.getElementsByClassName("sexy_button_new sexy_page_refresh_new");var evt=document.createEvent("MouseEvents");evt.initMouseEvent("click",true,true,window,0,0,0,0,0,false,false,false,false,0,null);targets[0].dispatchEvent(evt)}}}function Rivals(){var i;if(fightActionRunning||isFightPopOpen()||(document.getElementById("user_stamina").innerHTML<=0)||(parseInt(document.getElementById("user_health").innerHTML)<healat)){return}if((document.getElementsByClassName("impulse_buy_prompt contextual").length>0)||(document.evaluate('//li[contains(@class, "tab_on tab_middle")]//a[contains(., "Rivals")]',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength==0)){document.getElementById("unlockedStatus").innerHTML="Re-Loading fightlist ICES"+icecount+" KILLS:"+killcount+" TOTAL:"+(icecount+killcount*2);do_ajax("inner_page","remote/html_server.php?xw_controller=fight&xw_action=view&tab=1",1,1,0,0);return}city=/mw_city(\d)/.exec(document.getElementById("mw_city_wrapper").className)[1];if(evilCity!=city){do_ajax("inner_page","remote/html_server.php?xw_controller=travel&xw_action=travel&destination="+evilCity+"&from=index&nextParams=&menu=travel",1,1,0,0)}fightActionRunning=true;clearTimeout(fightwatchdogtimout);fightwatchdogtimout=setTimeout(resetfightaction,15000);var fightlist=document.evaluate('//table[@class="main_table fight_table"]//a[contains(@href, "opponent_id")]',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(i=fightlist.snapshotLength-11;i>=0;i--){var iced=fightlist.snapshotItem(i).parentNode.parentNode.getElementsByTagName("td")[0].className;if(iced!="fight_list_player_dead"){if(!rivalcycle[i]){rivalcycle[i]=true;break}}}if(i<0){i=0}if(rivalcycle[0]==true){for(var j=0;j<rivalcycle.length;j++){rivalcycle[j]=false}}if(fightlist.snapshotItem(i).parentNode.parentNode.getElementsByTagName("td")[0].getElementsByTagName("a")[2]){target_name=fightlist.snapshotItem(i).parentNode.parentNode.getElementsByTagName("td")[0].getElementsByTagName("a")[1].innerHTML+" "+fightlist.snapshotItem(i).parentNode.parentNode.getElementsByTagName("td")[0].getElementsByTagName("a")[2].innerHTML}else{target_name=fightlist.snapshotItem(i).parentNode.parentNode.getElementsByTagName("td")[0].getElementsByTagName("a")[1].innerHTML}document.getElementById("unlockedStatus").innerHTML="Attacking "+target_name+" ICES:"+icecount+" KILLS:"+killcount+" TOTAL:"+(icecount+killcount*2);var evt=document.createEvent("MouseEvents");evt.initMouseEvent("click",true,true,window,0,0,0,0,0,false,false,false,false,0,null);fightlist.snapshotItem(i).dispatchEvent(evt)}function clearicecheckfail(){icecheckfail=false}function FightFamily(){if(isFightPopOpen()){return}if(document.getElementById("user_stamina").innerHTML<=0){return}if((document.getElementsByClassName("impulse_buy_prompt contextual").length>0)||(/Remove from Mafia/.test(document.body.innerHTML))){document.getElementById("unlockedStatus").innerHTML="Loading Next Family target... ICES:"+icecount+" KILLS:"+killcount+" TOTAL:"+(icecount+killcount*2);familyindex++;if(familyindex>=familytargets.length){familyindex=0}loadProfile(familytargets[familyindex]);return}health=parseInt(document.getElementById("user_health").innerHTML);if(health<healat){return}if(/Sucker Punch/.test(document.body.innerHTML)){var hitlist_url=/Sucker Punch.+?<a href="(.+?)".+?>Add to Hitlist/.exec(document.body.innerHTML)[1].replace(/&/g,"&");target_name=/levels">\((.*?)\)/.exec(document.body.innerHTML)[1];if(icecheckfail){document.getElementById("unlockedStatus").innerHTML="Attacking "+target_name+" ICES:"+icecount+" KILLS:"+killcount+" TOTAL:"+(icecount+killcount*2);var elem=document.getElementById("btn_attack_"+familytargets[familyindex].replace("|",""));var evt=document.createEvent("MouseEvents");evt.initMouseEvent("click",true,true,window,0,0,0,0,0,false,false,false,false,0,null);elem.dispatchEvent(evt)}else{document.getElementById("unlockedStatus").innerHTML="Icechecking "+target_name+" ICES:"+icecount+" KILLS:"+killcount+" TOTAL:"+(icecount+killcount*2);var params={ajax:1,liteload:1,sf_xw_user_id:xw_user,sf_xw_sig:local_xw_sig};$.ajax({type:"POST",url:hitlist_url,timeout:30000,data:params,success:function(msg){if(/is already dead or too weak!/.test(msg)){document.getElementById("unlockedStatus").innerHTML=target_name+" is dead... ICES:"+icecount+" KILLS:"+killcount+" TOTAL:"+(icecount+killcount*2);familyindex++;if(familyindex>=familytargets.length){familyindex=0}loadProfile(familytargets[familyindex]);return}else{if(/The action was not able to be completed/.test(msg)){icecheckfail=true;setTimeout(clearicecheckfail,45000);document.getElementById("unlockedStatus").innerHTML="Zynga icecheck sucks.... ICES:"+icecount+" KILLS:"+killcount+" TOTAL:"+(icecount+killcount*2);return}else{if(/Sucker Punch/.test(document.body.innerHTML)){document.getElementById("unlockedStatus").innerHTML="Attacking "+target_name+" ICES:"+icecount+" KILLS:"+killcount+" TOTAL:"+(icecount+killcount*2);var elem=document.getElementById("btn_attack_"+familytargets[familyindex].replace("|",""));var evt=document.createEvent("MouseEvents");evt.initMouseEvent("click",true,true,window,0,0,0,0,0,false,false,false,false,0,null);elem.dispatchEvent(evt)}}}},error:function(req,status,err){return}})}}else{document.getElementById("unlockedStatus").innerHTML="Loading next faily target... ICES:"+icecount+" KILLS:"+killcount+" TOTAL:"+(icecount+killcount*2);familyindex++;if(familyindex>=familytargets.length){familyindex=0}loadProfile(familytargets[familyindex])}}function decodeID(strID){strID=unescape(strID);if(isNaN(strID)){strID=decode64(strID)}return strID}function decode64(input){var output="";var chr1,chr2,chr3="";var enc1,enc2,enc3,enc4="";var i=0;var base64test=/[^A-Za-z0-9\+\/\=]/g;if(base64test.exec(input)){}input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{enc1=keyStr.indexOf(input.charAt(i++));enc2=keyStr.indexOf(input.charAt(i++));enc3=keyStr.indexOf(input.charAt(i++));enc4=keyStr.indexOf(input.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;output=output+String.fromCharCode(chr1);if(enc3!=64){output=output+String.fromCharCode(chr2)}if(enc4!=64){output=output+String.fromCharCode(chr3)}chr1=chr2=chr3="";enc1=enc2=enc3=enc4=""}while(i<input.length);return output}function PureEvil(){if(isFightPopOpen()){return}if(document.getElementById("user_stamina").innerHTML<=0){return}if(document.getElementsByClassName("impulse_buy_prompt contextual").length>0){document.getElementById("unlockedStatus").innerHTML="Re-Loading "+target_name+" ICES:"+icecount+" KILLS:"+killcount+" TOTAL:"+(icecount+killcount*2);setTimeout(PureEvil,1500);loadProfile(targetid);return}health=parseInt(document.getElementById("user_health").innerHTML);if(health<healat){return}if(/Sucker Punch/.test(document.body.innerHTML)){var hitlist_url=/Sucker Punch.+?<a href="(.+?)".+?>Add to Hitlist/.exec(document.body.innerHTML)[1].replace(/&/g,"&");document.getElementById("unlockedStatus").innerHTML="Icechecking "+target_name+" ICES:"+icecount+" KILLS:"+killcount+" TOTAL:"+(icecount+killcount*2);var params={ajax:1,liteload:1,sf_xw_user_id:xw_user,sf_xw_sig:local_xw_sig};$.ajax({type:"POST",url:hitlist_url,timeout:30000,data:params,success:function(msg){if(/is already dead or too weak!/.test(msg)){document.getElementById("unlockedStatus").innerHTML=target_name+" is dead... ICES:"+icecount+" KILLS:"+killcount+" TOTAL:"+(icecount+killcount*2);return}else{if(/The action was not able to be completed/.test(msg)){document.getElementById("unlockedStatus").innerHTML="Zynga icecheck sucks.... ICES:"+icecount+" KILLS:"+killcount+" TOTAL:"+(icecount+killcount*2);return}else{if(/Sucker Punch/.test(document.body.innerHTML)){document.getElementById("unlockedStatus").innerHTML="Attacking "+target_name+" ICES:"+icecount+" KILLS:"+killcount+" TOTAL:"+(icecount+killcount*2);var elem=document.getElementById("btn_attack_"+targetid.replace("|",""));var evt=document.createEvent("MouseEvents");evt.initMouseEvent("click",true,true,window,0,0,0,0,0,false,false,false,false,0,null);elem.dispatchEvent(evt)}}}},error:function(req,status,err){return}})}else{document.getElementById("unlockedStatus").innerHTML="Loading "+target_name+" ICES:"+icecount+" KILLS:"+killcount+" TOTAL:"+(icecount+killcount*2);setTimeout(PureEvil,1500);loadProfile(targetid)}}function Fighter(){var times;var i;var health;var url;if(newfighton){if(isFightPopOpen()){var elem=document.getElementById("attacker_fight_status");if(!/Lost/.test(elem.innerHTML)||stamOn==2){elem=document.getElementsByClassName("sexy_button_new medium red impulse_buy fightV2AttackBtn");if(document.getElementsByClassName("sexy_button_new medium red impulse_batch_buy fightV2AttackBtn").length>0){elem[3]=document.getElementsByClassName("sexy_button_new medium red impulse_batch_buy fightV2AttackBtn")[1]}if(document.getElementById("fightv2_poweratkbtn_boost_on").style.display=="block"||document.getElementById("fightv2_poweratkbtn_boost_off").style.display=="block"){health=parseInt(document.getElementById("user_health").innerHTML);if(health<healat){return}url=elem[3].href.replace("remote/","");if(burstOn){url=url.replace("click_amt=1","click_amt=4")}var client=new XMLHttpRequest();client.open("POST",url,true);client.setRequestHeader("X-Requested-With","XMLHttpRequest");client.setRequestHeader("Accept","*/*");client.setRequestHeader("Content-Type","application/x-www-form-urlencoded");client.send("ajax=1&liteload=1&sf_xw_user_id="+xw_user+"&sf_xw_sig="+local_xw_sig+"&skip_req_frame=1");client.onreadystatechange=function(){if(this.readyState==4){response=client.responseText;try{var msg=JSON.parse(response)}catch(err){return}msg.user_fields.user_health=CurHealth;FightV2.powerAttack(msg,this);parseNewFightResults(response);var PercentComplete=(/percent_complete":([\d]+),"/.exec(response))[1];document.getElementById("level_bar").setAttribute("style","overflow-x: hidden; overflow-y: hidden; background-color: rgb(41, 202, 49); text-align: left; float: left; width: "+PercentComplete+"%;");document.getElementById("exp_to_next_level").innerHTML=(/exp_to_next_level":([\d]+),/.exec(response))[1];document.getElementById("user_cash_nyc").innerHTML=(/user_cash_nyc":"([$\d,]+)"/.exec(response))[1];document.getElementById("user_cash_italy").innerHTML=(/user_cash_italy":"([L$\d,]+)"/.exec(response))[1];document.getElementById("user_cash_vegas").innerHTML=(/user_cash_vegas":"([V$\d,]+)"/.exec(response))[1];document.getElementById("user_cash_brazil").innerHTML=(/user_cash_brazil":"([BRL$\d,]+)"/.exec(response))[1];document.getElementById("user_cash_chicago").innerHTML=(/user_cash_chicago":"([\\u00a2\d,]+)"/.exec(response))[1];document.getElementById("user_stamina").innerHTML=(/user_stamina":([\d]+)/.exec(response))[1]}};return}}newfighton=false;if(icesteal){if(document.getElementById("fv2_defender_overlay_stolen").style.display=="block"){if(document.getElementsByClassName("sexy_button_new medium red sexy_attack_new impulse_buy").length>0){elem=document.getElementsByClassName("sexy_button_new medium red sexy_attack_new impulse_buy");var evt=document.createEvent("MouseEvents");evt.initMouseEvent("click",true,true,window,0,0,0,0,0,false,false,false,false,0,null);elem[0].dispatchEvent(evt);return}}}if(!closing){setTimeout(closeFightPop,2500)}closing=true}}if(hitlist){element=document.evaluate("//a[@class='sexy_button_new short red sexy_attack_new'][contains(string(),'Attack Again')]",document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);if(element.snapshotLength>0){element=element.snapshotItem(0).href;var HLResult=document.getElementById("content_row").innerHTML;if(!(/message_body">You <strong>LOST<\/strong> the fight/.test(HLResult))){url="html_server.php?"+(/xw_controller=hitlist&xw_action=attack([&\w\d=]+)/.exec(element))[0]}else{hitlist=false;return}}health=parseInt(document.getElementById("user_health").innerHTML);if(health<healat){return}var client=new XMLHttpRequest();client.open("POST",url,true);client.setRequestHeader("X-Requested-With","XMLHttpRequest");client.setRequestHeader("Accept","*/*");client.setRequestHeader("Content-Type","application/x-www-form-urlencoded");client.send("ajax=1&liteload=1&sf_xw_user_id="+xw_user+"&sf_xw_sig="+local_xw_sig+"&skip_req_frame=1");client.onreadystatechange=function(){if(this.readyState==4){response=client.responseText;document.getElementById("exp_to_next_level").innerHTML=(/user_fields\['exp_to_next_level'\] = parseInt\("([\d]+)/.exec(response))[1];document.getElementById("user_cash_nyc").innerHTML=(/user_cash_nyc'\] = "([$\d,]+)"/.exec(response))[1];document.getElementById("user_cash_bangkok").innerHTML=(/user_cash_bangkok'\] = "([B$\d,]+)"/.exec(response))[1];document.getElementById("user_cash_italy").innerHTML=(/'user_cash_italy'\] = "([L$\d,]+)"/.exec(response))[1];document.getElementById("user_cash_vegas").innerHTML=(/'user_cash_vegas'\] = "([V$\d,]+)"/.exec(response))[1];document.getElementById("user_cash_brazil").innerHTML=(/'user_cash_brazil'\] = "([BRL$\d,]+)"/.exec(response))[1];document.getElementById("user_cash_chicago").innerHTML=(/user_cash_chicago":"([\\u00a2\d,]+)"/.exec(response))[1];document.getElementById("user_stamina").innerHTML=(/user_fields\['user_stamina'\] = parseInt\("([\d]+)/.exec(response))[1];document.getElementById("inner_page").innerHTML=response}}}}function UpdateXWSig(){var url="http://facebook.mafiawars.zynga.com/mwfb/";var page="sf_updater.php";var client=new XMLHttpRequest();client.open("POST",url+page,true);client.setRequestHeader("X-Requested-With","XMLHttpRequest");client.setRequestHeader("Accept","*/*");client.setRequestHeader("Content-Type","application/x-www-form-urlencoded");client.send("ajax=1&liteload=1&sf_xw_user_id="+xw_user+"&sf_xw_sig="+local_xw_sig+"&skip_req_frame=1");client.onreadystatechange=function(){if(this.readyState==4){response=client.responseText;local_xw_sig=(/local_xw_sig = '([0-9a-f]+)/.exec(response))[1]}}}function parseNewFightResults(response){var elem=document.getElementById("attacker_fight_status");if(familymodeOn){if(/Lost/.test(elem.innerHTML)){familytargets.splice(familyindex,1)}}if((!/Lost/.test(elem.innerHTML))||(stamOn==2)){if(!newfighton){newfighton=true}}else{newfighton=false;if(stamOn&&isFightPopOpen()){if(icesteal){if(document.getElementById("fv2_defender_overlay_stolen").style.display=="block"){if(document.getElementsByClassName("sexy_button_new medium red sexy_attack_new impulse_buy").length>0){elem=document.getElementsByClassName("sexy_button_new medium red sexy_attack_new impulse_buy");var evt=document.createEvent("MouseEvents");evt.initMouseEvent("click",true,true,window,0,0,0,0,0,false,false,false,false,0,null);elem[0].dispatchEvent(evt);return}}}setTimeout(closeFightPop,2500)}}if(document.getElementById("fv2_defender_overlay_iced").style.display=="block"){if(/Get a boost', 'link': '(.+?)'/.test(response)){icecount++;document.getElementById("unlockedStatus").innerHTML="ICES:"+icecount+" KILLS:"+killcount+" TOTAL:"+(icecount+killcount*2);if(postOn){publishIce(response)}}}if(document.getElementById("fv2_defender_overlay_killed").style.display=="block"){if(/Get a boost', 'link': '(.+?)'/.test(response)){killcount++;document.getElementById("unlockedStatus").innerHTML="ICES:"+icecount+" KILLS:"+killcount+" TOTAL:"+(icecount+killcount*2);if(postOn){publishIce(response)}}}}function publishIce(response){var feed;if(/msg.fight_result =/.test(response)){feed=/'feed_js': '(.+?)'/.exec(response)[0]}else{try{var msg=JSON.parse(response);feed=msg.fight_result.feed_js}catch(err){return}}var mwfeed=eval("("+/var feed = (.+?); MW\.Feed/.exec(feed)[1]+")");if(autopostOn){mwfeed.actionLinks[0].name=mwfeed.actionLinks[0].name.replace("Get a boost","Get a Boost")}if(fbfeedloc!=""){mwfeed.targetId=fbfeedloc}MW.Feed(mwfeed)}function DoAutoHeal(){var url="html_server.php?xw_controller=hospital&xw_action=view";var maxHealth=parseInt(document.getElementById("user_max_health").innerHTML);CurHealth=parseInt(document.getElementById("user_health").innerHTML);var client=new XMLHttpRequest();client.open("POST",url,true);client.setRequestHeader("X-Requested-With","XMLHttpRequest");client.setRequestHeader("Accept","*/*");client.setRequestHeader("Content-Type","application/x-www-form-urlencoded");client.send("ajax=1&liteload=1&sf_xw_user_id="+xw_user+"&sf_xw_sig="+local_xw_sig+"&skip_req_frame=1");client.onreadystatechange=function(){if(this.readyState==4){response=client.responseText;CurHealth=document.getElementById("user_health").innerHTML=(/user_fields\['user_health'\] = parseInt\("([\d]+)/.exec(response))[1]}};if(parseInt(CurHealth)<healat){HealNY()}}function Bank(){city=/mw_city(\d)/.exec(document.getElementById("mw_city_wrapper").className)[1];if(city==5){vegascash=/V\$([\d,]+)/.exec(document.getElementById("user_cash_vegas").innerHTML)[1];vegascash=parseInt(vegascash.replace(/\,/g,""));url="html_server.php?xw_controller=propertyV2&xw_action=doaction&xw_city=5&doaction=ActionBankDeposit&amount="+vegascash+"&building_type=6&city=5&xw_client_id=8"}else{url="html_server.php?xw_controller=bank&xw_action=deposit_all&xw_city="+city+"&amount=1000000000"}var client=new XMLHttpRequest();client.open("POST",url,true);client.setRequestHeader("X-Requested-With","XMLHttpRequest");client.setRequestHeader("Accept","*/*");client.setRequestHeader("Content-Type","application/x-www-form-urlencoded");client.send("ajax=1&liteload=1&sf_xw_user_id="+xw_user+"&sf_xw_sig="+local_xw_sig+"&skip_req_frame=1");client.onreadystatechange=function(){if(this.readyState==4){response=client.responseText;if((/user_cash_nyc":"([$\d,]+)"/.test(response))){document.getElementById("user_cash_nyc").innerHTML=(/user_cash_nyc":"([$\d,]+)"/.exec(response))[1];document.getElementById("user_cash_bangkok").innerHTML=(/user_cash_bangkok":"([B$\d,]+)"/.exec(response))[1];document.getElementById("user_cash_italy").innerHTML=(/user_cash_italy":"([L$\d,]+)"/.exec(response))[1];document.getElementById("user_cash_vegas").innerHTML=(/user_cash_vegas":"([V$\d,]+)"/.exec(response))[1];document.getElementById("user_cash_brazil").innerHTML=(/user_cash_brazil":"([BRL$\d,]+)"/.exec(response))[1];document.getElementById("user_cash_chicago").innerHTML="¢"+(/user_cash_chicago":"\\u00a2([\d,]+)"/.exec(response))[1]}}}}function HealNY(){url="html_server.php?xw_controller=hospital&xw_action=heal&xcity=1";send="ajax=1&liteload=1&sf_xw_user_id="+xw_user+"&sf_xw_sig="+local_xw_sig;var client=new XMLHttpRequest();client.open("POST",url,true);client.setRequestHeader("X-Requested-With","XMLHttpRequest");client.setRequestHeader("Content-Type","application/x-www-form-urlencoded");client.send(send);client.onreadystatechange=function(){if(this.readyState==4){response=client.responseText;CurHealth=parseInt((/user_health":([\d]+),/.exec(response))[1]);document.getElementById("user_health").innerHTML=CurHealth}}}function Settings(){var version=302;var updatebutton="";var postsetting=fbfeedloc;if(!is_chrome){updatebutton='<a target="_top" href="http://unlockedmw.com/fileserv/index.php?act=up&ver='+version+'">Get Latest Release</a>'}popupTitle="UnlockedMW 3.0.2";content='<br>Post ices to <input value="'+postsetting+'" type="text" style="resize:none;width:90px;" id="postformid"><br><br><input type="checkbox" id="autopost" name="autopost" value="Checked"> Autopost Ices<br><br><input type="checkbox" id="followstolen" name="followstolen" value="Checked"> Attack Ice Stealers<br><br><input type="checkbox" id="burst" name="burst" value="Checked"> Burst Attacks<br><br><input type="checkbox" id="pausecheck" name="pausecheck" value="Checked">Pause at XP remaining <input value="'+stopat+'" type="integer" style= "resize:none;width:50px;" id="postformid3"><br><br>Heal Threshold <input value="'+healat+'" type="integer" style= "resize:none;width:50px;" id="postformid2"><br><br>Robbing Refresh Rate <input value="'+(rref/1000)+'" type="integer" style= "resize:none;width:35px;" id="postformid5"><br><br><a id="SaveSettings" class="sexy_button_new black"><span><span>Save</span></span></a><br><br>'+updatebutton+"</div>";height="480";myPop(popupTitle,content,height);document.getElementById("SaveSettings").onclick=saveSettings;if(icesteal){document.getElementById("followstolen").checked=true}if(burstOn){document.getElementById("burst").checked=true}if(pauseOn){document.getElementById("pausecheck").checked=true}if(autopostOn){document.getElementById("autopost").checked=true}}function myPop(popupTitle,content,height){var pop='<div id="myPopup" class="pop_box " style="display: block; top:25px;left: 200px; width:350px;height:'+height+'px;z-index:999;"><a id="myPopupClose" href="#" onclick="$(\'#myPopup\').hide();$(\'#myPopup\').fadeOut(200);$(\'#content_row\').height(\'auto\');$(\'#myPopup .trigger_on_hide\').trigger(\'MW.hide\');return false;" class="pop_close"></a><div style="z-index:99999" class="mini_EP_info_pop"><div class="mini_EP_body"><img src="http://mwfb.static.zgncdn.com/mwfb/graphics/empire/container_social.png" style="position:absolute;top:-83px;left:-152px;" height="60" width="352"><center><a href="http://unlockedmw.com" target="_blank"><img style="position:relative;left:-160px;top:-78px" src="http://cache.unlockedmw.com/images/unlocked.png"></a><br><div style="position:relative;top:-73px;left:-158px;width:340px;height:25px" class="empire_module_title"><span style="position:relative;top:-5px;left:-10px;">'+popupTitle+'</span></div><br><br><br><span style="position:relative;top:-138px;left:-160px;">'+content+"</span></div></div></div>";document.getElementById("popup_fodder").innerHTML=pop}function saveSettings(){setTimeout(myPopupClose,10);rref=parseInt(document.getElementById("postformid5").value)*1000;fbfeedloc=document.getElementById("postformid").value;if(document.getElementById("autopost").checked==true){autopostOn=true}else{autopostOn=false}healat=parseInt(document.getElementById("postformid2").value);stopat=parseInt(document.getElementById("postformid3").value);if(document.getElementById("followstolen").checked==true){icesteal=true}else{icesteal=false}if(document.getElementById("burst").checked==true){burstOn=true}else{burstOn=false}if(document.getElementById("pausecheck").checked==true){pauseOn=true}else{pauseOn=false}writeCookie()}function getRadioValue(radioObject){var value=null;var i;for(i=0;i<radioObject.length;i++){if(radioObject[i].checked){value=radioObject[i].value;break}}return value}function myPopupClose(){$("#myPopup").hide();$("#myPopup").fadeOut(750);$("#content_row").height("auto");$("#myPopup.trigger_on_hide").trigger("MW.hide");return}function startup(){readCookieSettings();Toolbar();if(stamOn=="true"||stamOn==true){stamOn=true;fightInterval=setInterval(Fighter,666)}else{if(stamOn==2){fightInterval=setInterval(Fighter,666)}else{stamOn=false}}if(healOn=="true"||healOn==true){healOn=true;healInterval=setInterval(DoAutoHeal,2000)}else{healOn=false}if(postOn=="true"||postOn==true){postOn=true}else{postOn=false}if(jobsOn=="true"||jobsOn==true){jobsOn=true;energyInterval=setInterval(Jobber,1000)}else{jobsOn=false}if(icesteal=="true"||icesteal==true){icesteal=true}else{icesteal=false}if(pauseOn=="true"||pauseOn==true){pauseOn=true}else{pauseOn=false}if(burstOn=="true"||burstOn==true){burstOn=true}else{burstOn=false}if(autopostOn=="true"||autopostOn==true){autopostOn=true}else{autopostOn=false}setInterval(Toolbar,10000);setInterval(UpdateXWSig,10000)}if(document.getElementById("unlock_toolbar")){return}else{startup()}function isFightPopOpen(){if(document.getElementById("fv2_widget_wrapper")){if(document.getElementById("fv2_widget_wrapper").style.display!="none"){return true}else{return false}}else{return false}}function closeFightPop(){ajax=true;closing=false;CloseJS()}function CloseDoopidPopup(){if($(".pop_bg").length>0){$(".pop_bg").each(function(){var id=this.id;MW.Popup.hide(id.substr(id.lastIndexOf("_")+1))})}}function LetThereBeRobberies(){var DoesIHaveStam=parseInt(document.getElementById("user_stamina").innerHTML);if(!evilOn){return}if(DoesIHaveStam<50){var anystam=parseInt(document.getElementById("user_stamina").innerHTML);var anyexp=parseInt(document.getElementById("exp_to_next_level").innerHTML);var XPratio=(currexp-anyexp)/(currstam-anystam);alert("Sorry you need more stamina to clear the board!\n\nResults : \n\n Start Stamina : "+currstam+" \n\n End Stamina : "+anystam+"\n\n Stamina Spent : "+(currstam-anystam)+"\n\n Experience Gained : "+(currexp-anyexp)+"\n\n Exp Ratio achieved : "+XPratio+" \n\n***Please note if the stats above look wack its because you leveled halfwaythru and threw the hardcoded calculators outta wack***")}else{do_ajax("","remote/html_server.php?xw_controller=robbing&xw_action=rob&xw_city="+evilCity+"&slot=0",1,0,RobbingController.preRob(0),RobbingController.rob);do_ajax("","remote/html_server.php?xw_controller=robbing&xw_action=rob&xw_city="+evilCity+"&slot=1",1,0,RobbingController.preRob(1),RobbingController.rob);do_ajax("","remote/html_server.php?xw_controller=robbing&xw_action=rob&xw_city="+evilCity+"&slot=2",1,0,RobbingController.preRob(2),RobbingController.rob);do_ajax("","remote/html_server.php?xw_controller=robbing&xw_action=rob&xw_city="+evilCity+"&slot=3",1,0,RobbingController.preRob(3),RobbingController.rob);do_ajax("","remote/html_server.php?xw_controller=robbing&xw_action=rob&xw_city="+evilCity+"&slot=4",1,0,RobbingController.preRob(4),RobbingController.rob);do_ajax("","remote/html_server.php?xw_controller=robbing&xw_action=rob&xw_city="+evilCity+"&slot=5",1,0,RobbingController.preRob(5),RobbingController.rob);do_ajax("","remote/html_server.php?xw_controller=robbing&xw_action=rob&xw_city="+evilCity+"&slot=6",1,0,RobbingController.preRob(6),RobbingController.rob);do_ajax("","remote/html_server.php?xw_controller=robbing&xw_action=rob&xw_city="+evilCity+"&slot=7",1,0,RobbingController.preRob(7),RobbingController.rob);do_ajax("","remote/html_server.php?xw_controller=robbing&xw_action=rob&xw_city="+evilCity+"&slot=8",1,0,RobbingController.preRob(8),RobbingController.rob);setTimeout(RefreshMe,(rref))}}function RefreshMe(){try{var IsEveryoneDeadYet=document.evaluate("//a[@id=\"rob_refresh_cost\"]//span//span[contains(string(),'Refresh: 0')]",document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);if(IsEveryoneDeadYet.snapshotLength>=1){do_ajax("","remote/html_server.php?xw_controller=robbing&xw_action=refresh");setTimeout(KickMeBackToThirdGrade,3000)}else{LetThereBeRobberies()}}catch(err){}}function KickMeBackToThirdGrade(){CloseDoopidPopup();LetThereBeRobberies()}function resetfightaction(){fightActionRunning=false;closeFightPop()}$("body").ajaxComplete(function(e,xhr,settings){var response=xhr.responseText;if(ajax){ajax=false;return}if(fightActionRunning){fightActionRunning=false;clearTimeout(fightwatchdogtimout)}if(document.getElementById("attacker_fight_status")){parseNewFightResults(response)}if(document.evaluate("//a[@class='sexy_button_new short red sexy_attack_new'][contains(string(),'Attack Again')]",document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength>0){hitlist=true}else{if(hitlist){hitlist=false}}if(document.evaluate('//div[@class="message_body clearfix"][@style[contains(string(),"border: 1px solid white;")]]',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength>0){NYjobon=true}else{if(NYjobon){NYjobon=false}}if((/Do This Job Again/.test(document.getElementById("inner_page").innerHTML))){BKjobon=true}else{if(BKjobon){BKjobon=false}}if(document.evaluate('//div[@class="job_info"][@style[contains(string(),"255, 255, 255")]]',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength>0&&document.getElementsByClassName("buy_prompt").length==0){ILVjobon=true}else{if(ILVjobon){ILVjobon=false}}if(/jobResult":{"city":7/.test(response)){Bjobid=/jobResult":{"city":7,"id":(\d+),/.exec(response)[1];Bjobon=true}else{if(Bjobon){Bjobon=false}}if(/jobResult":{"city":8/.test(response)){Bjobid=/jobResult":{"city":8,"id":(\d+),/.exec(response)[1];Bjobon=true}else{if(Bjobon){Bjobon=false}}})}; injectScript(myscript);
Mozilla add on,User script,Grease Monkey Script, greasemonkey userscripts, updater userscripts mafia wars userscripts mafia wars autoplayer userscripts mafia wars wall userscripts scripts userscripts travian greasemonkey greasemonkey download greasemonkey facebook greasemonkey tutorial greasemonkey youtube greasemonkey travian greasemonkey chrome greasemonkey mafia wars greasemonkey mafia wars autoplayer
Thursday, September 22, 2011
UnlockedMW PRO
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment