Friends For Sale Coin Finder

By morizuki Last update Oct 19, 2009 — Installed 34,477 times.

Suggestion

in
Subscribe to Suggestion 8 posts, 6 voices



Megathron Scriptwright
FirefoxWindows

This scrips works nice, but its not completely automated, from time to time, pop-up shows up, asking you if you would like to navigate from the page, and if you click ok, it navigates to http://apps.facebook.com/friendsforsale/users/null or if u click cancel, it stays on the page, also sometimes you can't access the FFS page (there was a problem with the site thingie), and it also navigates you to "null" page, so I suggest that if that page opens, that you are redirected to previous page or something.

 
Leong0 User
FirefoxWindows

Ya, I got these problems since the Firefox addon "Adblock Plus" updated recently. So I assume that these problems are caused by the addon installed. Therefore, I try to uninstall it and the problems fixed. :)
Edit: I think I am wrong, the problem still persist after a while :(

By the way, there are a few discussions about the "Are you sure you want to navigate away from this page?" popup alert problem on firefox supported forum:
1. http://support.mozilla.com/tiki-view_forum_thre...
2. http://support.mozilla.com/tiki-view_forum_thre...

Facebook Hatchlings™ with the same problem:
http://www.facebook.com/topic.php?uid=717671930...

--------------------------------------------------------------------------------------------------------
After doing some researches on this problem. I found out that:
The pop up alert "Are you sure you want to navigate away from this page?" is an JavaScript event known as "onbeforeunload"

There is a possible solution to stop/disable this event: http://groups.google.com/group/greasemonkey-use...

//Turn off the window open function
//user_pref("capability.policy.strict.Window.foo", "noAccess");
//user_pref("capability.policy.default.Window.open", "noAccess");
user_pref("dom.disable_open_during_load", true);
user_pref("dom.disable_open_click_delay", 1000);

I have tried the above script and the popup alert does not appear anymore. :)

 
Megathron Scriptwright
FirefoxWindows

now that's cool, I also changed some setting in script, so now it takes two seconds to move to next friend, I kinda noticed that it didn't pick up a coin (or was it a fake one?). So I tweaked that, hm hm, only thing that I would add to script is, that if page is loading for more then a 30 seconds, that it refreshes it again, I kinda found that sometimes it hangs at blank page. :)

So ye, that are the bugs picked by me ^^

Tnx for the tip Leong0, i'm gonna try it, got any working script to just install it maybe?

 
morizuki Script's Author
FirefoxWindows

about the script you all just put or tweak.. can you please help me put that script here? thanks2

 
acewingman User
FirefoxWindows

Although the script above will work if you change the value from true to false, I have a possible better solution for that will work for all greasemonkey scripts.

enter about:config in the address bar for firefox and type dom in the filter and then look for

dom.disable_open_during_load

default is true...Change it to false by double clicking it.

After doing this I never get the pop-up.

 
morizuki Script's Author
FirefoxWindows

actually.. ive tried that.. but still not working.. it still popping up when i open many tabs..

 
tigz User
FirefoxWindows

not working... its been 1 hr searching no coin...

 
jeffery Scriptwright
FirefoxWindows

Use this script to fix the null problem.
http://userscripts.org/scripts/show/60048

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