<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>AH Squared &#187; code</title>
	<atom:link href="http://www.ahsquared.com/tag/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ahsquared.com</link>
	<description>This is the home of AH Squared&#039;s many and varied activities</description>
	<lastBuildDate>Tue, 25 Oct 2011 03:30:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Facebook Select All Bookmarklet</title>
		<link>http://www.ahsquared.com/2010/01/11/facebook-select-all-bookmarklet/</link>
		<comments>http://www.ahsquared.com/2010/01/11/facebook-select-all-bookmarklet/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 20:03:33 +0000</pubDate>
		<dc:creator>ahsquared</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[facebook]]></category>

		<guid isPermaLink="false">http://www.ahsquared.com/?p=659</guid>
		<description><![CDATA[For some reason Facebook seems to think that its users love clicking and so refuses to give us a Select All button (is that part of the monetization scheme? are they going to charge for it?) Anyway I can&#8217;t stand &#8230; <a href="http://www.ahsquared.com/2010/01/11/facebook-select-all-bookmarklet/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>For some reason Facebook seems to think that its users love clicking and so refuses to give us a Select All button (is that part of the monetization scheme? are they going to charge for it?) Anyway I can&#8217;t stand it, so I found a little bookmarklet that will invite all your friends.</p>
<p><br class="spacer_" /></p>
<p>The one I found worked well but it selected everyone, even those who were already members, so I altered it so it would only select friends who needed the invite. Follow the steps below to create the bookmarklet that makes this work. The instructions are for Firefox, but should be similar for other browsers.</p>
<p><br class="spacer_" /></p>
<p><strong><span style="font-size: small;">How to create a Firefox Bookmarklet</span></strong> The best way to do it would be to add this as a browser bookmarklet. <strong>So in FireFox:</strong></p>
<ol style="list-style-type: decimal;">
<li>Right click next to your other bookmarklets and select <strong>New Bookmark</strong>.</li>
<li>In the <strong>Name</strong> field type: FaceBook Select All (or whatever you want)</li>
<li>In the <strong>Location</strong> field copy and paste the code you see below in the code box exactly as it is. You can leave the KEYWORDS and DESCRIPTION field blank. They aren&#8217;t necessary.
<p><pre class="brush: js; highlight: [5, 15];">javascript:elms=document.getElementById('friends').getElementsByTagName('li');for(var fid in elms){if(typeof elms[fid] === 'object' &amp;&amp; elms[fid].className != 'disabled'){fs.click(elms[fid]);}}</pre>
</li>
<li>Hit <strong>Add</strong>.</li>
</ol>
<p>You can also just drag this link to your bookmark toolbar: <a href="javascript:elms=document.getElementById('friends').getElementsByTagName('li');for(var fid in elms){if(typeof elms[fid] === 'object' &amp;&amp; elms[fid].className != 'disabled'){fs.click(elms[fid]);}}">FB Select All</a></p>
<p>Now wherever you are adding friends to an event or group using the Facebook friend selector you can click the bookmarklet and it will select everyone who is not already a member.</p>
<p><br class="spacer_" /></p>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ahsquared.com/2010/01/11/facebook-select-all-bookmarklet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

