This page contains the full source files instead of the squished and obfuscated ones that are on the bookmarklet buttons. To turn this code into bookmarklets I use the YUI Compressor and then further encode it by replacing single quotes with %27.
Since this code is based on code licensed under the GNU GPL, it is licensed under a similar Creative Commons License.
These scripts are relatively short (but getting more complex all the time...) and as such, the comments are pretty much non-existent. If you have trouble figuring out what I meant for the code to do, drop me a line.
Version: 1.03 Last updated: 2009-08-09
AddAllVersion: 1.13 Last updated: 2009-09-10
ToDo: Add damage dealt and received.
ToDo: Delete xmlHTTP['onreadystatechange'] when the Close button is hit.
ToDo: Eradicate getElementsByClassName (for IE compatibility).
ToDo: Add configuration for heal threshold.
ToDo: Add configuration for healing at end of spree.
ToDo: Add configuration for wait between attacks.
ToDo: Add configuration for pause time between health checks when healing too soon.
ToDo: Add configuration for traveling to NY to heal.
ToDo: Add option for pausing after healing before resuming attack.
Version: 1.07 Last updated: 2009-09-10
ToDo: Add damage dealt and received.
ToDo: Delete xmlHTTP['onreadystatechange'] when the Close button is hit.
ToDo: Eradicate getElementsByClassName (for IE compatibility).
ToDo: Add configuration for heal threshold.
Version: 1.13 Last updated: 2009-09-07
Still haven't squashed the bug where it says it's helping the same person over and over again and you don't get the repeated xp/$.
There also seems to be a memory leak which I haven't been able to track down.
I wonder if I need to change it to only use IDs and ignore names if it finds them (on the gifting page). Names seem to cause problems with the counting or something because the lists seem to end prematurely.
Version: 1.11 Last updated: 2009-07-25
DoJobsFSVersion: 1.03 Last updated: 2009-08-10
ToDo: Delete xmlHTTP['onreadystatechange'] when the Close button is hit.
Version: 1.05 Last updated: 2009-07-09
Can we do without document.evaluate for doing xpath searching? (for IE compatibility)
Version: 1.07 Last updated: 2009-07-08
ToDo: Delete xmlHTTP['onreadystatechange'] when the Close button is hit.
Version: 1.01 Last updated: 2009-09-05
ToDo: Eradicate getElementsByClassName (for IE compatibility)
Version: 1.04 Last updated: 2009-07-11
FreeGift no longer works but is still listed here for accademic reasons.
ToDo: Use the Mafia Wars "friends using this application" instead of the Gifting page
ToDo: When we use the "friends using this application", search without using document.evaluate. (for IE compatibility)
ToDo: Delete xmlHTTP['onreadystatechange'] when the Close button is hit.
If you make any changes that you would like me to include here, let me know. If you make your own versions of these tools or make something new based on my tools, let me know and I'll add a link to you.
These bookmarklets are licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.