Josh Miller's Bookmarklets
(for Mafia Wars, FarmVille, FarmTown, Mobsters, Vampire Wars, Castle Age, etc on Facebook)
Looking for a quick way to automatically confirm all new friend requests and accept all your Facebook game/application gifts? Check out JGrabAllGifts!
Have my scripts saved you time? Want to help me out? Tell all of your friends about Miller Marklets! Join my fan page! Come back and visit my page here daily. Donations are also greatly appreciated! Click here to to help support and encourage future script development. Thank you!
*** Want more mafia? Click here to view and add my recent supporters! - Thank You!
Bookmarklets are easy to use! They are treated just like website bookmarks (or "favorites") but when you click on them, instead
of going to a new webpage, little programs (scripts) written in a web language called Javascript are run instead.
These scripts automate or do things to the webpage you are currently viewing to make it easier to work with.
To "install" a bookmarklet, just drag the bookmarklet link to your bookmarks toolbar in your browser window.
This toolbar is usually located just below the address bar. If you are using Google Chrome, it is hidden by
default and you can turn it on and off by pressing
Ctrl-B on your keyboard. Note that most bookmarklets
use code that is not supported by Internet Explorer. It is recommended that you use either
Google Chrome or
Firefox.
NOTE that most bookmarklets only work if the webpage or site you are viewing is in
English. This is because most
scripts search the page you are viewing for certain (English) keywords.
Yes, I know my site is plain, boring, ugly, etc. I'm a programmer, not a page designer. :) A page re-design is coming, just takes "free time" (whatever that is)...
Summary of bookmarklets currently available on my site:
- JGrabAllGifts -- Run from your Facebook 'requests' page (where you receive friend requets, gift requests, group invites, etc), this bookmarklet will accept all gifts (from all apps, not just mafia wars), ignore page and group invites, etc.
NEW! Shorter YouTube video that briefly demonstrates JGrabAllGifts and it's ability to remove friend requests if you have too many: JGrabAllGifts video #2 <<PLEASE comment and RATE my vid!
Longer video on Facebook where I explain the script options in more detail: JGrabAllGifts Video #1
The Mafia Video Guy also made a video on how to use JGrabAllGifts. It is based on an older version but still relevant.
- JAddAll3 -- UPDATED 2009-12-14: Run from your 'recruit mafia' page in Mafia Wars on Facebook, this script first queries Facebook for your list of friends. Then, it scans the list and removes people who are already in your mafia. Finally, the script then attempts to add the rest of your friends to your mafia without using invites.
-- JAddAll3 is still in BETA and available only from my Beta page. It is also only working (reliably) in Google Chrome at the moment. Some people have reported success with FireFox but others have said there are issues. Runs great in Chrome, though! I will hopefully have it completely fixed up and debugged soon!
- JAddToMW -- When used on a Facebook profile page (of someone you are already friends with), it will add the person to your mafia.
- XUnframeMW -- This bookmarklet will "unframe" your Mafia Wars play window, removing Facebook's top menu bar and the ads along the side. This is needed to make most Mafia Wars bookmarklets work. The bookmarklets on my site have this feature built in where needed, though.
-=- Older scripts -=-
- ConfirmAll -- Run from your Facebook requests page, confirms all new friend requests and optionally adds them to a friends list. (This has been merged into JGrabAllGifts - click the 'options' button and you'll see it. This script still available for those who can't let go, though...)
-- JMafiaMikes has been broken since Zynga changed things the first week of December. Because of other changes made by Facebook and Zynga recently, Mafia Mikes aren't as useful as they used to be so I have decided to abandon this script.
I sometimes have a few scripts in beta (testing) on my beta page. Check them out...
Don't see an ad above? PLEASE add my site to your white-list (exclusions) in your flash / ad-blockers. Thanks!
JGrabAllGifts is a new bookmarklet that will accept all Mafia Wars (and other apps) gifts for you from Facebook's
"requests" page. USE AT YOUR OWN RISK. I will not be held accountable for lost gifts, keys, socks or
mother-in-laws due to the use of this bookmarklet. The bookmarklet WORKS if you fully read the information on this
page and use the script correctly. Please set the "max gifts at a time" to ONE the first time you run the
script to make sure it works for you. This script will pop-up an external worker window or tab (depending on your
browser settings). If this pop-up window doesn't load, you won't get your gift! If you use Firefox,
make sure your pop-up blocker is either turned off or exclude www.facebook.com in the pop-up blocker options. Also,
if you have a slow internet connection (or if Facebook/Zynga is running slowly), you need to set the "seconds
between" a little higher so that the worker windows have a chance to get to the accept page before they reload
and start trying to accept the next gift. You should never set this time below 5 seconds or the pop-up windows
won't have enough time to load completely before being reused and you probably won't get your gifts. If you want,
you can open and watch the worker windows while the script is running to see if they're fully loading the gift
accept page. No, you don't have to click "accept" in them or anything. When your browser loads the accept page,
that is enough to give you the gift.
Don't click this link here on my page. That's not how it works. DRAG it up to your bookmarks bar, THEN click it when you are on your requests page. Watch the video link above for more info.
JGrabAllGifts
-- **** IF YOU SKIPPED THE PARAGRAPH ABOVE, READ IT BEFORE USING THIS BOOKMARKLET! ****
New version released 2010-02-05! The link above is the main JGaG bookmarklet. If you use this marklet
link, you will be automatically updated to the newest version every time I feel it is stable enough
to release. You can see version history and get old versions below.
This script will open up to 5 external windows to accept gifts. After making sure the script works for you
and your browser set-up, you can (and should) set the "max gifts to accept" option to a number much higher
than 5 - the script will just reuse these 5 pop-up windows as it runs. When the script finishes, you will
see a link show up that will close all of the pop-ups for you. If you use Google Chrome, you can let it
"block" the pop-up windows because Chrome actually loads the webpages that it blocks, it just doesn't
show them to you.
NOTE for Chrome users: if you close the pop-up notification in Chrome without
actually clicking on each window first to "see" it, Chrome will assume you don't want the pop-ups to
load at all and any future pop-ups produced from that Chrome session / tab won't actually load the pop-up
webpages and you won't get your gifts. I recommend just leaving the notifications alone in Chrome. You can
click on the "5 pop-ups blocked" in the bottom right corner and view the pages if you want, just don't click
the X on that pop-up notification!
NOTICE! -- Again, if you use Firefox, be sure to only accept ONE gift as a trial first to make
sure the pop-up window opens up correctly. You must have your pop-up blocker disabled in Firefox (or
allow www.facebook.com) for this script to work.
Google Chrome
handles the pop-ups MUCH BETTER. If these gift pop-up windows don't load, you don't get your gifts so
test with ONE gift at a time first to make sure it works! After you verify that a pop-up window or tab
came up and you got your gift, feel free to change the "max gifts at a time" to something higher (25,50,100,etc).
Another note: If your gifts have been sitting on your Facebook requests page for more than a couple days
or so, they may have expired. They don't last forever and Facebook only shows you your newest 100 gifts
/ invite requests / etc when you go to your requests page. If your Facebook requests page says you have 100
gifts pending, you accept a bunch and reload the page and it still says you have 100 pending, that means
you have a lot of old gift requests that haven't been accepted and some may have expired. You may not get
all of your gifts if you have a lot of requests. This happens whether you are using my script or not.
New version - v1.13 (2010-04-22) - Facebook changed their requests page around a bit. Updated script so it could find the friend request accept buttons again
OLD versions: Just in case I happen to mess something up in a new version of the JGaG script and it stops working for you, you can try older versions.
(Note that the links to pre-Facebook requests page rewrite have been removed as they no longer work.)
JGrabAllGifts - v1.13 (Current Version)
JGAG110 - v1.12 (2010-03) Modified script's "Add to List" feature to work in both English (US) and English (UK)
JGAG110 - v1.11 (2010-02-24) Made option to accept events, added 'Get' to list of Accept buttons
JGAG110 - v1.10 (2010-02-05) Enhanced "gift name" grabbing to catch more actual gift names instead of just "Accepting 'gift'...". Sped up Add to List option of accepting friends. Added more "accept" button logic to work with more games.
JGAG109 - v1.09 (2010-01-23) Changed ad area loading to speed up script and make it smaller. Added confirmation to the "ignore friend requests" option.
JGAG108 - v1.08 (2010-01-20) Added friend request confirmation option. Migrated JConfirmAll functionality into this script with a few tweaks. You can add to multiple friend lists (using regex). The friend list that you want to add to needs to exist before you load the page. If you want to make a new one, confirm one friend manually, creating the new list at the same time and then reload the page so that the new friend list name will be in all of the "Add to List" drop down menus on the page. To add new friends that you confirm to multiple lists, separate them with the bar | character. This is the vertical line character that you get when you hold down shift and press the backslash key on your keyboard. (The slash near the backspace key on your keyboard, not the forward slash that is on the same key as the question mark.) So, to add all friends to both the "Mafia Wars" and "2010-01" list, you would type: Mafia Wars|2010-01 in the "Add to list:" box in the options area of my script. Just give it a try - it's easy. Feel free to message me if you have any questions.
JGAG107 - v1.07 (2009-12-31) Rewrote code that moves the script from gift to gift. Eliminated wait time for skipped/unrecognized gifts/gift button names.
JGAG106 - v1.06 (2009-12-20) Many "fixes" to make script more compatible with lesser-used browsers (Opera, Flock, Safari, etc).
Modifications to work better with more apps, capture more gift names.
Fixed problem where script wouldn't start if the application list started with a blank line.
JGAG105 - v1.05 (2009-12-01) (v1.04 was private test release). Added option to change maximum number of pop-up windows used. If you don't know what that implies, leave this option alone. Also added a link that can be clicked after script finishes to close all pop-up windows.
JGAG103 - v1.03 (2009-11-28) Removed BETA tag. Added profile links that open in a new window so you can see who gifted you and return the favor afterwards if you want to.
JGAG098 - v0.98 (2009-11-24) Fixed a few other little things, added "support my friends" ad area to support my supporters.
JGAG097 - v0.97 (2009-11-23) Fixed 'ignore mafia invites' option, few other little cosmetic things.
JGAG096 - v0.96 (2009-11-21) Rewrote core gift accepting functions as Facebook changed their requests page code structure. Ignore mafia invites option disabled until I have time to fix that.
JGAG094 - v0.94 (2009-10-26) Added 'Stop' button. Fixed ignore mafia invites option because Zynga started randomizing the 'Accept' button text.
JGAG093 - v0.93 (2009-09-30) Added ignore mafia invites option. Added Gift URL link to each "Loading (in new window/tab)..." line for backup in case pop-up windows are blocked. Added better pop-up blockage testing. Fixed scan for apps so it doesn't add duplicate app_ids if found more than once on requests page. Added some color to the script so it's more obvious where the script runs for people who have never seen it before.
JGAG092 - v0.92 (2009-09-24) Option to ignore buttons containing certain text (save Inside Tips for later, etc). Cleaned up button names. Minor bugfixes.
JGAG091 - v0.91 (2009-09-24) Event ignoring now also an option. Minor bugfixes.
JGAG090 - v0.90 (2009-09-22) Options area added: page/group ignoring, option to switch worker windows back to old v0.81 style (they show up as tabs in Firefox).
JGAG082 - v0.82 (2009-09-18) Multi-apps are working now.
JGAG081 - v0.81 (2009-09-16) Had a furlough day off work and had been wanting a script to accept my gifts for me so I made JGrabAllGifts. First stable version released to Facebook friends.
JAddAll2
-- Version 2.03 (works for Castle Age, Zynga Pirates and Vampires games only right now.)
JAddAll3BETA -- For Mafia Wars ONLY. Get this link and read more notes about this version on my BETA page.
UPDATE: 2010-01-09 Zynga changed things in early December and the JAddAll script stopped working for Mafia Wars.
I finally have it working again but the script is much different than what it used to be so I've had to split it (for now). One
version for Mafia Wars (and possibly future iframe'd games) and one version for non-iframe games (Pirates, Vampires, Castle Age, etc).
Drag this link (the box above) to your bookmarks bar in your browser. After starting Mafia Wars, click the bookmarklet link.
If you haven't already broken out of Zynga's iframe, the script will tell you that you need to do so and offer to do it for you.
You don't need to know what an iframe is, just press OK and the script will take care of it for you. You will then see the Mafia
Wars application website again but without all of the Facebook stuff at the top and the ads on the side. You then need to go to
the "My Mafia" recruit page and run the script (click the bookmarklet) again. The script will query Facebook for your friends
list and figure out who needs to be added. Press Start to set the script on it's merry way. Note: If you are using Firefox,
you may need to set your pop-up blocker to allow pop-ups from apps.facebook.com.
-- 2010-01-09 version 2.03 - Added Castle Age.
-- 2009-11-22 version 2.02 - working on adding more games to the script. Now works with Zynga
Pirates and Vampires games. The URL I have for the Pirates game just auto-sends an invite but it seems to get you around the
daily invite limit. The only problem is that it will send an invite to all of your friends, regardless of whether they play
or not. Just tell your peeps to ignore the Pirates game requests if they don't want to play I guess.
Vern Hart originally wrote this great bookmarklet but he stopped updating his scripts quite a while ago so I
decided to modify the script and get it working again. It has been modified MANY times over the last few months.
I've added support for a few other games (more to come) and have modified it to work with all of Zynga's changes.
This bookmarklet should be run from your 'recruit mafia' page in Mafia Wars. The script queries Facebook's servers to get
your list of Facebook friends and then removes people who are already in your mafia. It then cycles through the remaining
friend id numbers, attempting to add them one by one to your mafia without using invites.
A few notes about this alternate URL that the script is now using to add your FB friends to your mafia...
- It sometimes won't add Facebook friends who you have JUST added as friends within the last hour or so.
I think this is because Zynga's servers don't all sync up with your Facebook friends list at the same time.
- This new URL that is being used is not really meant for adding friends to your mafia. It brings up your
-war status- page but Zynga programmed into this URL a parameter that lets you add a friend to your mafia at
the same time. This means that the ability to use this URL to add friends to your mafia could go away at any time.
- Because the URL is being used for a purpose other than what it was designed for, it doesn't actually check
to see if the person you are trying to add even plays Mafia Wars and will report that they have been successfully
added to your mafia even if they don't play MW. That's just the way Zynga made this link work and there's nothing
we can do about it. So after you run the script, just refresh your mafia list, run the script again and refresh
again and you can pretty much bet that anyone left in the list on the recruit page is either someone you just
recently added as a friend or they don't actually play Mafia Wars.
- I have found a few people (mafia wars players) who do play the game who can NOT be added with this script. I don't
know why it is, they just can't be added in this fashion. If you come across someone that the script won't add
and you know they play, first wait an hour or two (or a day) and try again. This usually works but sometimes even
then they can't be added automatically. In these cases, just use Zynga's regular invite system to invite them into
your mafia. To find out if someone plays, click on the "game link" link that comes up while the script is running to
view their profile page. If the page says "profile not found", they don't play MW and you should click the red X next
to their name in the script to exclude them from future attempts.
ConfirmAll
UPDATE: -- You should use JGrabAllGifts to confirm all new friends as it now has an enhanced version of this script built right into it.
-- Script originally by Vern Hart but he abandoned all of his scripts last year. Facebook changed quite a few things since then and his script was not working any more so it has been fixed. Run from your Facebook requests page to confirm all new friend requests and optionally add them to a friends list to help keep your news feed organized.
JAddToMW -- (2010-02-08) Used on someone's Facebook profile page, it will attempt to add that person into your mafia. They must already be a friend in Facebook! The Mafia Wars screen will always say "Successfully added...". It doesn't really check for success. If you don't see them in your mafia or see your mafia count go up, wait a while and try again.
XUnframeMW -- Unframe Mafia Wars window (updated 2010-02-06). This is required for some scripts to run properly. JAddAll3 has this code built in but if you want a separate script to do this, here it is. You need to use this bookmarklet twice for the full effect. Once to remove the iframe (Facebook's ads, top bar, etc) and the second time makes the page viewable and restores the scrollbars so you can scroll down the page properly.
-->
Any questions? Contact me on Facebook -
Josh Miller

Facebook NOTE: You can send me messages in Facebook without adding me as a friend. Because I'm so near my limit, I will not accept any future friend requests if you don't have some kind of a note attached to the request.
Also: For those people who want to help me by "pimping" me out to their mafia or sending out links to my Facebook profile... I appreciate the thought but I actually would prefer you NOT do that. Feel free to give people a link to this webpage or a link to my fan page, though! If people find my profile link by reading my webpage and want to message me or add me because they want updates on me or my scripts, that's cool but I don't really need more Facebook friends who only want another notch in their mafia count. Thank you!
--Want to help me out?--
Donations are GREATLY appreciated and will go towards paying for my web hosting bill (or to buy me a cup
of coffee if my programming brain is dragging). If you want to send a small donation my way, feel free to use the
buttons below whenever you are feeling generous! If you want to help me out in non-financial ways:
- Join my FAN PAGE!!!
- Tell all of your Facebook friends about Miller Marklets! They may not be using JGrabAllGifts yet. Poor souls.
- Bookmark and visit my webpage daily or as often as you can.
- Send me gifts in whatever Facebook apps you play. It makes it tougher to troubleshoot my "grab all gifts" script when I have no
gifts to grab... :)
However you choose to help, Thank you!
*NEW* - For those of you who don't like Paypal - Google checkout is available but they don't allow donations so this is only for purchasing either one or two months of ad-rotation in JGrabAllGifts and on http://joshmiller.com/JSponsors.html:
Do you want more game neighbors or mafia members? Want to promote your website, fan page, Clan/Mafia TAG?
I can advertise you or your site. I have added a "support my friends" ad section to my JGrabAllGifts
script which is seen by thousands of people every day. As a way of saying thanks, when you donate $10 or
more, (if you want to be advertised), just send me a message and let me know what email address you used to donate and
I would be happy to add you to this new ad section of my script. I obviously can't guarantee how many new friends or
hits you will get but people tell me they have received hundreds of new friend requests from my script's users.
Thank you all for your support, however you give it!

Don't see an ad above? PLEASE add my site to your white-list (exclusions) in your flash / ad-blockers. Thanks!
Looking for a good webhost? JustHost is great (and reasonably priced).
Contact me for a coupon code!
Bookmarklets that help you while using Facebook Mafia Wars Farmville FarmTown Vampire Wars Castle Age Mobsters and other Facebook applications Mafia Wars Facebook
bookmarklets Josh Miller Cheats Hints How-To How To Help Bookmarklets Greasemonkey Grease Monkey Marklets Facebook Automation Facebook Automation Mafia Wars MafiaWars Mafia Wars Bookmarklets Mafia Wars Automation
Mafia Wars Auto Player Auto Player AutoPlayer MWAP FarmVille Farm Ville FarmTown Farm Town Mobsters Vampire Wars VampireWars Castle Age GrabAllGifts JGrabAllGifts
Grab All Gifts JGAG GAG Gift Grabber Free Gift Grabber Gift Accepter Accept All Gifts AddAll JAddAll Bookmarklets that help you while using Facebook Mafia Wars
Farmville FarmTown Vampire Wars Mafia Wars AutoPlayer Castle Age Mobsters and other Facebook applications Mafia Wars Facebook bookmarklets Josh Miller Bookmarklets Greasemonkey Grease Monkey Marklets
Facebook Automation Facebook Automation Mafia Wars MafiaWars Mafia Wars Automation Mafia Wars Auto Player Auto Player
AutoPlayer MWAP FarmVille Farm Ville FarmTown Farm Town Cheats Hints How-To How To Help
Mobsters Vampire Wars VampireWars Castle Age GrabAllGifts JGrabAllGifts Grab All Gifts JGAG GAG Gift Grabber Free Gift Grabber
Gift Accepter Accept All Gifts AddAll JAddAll Cheats Hints How-To How To Help
Bookmarklets that help you while using Facebook Mafia Wars Farmville FarmTown Vampire Wars Castle Age
Mobsters and other Facebook applications Mafia Wars Facebook bookmarklets Josh Miller Bookmarklets
Greasemonkey Grease Monkey Marklets Facebook Cheats Hints How-To How To Help Automation Mafia Wars AutoPlayer Facebook Automation Mafia Wars MafiaWars Mafia Wars Automation Mafia Wars Auto Player Auto Player AutoPlayer MWAP FarmVille Farm Ville
FarmTown Farm Town Mobsters Vampire Wars VampireWars Castle Age GrabAllGifts JGrabAllGifts Grab All Gifts JGAG GAG Gift Grabber Free Gift Grabber Gift Accepter Accept All Gifts AddAll JAddAll JAddAll2