<?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>about:benjie &#187; Tab</title>
	<atom:link href="http://www.benjiegillam.com/tag/tab/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.benjiegillam.com</link>
	<description>Benjie Gillam&#039;s blog, and home of MythPyWii - probably the best Wii remote (Wiimote) interface to MythTV - see sidebar.</description>
	<lastBuildDate>Tue, 06 Apr 2010 14:14:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Ever Wondered How Many Firefox Tabs You Have Open?</title>
		<link>http://www.benjiegillam.com/2008/09/ever-wondered-how-many-firefox-tabs-you-have-open/</link>
		<comments>http://www.benjiegillam.com/2008/09/ever-wondered-how-many-firefox-tabs-you-have-open/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 15:36:18 +0000</pubDate>
		<dc:creator>Benjie</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Mozilla Firefox 3]]></category>
		<category><![CDATA[Tab]]></category>

		<guid isPermaLink="false">http://www.benjiegillam.com/?p=116</guid>
		<description><![CDATA[Image via Wikipedia To find out, open Tools &#62; Error Console, and copy and paste this lump of javascript into the &#8220;code&#8221; box and press enter: javascript:var w=Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(Components.interfaces.nsIWindowMediator).getEnumerator('navigator:browser'),t=0;while(w.hasMoreElements())t+=w.getNext().document.getElementById(&#34;content&#34;).mTabs.length;alert(&#34;You have &#34;+t+&#34; tabs open&#34;); I&#8217;ve just closed 48 tabs, and found that there was still loads of tabs open (and I didn&#8217;t want to continue counting) so [...]]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="margin: 1em; float: right; display: block;"><a href="http://en.wikipedia.org/wiki/Image:Firefox-logo.svg"><img style="border: medium none ; display: block;" src="http://upload.wikimedia.org/wikipedia/en/thumb/e/e3/Firefox-logo.svg/202px-Firefox-logo.svg.png" alt="Mozilla Firefox Icon" height="124" width="130"></a><span class="zemanta-img-attribution">Image via <a href="http://en.wikipedia.org/wiki/Image:Firefox-logo.svg">Wikipedia</a> </span></div>
<p>To find out, open Tools &gt; Error Console, and copy and paste this lump of javascript into the &#8220;code&#8221; box and press enter:<br />
<code class="source">
javascript:<span class="enscript-keyword">var</span> w=Components.classes[<span class="enscript-string">'@mozilla.org/appshell/window-mediator;1'</span>].getService(Components.interfaces.nsIWindowMediator).getEnumerator(<span class="enscript-string">'navigator:browser'</span>),t=0;<span class="enscript-keyword">while</span>(w.hasMoreElements())t+=w.getNext().document.getElementById(<span class="enscript-string">&quot;content&quot;</span>).mTabs.length;alert(<span class="enscript-string">&quot;You have &quot;</span>+t+<span class="enscript-string">&quot; tabs open&quot;</span>);</code>
<br />
I&#8217;ve just closed 48 tabs, and found that there was still loads of tabs open (and I didn&#8217;t want to continue counting) so I wrote this code (inspired by <a title="Open Tab Count firefox extension" href="https://addons.mozilla.org/en-US/firefox/addon/8363" target="_blank">Open Tab Count</a> firefox extension) and found I had 77 still open! For those of you who&#8217;s mental arithmetic is poor, that&#8217;s a total of <strong>125 tabs</strong>! And <a class="zem_slink" title="Mozilla Firefox 3" rel="wikipedia" href="http://en.wikipedia.org/wiki/Mozilla_Firefox_3">firefox 3</a> still runs really smoothly with little delay when changing tabs, and my system is using less than 2 GB of it&#8217;s available 4GB of <a class="zem_slink" title="Random access memory" rel="wikipedia" href="http://en.wikipedia.org/wiki/Random_access_memory">RAM</a>. Now, I think that&#8217;s pretty impressive, and would like to see Google Chrome compete with that with it&#8217;s one-process-per-tab design! (If only FF3s <a class="zem_slink" title="JavaScript" rel="wikipedia" href="http://en.wikipedia.org/wiki/JavaScript">JS</a> was as fast&#8230;)</p>
<p>Whilst I am talking about browsers, I feel I should moan that <a class="zem_slink" title="Adobe Flash" rel="wikipedia" href="http://en.wikipedia.org/wiki/Adobe_Flash">Flash 10</a> for GNU/Linux is still really unstable, I have to restart firefox a couple of times a day because it&#8217;s audio gets corrupted or it stops working and just displays a white box in firefox. If only I could restart flash without restarting firefox&#8230; Can I do that?</p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://lifehacker.com/5044518/enable-chromes-best-features-in-firefox">Enable Chrome&#8217;s Best Features in Firefox [Firefox]</a></li>
</ul>
<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><a class="zemanta-pixie-a" href="http://reblog.zemanta.com/zemified/3c6b13d5-6170-4311-9dbd-1569799d4bb7/" title="Zemified by Zemanta"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_c.png?x-id=3c6b13d5-6170-4311-9dbd-1569799d4bb7" alt="Reblog this post [with Zemanta]"></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.benjiegillam.com/2008/09/ever-wondered-how-many-firefox-tabs-you-have-open/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
