Facebook MobWars Helper

By Piotr P. Karwasz Last update Dec 23, 2008 — Installed 85,346 times. Daily Installs: 8, 11, 20, 12, 12, 22, 30, 5, 26, 21, 32, 34, 14, 9, 11, 12, 23, 27, 24, 14, 14, 19, 18, 12, 25, 16, 21, 19, 19, 4, 49

Quick fix for the recent str.match error

Subscribe to Quick fix for the recent str.match error 4 posts, 3 voices

J. M. Coward User

The Mobwars header/nav changed again, and the profile link is now the first link at the top. This means that you'll like be getting an error regarding str.match(/\d+/). To fix this quickly, in the Boss.prototype.updateData function, find the str.match code, which should be about 8 or 9 lines in. You want to change the zero in the preceding line to a one (so it looks like: var str = header.getElementsByTagName('a')[1].innerHTML;).

There's likely a better way of getting your mob size that isn't quite so dependent on the position of links, but this is fast and easy, at least until it breaks again.

 
Shovelheadhd User

It fixed it for me!! But it doesn't seem to want to give me my attack & def strength for some reason. I wonder if I screwed something up.

 
Shovelheadhd User

I fixed it, i had to reset the script and let it check all my stats again. Thanks for the fix!!

 
chrisbimmermd Scriptwright

I FIXED THE SCRIPT for full download. Some people might not have the ability or capacity to go in and edit the script. Others may find it tedious to try and update it, or risk screwing up the script. My edit is TESTED AND FULL WORKING. I called it 1.1.3

Details:

ERROR 1:

Error in module 'base' on line 602: str.match(/\d+/) is null

FIX:

Download version 1.1.3

http://userscripts.org/users/84113

TESTED AND WORKING

ERROR 2:

After installing, you find that you cannot update preferences, rendering the script useless.

FIX:

This Script is TESTED AND WORKS only with the following:

Firefox 3.0.7

Greasemonkey Version 0.8.20090123.1

______________________________________________

All credit for the original script goes to Piotr P. Karwasz:

http://userscripts.org/users/49912

All credit for original fix goes to J.M. Coward:

http://userscripts.org/users/81266

Original source located at

http://userscripts.org/scripts/show/29870

This script WORKS!!! with the following installed, as of 03/29/2009

Firefox 3.0.7

Firefox was just updated to Firefox 3.0.8, so you cannot download it from their site. I found it here:

http://www.filehippo.com/download_firefox/5337/ (along with all the other versions)

Greasemonkey Version 0.8.20090123.1 — February 18, 2009 — 144 KB

You can find this version of Greasemonkey here:

https://addons.mozilla.org/en-US/firefox/addons...

Greasemonkey past and previous versions found here:

https://addons.mozilla.org/en-US/firefox/addons...

Description of the application:

Helps and improves the playing experience of the Facebook application MobWars with automatic functions.

___________________________

Licensing

This script is released under GNU General Public License and is distributed free of charge. On the other hand, if you appreciate the time I spent making these script revisions, please feel free to make a donation by clicking the button below:

PayPal - The safer, easier way to pay online!

Thank you!

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