Facebook games quick invite.

By niknah Last update Jan 21, 2010 — Installed 74,013 times.

street racing

in
Subscribe to street racing 12 posts, 7 voices



edc1512 User

the url for auto adding in street racing:
http://apps.facebook.com/streetracinggame/index...=

thanks,

Enrico

 
elektroda User

I have not test this link personally,at least not jet? Does it work? It would be really nice to have it working for street racer.

 
smileyz User

That is exactly what is needed. Added it in a while ago...

Find

	} else if(href.indexOf('/inthemafia/')>=0) {
		return 'http://apps.facebook.com/inthemafia/status_invite.php?from='+f;

Add this after it

	} else if(href.indexOf('/streetracinggame/')>=0) {
		// Street Racing: typerc, 07/may/2009
		return 'http://apps.facebook.com/streetracinggame/index.php?action=statusrecruit&from='+f;

and before this

        } else if(href.indexOf('invite.php')>=0) {

So it should look like this when your done...

	} else if(href.indexOf('/inthemafia/')>=0) {
		return 'http://apps.facebook.com/inthemafia/status_invite.php?from='+f;
	} else if(href.indexOf('/streetracinggame/')>=0) {
		// Street Racing: typerc, 07/may/2009
		return 'http://apps.facebook.com/streetracinggame/index.php?action=statusrecruit&from='+f;
        } else if(href.indexOf('invite.php')>=0) {

 
elektroda User

Sounds nice but it still misses "Add all friends in background or In tabs" in user ID frame thus redirecting it again to Crew tab? Or am I missing something?

 
DS3 User

I added the following after the Dragonwars portion
} else if(href.indexOf('/streetracinggame/recruit.php')>=0) {
//
var acceptUrl=href.replace(new RegExp('/recruit.php.*$'),'/index.php?action=statusrecruit&from=');
return acceptUrl+f;

and it works

 
kumenk User

just add "http://apps.facebook.com/streetracinggame/*" in included page at manage user script of greasemonkey to make "Add all friends in background or In tabs" appear.

 
elektroda User

DS3 I used your method + smileyz and it worked perfect, I just have to wait to load all 300 users lol :D
kumenk can I add that line as well or your will be sufficient? Thanks.

p.s. I also hope niknah will update this great script...officially. :)

 
niknah Script's Author

Thanks, I've added it into the script.

 
ferdie User

street racing returns undefined??

 
niknah Script's Author

Street racing wasn't working unless I right click to open the invite page in a new window. But I've fixed that now.

But I didn't get an undefined error, try refreshing the list of friends.

I just noticed something cool about this invite link, you can invite anyone of your friends with that link. Click on "use all friends in the invite dialog" and add them, it doesn't really matter if they're playing the game.

 
edc1512 User

Yes you can invite everyone... ;-) is a zynga bug...

 
ferdie User

you know of a script that does the daily 100 races with the 6 prizes? it'd be great to have those accomplished everyday. lol im lazy.

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