Make sure you are using the latest version of the web browser, either Mozilla Firefox or Google Chrome.Install Greasemonkey Mozilla Firefox Add-on.Install Tampermonkey Google Chrome Extension for Google Chrome.Either try using other similar Userscript or Greasemonkey script.Re-installing the web browser should help.
// ==UserScript==// @name Facebook Mafia Wars Autoplayer// @namespace mafiawars// @description autoplayer for the mafia wars game I modified code from Blannies Vampire Wars script http://userscripts.org/scripts/show/36917// @include http://apps.facebook.com/inthemafia/*// @include http://apps.new.facebook.com/inthemafia/*// @version 0.9.4.1// @contributor StevenD// @contributor CharlesD// @contributor Eric Ortego// @contributor Jeremy// @contributor Liquidor// @contributor AK17710N// @contributor Fragger// @contributor <x51>// @contributor CyB// @contributor int1// @contributor Janos112// @contributor int2str// ==/UserScript== var SCRIPT = { URL: \'http://userscripts.org/scripts/source/43573.user.js\', version: '0.9.4.1', name: 'inthemafia', appID: 'app10979261223', presentationurl: \'http://userscripts.org/scripts/show/43573\', controller: '/remote/html_server.php?&xw_controller=', action: '&xw_action=', city: '&xw_city=', opponent: '&opponent_id=', user: '&user_id='}; // Register debugOnOff with GreasemonkeyGM_registerMenuCommand( 'FB Mafia Wars Autoplayer - Turn Debug Log '+(GM_getValue('enableDebug') 0) { tempArray.sort( function (a,b) { return a-b}); var dataLen = tempArray.length; var dataMin = tempArray[0]; var dataMax = tempArray[dataLen - 1]; } else { workingArray.sort( function (a,b) { return a-b}); var dataLen = workingArray.length; var dataMin = workingArray[0]; var dataMax = workingArray[dataLen - 1]; } var dataAvg = runningSum/dataLen; dataAvg = Math.round(dataAvg*Math.pow(10,2))/Math.pow(10,2);// alert("Sum: " + runningSum + " len: " + dataLen + " avg: " + dataAvg); return[dataMin, dataMax, dataAvg, runningSum, dataLen];} function getStatDiffs(workingArray) { diffArray = []; for (i=1; i < workingArray.length; i++) { if (workingArray[i] - workingArray[i-1] < 0) { diffArray.push(0) } else { diffArray.push(workingArray[i] - workingArray[i-1]); } } diffArray.unshift(0); return diffArray;}