Facebook Packrat Enhancer (version 0.4)
[This version of the script is obsolete. For more informations check the PackRat Helper category.]
The version 0.4 of the Facebook Packrat Enhancer is ready to be used and enjoyed. I would like to personally thank everybody that contributed feedback and new ideas on this blog. Some of the features requested are not yet in this release, but I am working on them.
This version has a couple of new features, that I hope will make you enjoy even more playing Packrat:
- You can now pause the credit gathering cycle by pressing SPACE while the script is looking for money. The keyboard shortcut works only if the browser haven’t yet started to load the next page, so try hitting the space key many times to be sure not to miss the time frame.
- You can now access the script’s Preferences Panel on the right of the ‘Buy From The Markets’ tab.
- You have now an option to ‘Automatically pick up pop-up cards’ in the Preferences Panel.
- There is also an option to ‘Pause gathering cycle when pop-up card shows up’. This option is not compatible with the previous one. I suggest to have one of this options always on, otherwise you’ll miss precious cards. You can deactivate both of them if you wish just to collect credit.
- To collect an arbitrary amount of credit, go to the script’s configuration. The amount is limited to 1000 credit, but you can easily modify the code to whatever amount you want (but be sure to read the comment before the variable MAX_AMOUNT).
So get it now using the link below:
Facebook Packrat Enhancer: version 0.4
Also available on Userscripts.org.

hey nice work! =] but how do you start the credit collecting cycle?
Comment by xksinz — 28/5/2008 @ 9:08 am
xksinz: To start a credit gathering cycle you have to:
or you can find an expensive item in a market that you want to get and click on ‘Get X credits’.
Since you didn’t find it at once, may I ask you, how should I improve the User Interface of the script to make it more intuitive?
Comment by Piotr P. Karwasz — 29/5/2008 @ 1:23 pm
Can the delay be adjusted?
I think they PackRat devs have been able to combat this workaround by only doling out 2-5 credit coins at a time.
Maybe a spot within the script, not so much in the GUI.
Also, when you pause the script, the small little line to resume the script isn’t very obvious.
Comment by crazymodo — 30/5/2008 @ 12:46 am
crazymodo: I thought to use random intervals of time when performing automatic actions, but then I considered it unnecessary. Look for the calls to setTimeout and dispatchEvent to personalize the delays. The values are in milliseconds.
Where do you propose to put the resume link? Or are you just suggesting to make it bigger?
Comment by Piotr P. Karwasz — 30/5/2008 @ 1:21 am
Minor bug: When a popup card occurred on a rat, the script moved two big caps “STEAL” items into the popup as well instead of to the front of the pack.
Comment by Otto — 30/5/2008 @ 6:36 pm
Maybe the resume button could be next to the script config or even in that box.
Comment by Heather — 31/5/2008 @ 5:40 am
I had an idea for a nice feature, add grinding so that the script will grind cards in your pack with friends. Example, the script finds a jackpot card to steal and then swaps it with a jackpot in your pack for 5000 points. Also maybe a “delay for x or random amount of time” feature.
Comment by fs34 — 4/6/2008 @ 11:12 am
I downloaded the script, had it enabled, but it didn’t do anything. It looks like there are no commands in it. What do I need to do to set it to cycle through automatically and pick up credits? Thanks.
Comment by sarah — 6/6/2008 @ 6:33 pm
Otto: Thanks for the bug report, I’ll fix it in the next release.
Heather: I’ll try next to the script config if we have enough space to put it.
fs34: Grinding is the next feature I intend to implement and I am also planning to let you stalk markets and friends for certain cards.
sarah: There should be “Script config” tab next to the tab you use to go to the markets. If it is not there, then something went wrong and you should have some errors in you “Error console” (Tools > Error Console, look for those that occurred in a file beginning with file:///, the others are errors of the PackRat application).
Comment by Piotr P. Karwasz — 7/6/2008 @ 12:12 am
Error: a2431403991_$(a2431403991_parentElement) has no properties
Source File: http://apps.facebook.com/fbml_static_get.php?src=http%3A%2F%2Fs3.amazonaws.com%2Fafire-packrat%2Fpublic%2Fproduction%2Fjavascripts%2Ffacebook.js%3Fv%3D0fe8f8ff2d9153666997990f194248b554cc3a5a&appid=2431403991&pv=1&sig=345271382fb629624d6342b59601b107&filetype=js
Line: 7
That’s the problem I’m getting in the error console.
Any idea on how I can fix it? Thanks!
Comment by sarah — 9/6/2008 @ 12:06 am
sarah: If that’s the only errors you have in the error console everything works fine: the error does not occur in my GreaseMonkey script, but in a script written by the PackRat developers (the Source File is not the GreaseMonkey script, whose URL begins with ‘file://’). Are there other errors?
Last check: go to Tools > GreaseMonkey > Manage Scripts… and look if the script is active. If it is and when you go to a Packrat page you don’t see a ‘Script Config’ tab on the right of the ‘Buy from the Markets’ tab I don’t know what the problem might be (unless you are running a version of the script older than 0.4).
Comment by Piotr P. Karwasz — 9/6/2008 @ 2:51 pm
Nope, no other errors. It says the autoclicker is enabled on the script config. If I double click the error, the source code(?) opens and the following is highlighted:
var a2431403991_children = a2431403991_$(a2431403991_parentElement).getElementsByTagName(’*');
Comment by sarah — 9/6/2008 @ 4:22 pm
sarah: Thanks, that’s a bug, but not a bug of my script and does not disturb the way the script is working. If you wonder, my autoclicker does not define menu commands that you can access via Tools > GreaseMonkey > Script Commands.
Everything is on the PackRat page, so how to know if the script is working or not? If free credits disappear automatically or you get ‘Get X credits’ links on the market page (for items you can not afford) or you have a ‘Script Config’ tab (version 0.4 or later) everything works fine. Note: you actually have to click on ‘Update Preferences’ in the script config, entering a number and pressing ENTER does not work (didn’t have time to fix it).
If free credits remain on the page, the script does not work…
Comment by Piotr P. Karwasz — 9/6/2008 @ 6:22 pm
You should really add a Market stalking feature.
Comment by jd — 9/6/2008 @ 7:16 pm
Free credits are remaining on the page, and there is no script tag near the market place tab. I’ve updated the mozilla, could that be it?
Comment by sarah — 9/6/2008 @ 11:29 pm
Oh yeah, it also says “no scripts installed” when I look at the menu when I click the monkey’s face on my browser.
Comment by sarah — 10/6/2008 @ 3:27 am
I was thinking of the pause for card pick-up feature and thought that the making the resume link more noticeable wasn’t as important to me as making the pause itself more noticeable. The point of this plugin for me is that I can be doing something else while the script does the work. If I am on another page, not watching I don’t notice that the script has paused and may miss a valuable card. Can you add an option for a sound notice? One of the stock sounds would be fine for the default with a configurable line if we really want to get fancy using our own sound files.
I live in anticipation of the grinding feature and would love to see it be able to stalk the markets for me to get those illusive rare cards.
Thanks for the script!
Comment by Kriis — 10/6/2008 @ 7:15 am
js: I will think about the stalking feature. Anyway I am in the middle of a major rewrite of the script so that I will be able to add other features more easily.
sarah: So the script is installed and active (according to Tools > GreaseMonkey > Manage Scripts) and it does not run. When you right click on the monkey’s face it does not list my script… There is a problem with your GreaseMonkey. You can look in Tools > GreaseMonkey > Manage Scripts if the URL on which the script activates is http://apps.facebook.com/packrat/*, if it is indeed file a bug report on GreaseMonkey (reason: the script is installed and active, but does not run on the specified URLs). Anyway you can try reinstalling the script, maybe that will work…
Kriis: You should not miss a valuable card, since the script pauses and you can pick up the popup whenever you want. I’ll watch into emitting sound, but as far as I know there is no native way to emit sound using only JavaScript.
Comment by Piotr P. Karwasz — 12/6/2008 @ 12:56 am
[...] than two weeks passed since I released version 0.4 of the Facebook Packrat Autoclicker. It is past due time I publish an update of what is going on in [...]
Pingback by Textual Reflexions » Packrat Helper: future plans — 12/6/2008 @ 1:35 am
The url, as well as the url to this page are in the “manage scripts” page. Could you tell me what I need to do to enter the script manually? I can try to uninstall and reinstall. I’ve done that through your link about a dozen times now, and it doesn’t seem to work.
Comment by sarah — 12/6/2008 @ 8:39 am
sarah: So I should suppose that there is a strange bug in your GreaseMonkey. Try installing other scripts on UserScripts.org and look if they work. Try deleting the directory ~/.mozilla/firefox/<something>/gm_scripts (on UNIX) or C:\WINDOWS\Application Data\Mozilla\Firefox\<something>\gm_scripts (on Windows) and reinstalling GreaseMonkey (and the script). Otherwise you can contact me by mail at piotr DOT karwasz AT gmail DOT com.
Comment by Piotr P. Karwasz — 12/6/2008 @ 9:58 am
Awesome! Thanks for your scripts!
Comment by fs34 — 13/6/2008 @ 6:22 am
I got it to work finally. I think I messed up by not downloading greasemonkey 1st. Thanks, it’s awesome! I already have all the pop ups that were released today!
Comment by sarah — 13/6/2008 @ 10:06 pm
sarah: Great. I am happy you managed to make it work eventually.
Comment by Piotr P. Karwasz — 16/6/2008 @ 3:23 pm
Great Job on the script! Well done! I was just sitting and wondering if it’s possible to do the script for playing mini-game (i.e. pairs) and then it could pick points up - obviously it would be a totally different thing but still much faster way of making money.
Comment by VB — 18/6/2008 @ 3:39 pm
VB: I fear that is impossible: the mini-games are Shockwave applets and the script can only modify HTML and simulate clicks on “normal” page elements. The mini-games are beyond the technical capabilities of a script.
Comment by Piotr P. Karwasz — 18/6/2008 @ 10:54 pm
How do I get to run script on Safari or IE if I run WinXP?? for safari it says I need to install SIMBL but I couldn’t find Windows installation anywhere. Any ideas?
Comment by Avebell — 20/6/2008 @ 5:52 pm
well if shockwave is no good how about creating grinding feature where while it’s browsing from one person to another and collecting cards and credits it would also been able to steal cards if it finds the same card in someone’s pack??
Comment by VB — 24/6/2008 @ 1:38 pm
The script no longer works for me. Even with it enabled, the script config tab no longer shows.
I installed Pirefox 3 last weekend and had no problems with the script running. It’s only started to not work at all today.
Maybe the DEVs have figured a way around this script?
Comment by Mezzo — 24/6/2008 @ 4:59 pm
Avebell: To run the script on Internet Explorer or Safari the script must be modified. It is written in a way that only minimal modifications are needed, but something must be done. I’ll post an entry about this topic later this week.
VB: The bad news are I don’t have much time to work on the script any more, so features will be added very slowly. The good news are a new developer contacted me and if he decides to work on the script all feature requests can be implemented.
Mezzo: There is no way for the developers to disable the script (since it’s presence is undetectable), but by modifying the page layout or characteristics of the HTML the script can stop working. You can see if there are errors in Tools > Error Console and post them here. Only the errors in the files beginning with ‘file:///’ concern this script.
Any way the script still works for me so maybe it’s a problem in your system configuration.
Comment by Piotr P. Karwasz — 25/6/2008 @ 2:07 pm
Thank you, thank you. Packrat is more fun with this script. I would love to see a card stalking feature too. I’d love to have it check the markets too.
One thing that would help is instructions to start the script. People I have shared the information with invariably need help, and LOL, I don’t remember what I did.
Comment by Heidi — 1/7/2008 @ 5:33 am
I faced a problem when playing packrat under facebook. The problem is the items that I vaulted 5 items from Hightail Zoo are missing and not go into my vaulted. This caused my Hightail Zoo collection cannot be completed, futhermore, the feats of wonder card and 500 credit was not given to me.
I’m not sure whether I can posted my problem here. But I do hope I can get some advice from here. Thanks.
Comment by kuan — 1/7/2008 @ 1:23 pm
only thing that I can think of right now to make this better is to have the script ignore pop-ups except a specified one. say your really looking for sunshine, it would collect credits, and sunshine, but ignore all the other pop-up cards. don’t know if that would be easy or not.
Comment by Anthony — 1/7/2008 @ 9:04 pm
Hi,
I love the script. I Run on firefox 3 on macbook. But after a while the script run, packrat will crash and all the words moved to the left side and then no pictures. I have to force quit firefox and then open fb and packrat again. This happens each time i run the script like 10 minutes .. even when i dont run the script but its still enable, packrat will crash then again. It works fine without the script so i think its not firefox. Thanks
Comment by ryn — 5/7/2008 @ 6:27 pm
i can try to show u what happen via jpeg if u wanna know what i mean. thanks
Comment by ryn — 5/7/2008 @ 6:28 pm
kuan: Your problem is about the PackRat application, not this user script. Try asking for help on the PackRat Discussion Board.
ryn: I cannot reproduce the bug. Can you save the HTML of a crashed page and send it to me to piotr DOT karwasz AT gmail DOT com?
Heidi and Anthony: I added your requests to my TODO list.
Comment by Piotr P. Karwasz — 7/7/2008 @ 5:46 pm
Hi I keep getting this error
Line : 249
Char : 2
Error : ‘location’ is undefined
Code : 800A1391
Source : Microsoft JScript runtime error
I’m pretty clueless when it comes to installing this type of thing though so any help would be appreciated.
Comment by Claudine — 7/7/2008 @ 6:05 pm
The script is getting hung up on packs that have items “in the oven”.
Comment by maddy — 8/7/2008 @ 12:08 am
Yeah I came here to see if anyone knew what was going on with the script and the ‘In the Oven’ card…the only time the script isn’t hung up on the Oven card is when the Oven card is locked…very interesting and odd. Seems like the Oven’s script or whatever that makes it hang on to the cards for X hours of “baking time” is making the script wait too.
Comment by Lisa — 8/7/2008 @ 8:56 am
As the above poster has stated:
The script does not work any more with the new adition of “in the oven” cards, when you browse profiles collecting credits with the script it will work fine until it comes to a profile where somone has an “in the oven” card and then it will not go past that stage until you click it your self, is there anyway around this?
Comment by That_other_guy — 8/7/2008 @ 5:57 pm
Let me clarify that the script is only getting hung up on cards that are baking and are NOT locked. If the baking card is locked, it works fine.
Comment by maddy — 8/7/2008 @ 8:13 pm
I was just going to comment about the baking cards. It is only stopping on the packs where they’re not locked. In addition, it’s not picking up the credits or cards that might be on that page.
Comment by sarah — 8/7/2008 @ 10:34 pm
The fix for the in the oven cards is pretty simple. It needs an if statement on line 315
/* New cards */
var elms = getElementsByClassName(’card-wrapper’,'div’);
var elm;
try {
var first = elms[0];
} catch(ex) {}
for (var i = 0; i < elms.length; i++) {
elm = getElementsByClassName(’front’,'div’,elms[i])[0];
elm = elm.getElementsByTagName(’img’)[0];
if(elm){
if (collections.indexOf(elm.alt) != -1) {
elm = getElementsByClassName(’item’,’span’,elms[i])[0];
if (cards.indexOf(elm.getAttribute(’style’).match(/\/([^\/]*)\_.*.gif/)[1]) == -1) {
try {
elm = getElementsByClassName(’action’,'div’,elms[i])[0];
elm = elm.getElementsByTagName(’a')[0];
elm.innerHTML = elm.innerHTML.toUpperCase();
first.parentNode.insertBefore(elms[i],first);
} catch(ex) { GM_log(ex); }
}
}
}
}
/* free credit */
There’s an if statement that makes sure that elm is defined, if it isn’t the loop breaks, so now that it checks that it’s defined it will work.
Comment by James — 9/7/2008 @ 3:29 am
maddy, Lisa, That_other_guy and sarah: Thank you for your report. With the new “in the oven” cards the script finds unusual input and crashes. Can you send me an “in the oven” page by mail to piotr DOT karwasz AT gmail DOT com (File > Save As… and then you can send it as an attachment) or to cut and copy the error message from Tools > Error Console?
I don’t have friends playing Packrat nor do I play it myself very often.
Comment by Piotr P. Karwasz — 9/7/2008 @ 10:35 am
James’ additional “IF” statement worked great for me! Thanks dude!
Comment by Tony C — 9/7/2008 @ 6:39 pm
@ post 43, how do i add a new line in my script and put that in there, i can tseem to find out how to edit it and i tried in notepad but it all come son in 4 huge lines so i have no idea where to put it in
Comment by That_other_guy — 10/7/2008 @ 12:38 am
That_other_guy: I released an update version of the script that includes the fix. You can install that one instead of modifying the script yourself.
Comment by Piotr P. Karwasz — 10/7/2008 @ 12:41 am
The new packrat layout seems to have broken the script. Do you plan to fix this? I’m not complaining… just wondering if something is in the works.
Comment by Chris — 22/7/2008 @ 2:40 am
please let us know when you have an update for the new updated facebook, it seems to have stopped the capability of this script. Thanks!
Comment by may — 22/7/2008 @ 1:31 pm
Just so you know, with the new version of facebook and packrat, this script doesn’t work. I don’t know if it’s a simple fix, but thought you might like to know for future releases.
Comment by sarah — 22/7/2008 @ 6:36 pm
I installed the script as instructed but nothing happens. I don’t mean to sound stupid but how do you get it to run and do its thing. I have firefox and greasemonkey running.
Comment by jeff — 22/7/2008 @ 10:58 pm
Just FYI, the script no longer works on the new version of facebook/packrat.
Comment by sarah — 23/7/2008 @ 12:48 am
Ok, sorry about the double post… I didn’t see the 1st one I made, and thought there was a problem when it was sent..
Comment by sarah — 23/7/2008 @ 12:49 am
so i think there should be a quick way to transfer credits to a player. i spend a lot of time on the trading boards and we buy credits off each other and frankly i hate sitting there hitting f5. maybe an option when we click “Break Lock” that says “Transfer Credits” and we enter the credits to transfer, and the script divides that number by ten and auto-refreshes every 1 second until the number it derived. it may seem like i know how to do it but i wouldn’t know where to begin on inputting a new button in the pop-up window.
Comment by Bret W — 24/7/2008 @ 10:54 am
I wish someone would just tell me how to install the damn script, please, just tell me how to make it work, that is all I ask
Comment by Mad Monkey — 27/7/2008 @ 7:17 am
Is there a secret no one should know about on how to install a script, why do you write them if you refuse to tell anyone how to install it?
Comment by Mad Monkey — 27/7/2008 @ 7:19 am
If you are using firefox and have greasemonkey installed, then you simply click on the install script button and you’re done with the installation.
Comment by Chris — 27/7/2008 @ 4:34 pm
Mad Monkey, the script is free. Considering you’re not paying for it, I would think you’d be more patient as the owner of this blog doesn’t check it several times a day.
You have to install the greasemonkey app 1st. Then the script.
Comment by sarah — 28/7/2008 @ 6:50 am
Error in module ‘card’ on line 339: collections[card.collection].cards is undefined
Error in module ‘highlight’ on line 1060: pagecards is undefined
It stopped working after they update the latest one. There is no collection to select from. Hope you guys can look into this matter
cheers
Comment by ryn — 8/8/2008 @ 6:15 am