<?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>Samuel Liew’s Blog &#187; JavaScript</title>
	<atom:link href="http://www.samliew.com/blog/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.samliew.com/blog</link>
	<description>News, events, and other interesting finds</description>
	<lastBuildDate>Wed, 01 Feb 2012 15:28:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Auto Add/Remove Facebook Friends</title>
		<link>http://www.samliew.com/blog/2009-11/auto-addremove-facebook-friends/</link>
		<comments>http://www.samliew.com/blog/2009-11/auto-addremove-facebook-friends/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 19:20:24 +0000</pubDate>
		<dc:creator>Samuel</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.samliew.com/blog/?p=838</guid>
		<description><![CDATA[Do you have too many friends on facebook that you don&#8217;t know? Now you can remove them simply by visiting their profiles. I wrote a Greasemonkey script that will help you do exactly that, and another that helps you add instead of delete. What is Greasemonkey? Greasemonkey allows you to customize the way a webpage [...]]]></description>
			<content:encoded><![CDATA[<p>Do you have too many friends on facebook that you don&#8217;t know? Now you can remove them simply by visiting their profiles. I wrote a Greasemonkey script that will help you do exactly that, and another that helps you add instead of delete.</p>
<p><strong>What is Greasemonkey?</strong></p>
<blockquote><p>Greasemonkey allows you to customize the way a webpage displays on Firefox using small bits of JavaScript. Hundreds of scripts, for a wide variety of popular sites, are already available at http://userscripts.org.<br />
- <a href="http://addons.mozilla.org/en-US/firefox/addon/748" target="_blank">http://addons.mozilla.org/en-US/firefox/addon/748</a></p></blockquote>
<blockquote><p>Greasemonkey is a Mozilla Firefox add-on that allows users to install scripts that make on-the-fly changes to HTML web page content on the DOMContentLoaded event, which happens immediately after it is loaded in the browser (also known as augmented browsing). As Greasemonkey scripts are persistent, the changes made to the web pages are executed every time the page is opened, making them effectively permanent for the user running the script.<br />
- <a href="http://en.wikipedia.org/wiki/Greasemonkey" target="_blank">http://en.wikipedia.org/wiki/Greasemonkey</a></p></blockquote>
<p><strong>Where to get Greasemonkey?</strong></p>
<p><a href="http://addons.mozilla.org/en-US/firefox/addon/748" target="_blank">http://addons.mozilla.org/en-US/firefox/addon/748</a></p>
<p><strong>Get the two scripts!</strong></p>
<p>Script to auto delete friends:<br />
<a href="http://userscripts.org/scripts/show/61122" target="_blank"> http://userscripts.org/scripts/show/61122</a></p>
<p>Script to auto add friends:<br />
<a href="http://userscripts.org/scripts/show/61660" target="_blank"> http://userscripts.org/scripts/show/61660</a></p>
<p><strong>Warning!</strong><br />
Don&#8217;t forget to disable the scripts when you are not using them, or else you will accidentally delete your real friends, or add people you don&#8217;t know!!!</p>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="http%3A%2F%2Fwww.samliew.com%2Fblog%2F2009-11%2Fauto-addremove-facebook-friends%2F" send="true" width="450" show_faces="true" font=""></fb:like>]]></content:encoded>
			<wfw:commentRss>http://www.samliew.com/blog/2009-11/auto-addremove-facebook-friends/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check/Uncheck All Checkboxes On A Page [script]</title>
		<link>http://www.samliew.com/blog/2008-02/check-all-checkboxes-on-a-page-script/</link>
		<comments>http://www.samliew.com/blog/2008-02/check-all-checkboxes-on-a-page-script/#comments</comments>
		<pubDate>Wed, 13 Feb 2008 10:04:54 +0000</pubDate>
		<dc:creator>Samuel</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.samliew.com/blog/?p=207</guid>
		<description><![CDATA[Paste this in the browser address bar to select all checkboxes on a page: javascript:el=document.getElementsByTagName('input');for(i=0;i&#60;el.length;i++){if(el[i].type=="checkbox")el[i].checked=true;}void(0); Paste this in the browser address bar to un-select all checkboxes on a page: javascript:el=document.getElementsByTagName('input');for(i=0;i&#60;el.length;i++){if(el[i].type=="checkbox")el[i].checked=false;}void(0); Note that the above scripts won&#8217;t work for pages displayed in a frame (iframe or frameset).]]></description>
			<content:encoded><![CDATA[<p>Paste this in the browser address bar to select all checkboxes on a page:</p>
<p><code>javascript:el=document.getElementsByTagName('input');for(i=0;i&lt;el.length;i++){if(el[i].type=="checkbox")el[i].checked=true;}void(0);</code></p>
<p>Paste this in the browser address bar to un-select all checkboxes on a page:</p>
<p><code>javascript:el=document.getElementsByTagName('input');for(i=0;i&lt;el.length;i++){if(el[i].type=="checkbox")el[i].checked=false;}void(0);</code></p>
<p>Note that the above scripts won&#8217;t work for pages displayed in a <a href="http://en.wikipedia.org/wiki/HTML_element#Frames" target="_blank">frame</a> (iframe or frameset).</p>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="http%3A%2F%2Fwww.samliew.com%2Fblog%2F2008-02%2Fcheck-all-checkboxes-on-a-page-script%2F" send="true" width="450" show_faces="true" font=""></fb:like>]]></content:encoded>
			<wfw:commentRss>http://www.samliew.com/blog/2008-02/check-all-checkboxes-on-a-page-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Christmas Holidays Happenings</title>
		<link>http://www.samliew.com/blog/2007-12/christmas-holidays-happenings/</link>
		<comments>http://www.samliew.com/blog/2007-12/christmas-holidays-happenings/#comments</comments>
		<pubDate>Sun, 23 Dec 2007 11:19:04 +0000</pubDate>
		<dc:creator>Samuel</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[Family]]></category>
		<category><![CDATA[Friends]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Photos]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.samliew.com/blog/?p=197</guid>
		<description><![CDATA[21 Dec: Church Christmas outreach dinner 22 Dec: Dinner at relative&#8217;s house 23 Dec: Uploaded lots of pictures to Facebook 24 Dec: Visit Tan family, dinner at Eng family&#8217;s house 27 Dec: Birthday celebration at Bubble Tea chalet BBQ 29 Dec: Birthday party with relatives Tried creating a Facebook app using clearspring.com http://apps.facebook.com/wordscram/page]]></description>
			<content:encoded><![CDATA[<p>21 Dec: Church Christmas outreach dinner</p>
<p>22 Dec: Dinner at relative&#8217;s house</p>
<p>23 Dec: Uploaded lots of pictures to <a title="Note: Only people in the Singapore network, or my friends can view most of the albums." href="http://www.facebook.com/photos.php?id=526186234" target="_blank">Facebook</a></p>
<p>24 Dec: Visit Tan family, dinner at Eng family&#8217;s house</p>
<p>27 Dec: Birthday celebration at Bubble Tea chalet BBQ</p>
<p>29 Dec: Birthday party with relatives</p>
<p>Tried creating a Facebook app using clearspring.com</p>
<p>http://apps.facebook.com/wordscram/page</p>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="http%3A%2F%2Fwww.samliew.com%2Fblog%2F2007-12%2Fchristmas-holidays-happenings%2F" send="true" width="450" show_faces="true" font=""></fb:like>]]></content:encoded>
			<wfw:commentRss>http://www.samliew.com/blog/2007-12/christmas-holidays-happenings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New IE7Pro Userscript</title>
		<link>http://www.samliew.com/blog/2007-11/new-ie7pro-userscript/</link>
		<comments>http://www.samliew.com/blog/2007-11/new-ie7pro-userscript/#comments</comments>
		<pubDate>Sat, 10 Nov 2007 14:55:29 +0000</pubDate>
		<dc:creator>Samuel</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.samliew.com/blog/?p=186</guid>
		<description><![CDATA[Today I programmed a new userscript for IE7Pro so that I can have a direct link to download original images from Photobucket. http://www.iescripts.org/view-scripts-193p1.htm]]></description>
			<content:encoded><![CDATA[<p>Today I programmed a new userscript for IE7Pro so that I can have a direct link to download original images from Photobucket.</p>
<p><a href="http://www.iescripts.org/view-scripts-193p1.htm">http://www.iescripts.org/view-scripts-193p1.htm</a></p>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="http%3A%2F%2Fwww.samliew.com%2Fblog%2F2007-11%2Fnew-ie7pro-userscript%2F" send="true" width="450" show_faces="true" font=""></fb:like>]]></content:encoded>
			<wfw:commentRss>http://www.samliew.com/blog/2007-11/new-ie7pro-userscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Today</title>
		<link>http://www.samliew.com/blog/2007-11/today/</link>
		<comments>http://www.samliew.com/blog/2007-11/today/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 17:39:30 +0000</pubDate>
		<dc:creator>Samuel</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://www.samliew.com/blog/?p=185</guid>
		<description><![CDATA[Added random color background script to website Went out to meet a friend Snapfish photos arrived by mail  :) I played a JavaScript &#8216;hacking&#8217; game at http://www.hackquest.de]]></description>
			<content:encoded><![CDATA[<ul>
<li>Added random color background script to website</li>
<li>Went out to meet a friend</li>
<li>Snapfish photos arrived by mail  :)</li>
<li>I played a JavaScript &#8216;hacking&#8217; game at <a href="http://www.hackquest.de/">http://www.hackquest.de</a></li>
</ul>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="http%3A%2F%2Fwww.samliew.com%2Fblog%2F2007-11%2Ftoday%2F" send="true" width="450" show_faces="true" font=""></fb:like>]]></content:encoded>
			<wfw:commentRss>http://www.samliew.com/blog/2007-11/today/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get Latest Version of Page from the Server</title>
		<link>http://www.samliew.com/blog/2007-04/get-latest-version-of-page-from-the-server/</link>
		<comments>http://www.samliew.com/blog/2007-04/get-latest-version-of-page-from-the-server/#comments</comments>
		<pubDate>Sun, 29 Apr 2007 16:36:59 +0000</pubDate>
		<dc:creator>Samuel</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.samliew.com/blog/?p=137</guid>
		<description><![CDATA[Sometimes, some webpages are cached in the server and may not be showing the latest version. To ensure that the pages you are at is the latest version, paste this into your title bar: javascript:location.reload(true);void(0);]]></description>
			<content:encoded><![CDATA[<p>Sometimes, some webpages are cached in the server and may not be showing the latest version. To ensure that the pages you are at is the latest version, paste this into your title bar:</p>
<p><code>javascript:location.reload(true);void(0);</code></p>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="http%3A%2F%2Fwww.samliew.com%2Fblog%2F2007-04%2Fget-latest-version-of-page-from-the-server%2F" send="true" width="450" show_faces="true" font=""></fb:like>]]></content:encoded>
			<wfw:commentRss>http://www.samliew.com/blog/2007-04/get-latest-version-of-page-from-the-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Annoying Puzzle</title>
		<link>http://www.samliew.com/blog/2006-07/the-annoying-puzzle/</link>
		<comments>http://www.samliew.com/blog/2006-07/the-annoying-puzzle/#comments</comments>
		<pubDate>Fri, 07 Jul 2006 10:00:20 +0000</pubDate>
		<dc:creator>Samuel</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://www.samliew.com/blog/?p=58</guid>
		<description><![CDATA[I&#8217;ve created a browser-based JavaScript puzzle. Try it: http://www.samliew.com/annoying/]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve created a browser-based JavaScript puzzle.</p>
<p>Try it: <a href="http://www.samliew.com/annoying/" target="_blank">http://www.samliew.com/annoying/</a></p>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="http%3A%2F%2Fwww.samliew.com%2Fblog%2F2006-07%2Fthe-annoying-puzzle%2F" send="true" width="450" show_faces="true" font=""></fb:like>]]></content:encoded>
			<wfw:commentRss>http://www.samliew.com/blog/2006-07/the-annoying-puzzle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

