Facebook Auto Add Friends
For all of you GreaseMonkey and Bookmarklets aficionados who get added on Facebook a lot, here’s a quick snippet I wrote to confirm all friend requests at once (Facebook’s interface normally has you click on confirm and ask for details for each friend which is a pain):
var inputbuttons = $$('input.inputbutton');
for (var i = 0; i < inputbuttons.length; i++){
if (inputbuttons[i].value=="Confirm"){
if (inputbuttons[i].attributes['onclick'].value.substring(8,24)
== "click_add_friend"){
inputbuttons[i].click();
}
}
}
Update: I’ve extended this script to automatically ignore all other requests (invitations to groups, applications…). See the updated script at Facebook Auto Requests Ignore.
December 7th, 2007 at 8:13 pm
How do you install it?
December 24th, 2007 at 6:39 am
This is a javascript that you need your browser to run each time you are on Facebook’s request page. Either manually paste it into the javascript console, or look into the two links I mentioned at the start of the article.
January 11th, 2008 at 12:11 pm
[…] you’ve read my page on Facebook Auto Add Friends you know that I have a fake profile on Facebook that gets added a lot. If you’re French, […]
February 20th, 2008 at 2:21 pm
I cant get this to work in Greasemonkey and I have 1000 friend requests to accept.
Is it possible to make one which is a file you install?
Thanks
February 22nd, 2008 at 4:05 pm
See my comment on http://blog.mapmyglobe.com/facebook-auto-accept-requests/ for a fix.
As for the Greasemonkey script, I’ll write one some day. For now you can run it inside a javascript console.
February 22nd, 2008 at 4:10 pm
Oh and by the way: don’t forget you’ve got a 5,000 friends limit on Facebook !!
February 27th, 2008 at 2:34 pm
Ok so how do I install the fix?
Its not working, its really annoying.
I gather I put the script in the includes section but whats the excludes and Namespace?
Thank you so much.
February 28th, 2008 at 6:57 am
@Lucy:
I finally wrote a Greasemonkey script for this: it can be found at http://userscripts.org/scripts/show/23345, or directly here at http://blog.mapmyglobe.com/gmscripts/facebook-auto-confirm-friend-requests.user.js
Note that it also accept any Group request.
July 4th, 2008 at 12:43 pm
umm speaking of auto add friend… umm where would i put this code
July 20th, 2008 at 10:45 am
check this out http://www.myspace2max.com