Facebook MobWars script

By Leetuser Last update Sep 9, 2008 — Installed 15,452 times.

A fix if you don't get a refreshed page

in
Subscribe to A fix if you don't get a refreshed page 6 posts, 5 voices



ManySheeps User

I found the hitlist was no longer refreshing. I made this change to the last line which seems to work

if (reload) document.location.href = 'http://apps.facebook.com/mobwars/hitlist/index.php';

 
FlyfisherMike User

Here's an update, sorta. Replace the whole script with this and it will wait three seconds if there is no one to kill. The old one just refreshed like crazy and got stuck quickly.

// ==UserScript==
// @name Facebook MobWars script
// @namespace http://sportexotics.net
// @description Hitlist Bot
// @include http://apps.facebook.com/mobwars/hitlist/
// @include http://apps.facebook.com/mobwars/hitlist/index.php
// @include http://apps.new.facebook.com/mobwars/hitlist/
// @include http://apps.new.facebook.com/mobwars/hitlist/in...
// ==/UserScript==
function redirect(){location.href='./'};var reload=true;Array.forEach(document.getElementsByTagName("INPUT"),function(input){if(input.value=="attack"){input.click();reload=false;}});if(reload)setTimeout(redirect, 3000);

^^ike

 
FlyfisherMike User

Replace with this. Now will randomly refresh between 1-4 seconds if no one to attack.

var pauseTime=Math.random()*4;

function redirect(){location.href='./'};var reload=true;Array.forEach(document.getElementsByTagName("INPUT"),function(input){if(input.value=="attack"){input.click();reload=false;}});if(reload)setTimeout('document.location.reload(true)',pauseTime*1000);

 
Bob Uno User

Hey Flyfisherman...could you please post another script?? i don't know how to change the script...i like the idea of it pausing and the randomness of 1-4 seconds between the refresh. But, it seems these scripts don't have multi attack (only attack a user once on the hitlist...)??

 
zajaco User

I'm new... What do you use to execute these scripts??

 
ob1korobi User

Sorry to necro but is there a way to make the script attack from the home screen instead of using the hitlist screen itself? I have heard people mention this ability but nowhere I can find how to set it up. Much appreciated.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel