Facebook Friends

By Johnny Bravo Last update Jun 19, 2009 — Installed 366 times. Daily Installs: 0, 0, 1, 7, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 2, 2, 0, 6, 0, 4, 1, 0, 3, 0, 0, 0, 1, 1, 1

There are 1 previous version of this script.

// ==UserScript==
// @name        Facebook Friends
// @namespace   kidsolo.com
// @description Bulk selects friends on facebook
// @include     http://facebook.com/*
// @include     http://*.facebook.com/*
// ==/UserScript==
// you may want to tweak the include and add excludes - I dont' facebook so ... dunno
var where=document.getElementById('presence_bar_left');
var butt=where.appendChild(document.createElement('div'));
butt.className = 'presence_bar_button presence_section';
butt.style.cursor = 'pointer';
butt.style.color = 'red';
butt.style.fontSize = '18px';
butt.title = 'Select All Friends';
butt.style.fontWeight = 'bold';
butt.appendChild(document.createTextNode('+'));
butt.addEventListener('click', function() {
	elms = document.getElementById('friends').getElementsByTagName('li');
	for(var fid in elms){
		if(typeof elms[fid] === 'object'){
			unsafeWindow.fs.click(elms[fid]);
		}
	}
}, false);