<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Frank Yan</title>
	<atom:link href="http://frankyan.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://frankyan.wordpress.com</link>
	<description></description>
	<lastBuildDate>Fri, 22 Feb 2013 02:29:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='frankyan.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Frank Yan</title>
		<link>http://frankyan.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://frankyan.wordpress.com/osd.xml" title="Frank Yan" />
	<atom:link rel='hub' href='http://frankyan.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Hacking the Firefox UI from the Web Console</title>
		<link>http://frankyan.wordpress.com/2011/07/19/hacking-firefox-ui-from-web-console/</link>
		<comments>http://frankyan.wordpress.com/2011/07/19/hacking-firefox-ui-from-web-console/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 05:42:47 +0000</pubDate>
		<dc:creator>frankyan</dc:creator>
				<category><![CDATA[mozilla]]></category>

		<guid isPermaLink="false">http://frankyan.wordpress.com/?p=138</guid>
		<description><![CDATA[I am excited by the ongoing awesome work of our Developer Tools team and have been playing with Firefox&#8217;s new, rapidly improving Web Console. By default, commands typed into the console run in more or less the scope of the current content window, which is great for web development, but as a Firefox front-end engineer, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankyan.wordpress.com&#038;blog=9379684&#038;post=138&#038;subd=frankyan&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="font:17px/24px Baskerville, Cambria, Times, 'Times New Roman', serif;text-align:justify;">I am excited by the ongoing awesome work of our Developer Tools team and have been playing with Firefox&#8217;s new, rapidly improving <a style="color:#e94f1d!important;" href="http://blog.mozilla.com/devtools/2011/05/28/web-console-where-you-want-it-to-be-with-nicer-completion-and-more/" title="Web Console" target="external">Web Console</a>. By default, commands typed into the console run in more or less the scope of the current content window, which is great for web development, but as a Firefox front-end engineer, I often want to use it to hack on Firefox&#8217;s own UI. To make Web Console behave as if it were in the scope of the browser window, simply open <strong>about:</strong> in a new tab, open the Web Console <small>(ctrl/cmd+shift+k)</small>, and paste the following two lines:</p>
<pre style="font:12px/20px Consolas, Menlo, monospace;">Components.utils.import('resource://gre/modules/Services.jsm');
var win = Services.wm.getMostRecentWindow('navigator:browser');</pre>
<p style="font:17px/24px Baskerville, Cambria, Times, 'Times New Roman', serif;text-align:justify;">This makes the variable <code style="font:12px Consolas, Menlo, monospace;">win</code> reference the current Firefox browser window! To see what I mean, try typing the following: <br /><small>(Watch the selected tab in the tab strip when you press enter!)</small></p>
<pre style="font:12px/20px Consolas, Menlo, monospace;">win.gBrowser.selectedTab.style.cssText =
  '-moz-transition: .5s; -moz-transform: scaleX(-1);'</pre>
<p style="font:17px/24px Baskerville, Cambria, Times, 'Times New Roman', serif;text-align:justify;">Happy hacking!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/frankyan.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/frankyan.wordpress.com/138/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankyan.wordpress.com&#038;blog=9379684&#038;post=138&#038;subd=frankyan&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://frankyan.wordpress.com/2011/07/19/hacking-firefox-ui-from-web-console/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/a7553450007a070d5b125e625c9ba333?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frankyan</media:title>
		</media:content>
	</item>
		<item>
		<title>Making tab closing as easy as click, click, click</title>
		<link>http://frankyan.wordpress.com/2010/07/30/making-tab-closing-easy/</link>
		<comments>http://frankyan.wordpress.com/2010/07/30/making-tab-closing-easy/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 07:04:14 +0000</pubDate>
		<dc:creator>frankyan</dc:creator>
				<category><![CDATA[mozilla]]></category>

		<guid isPermaLink="false">http://frankyan.wordpress.com/?p=64</guid>
		<description><![CDATA[The best user interface anticipates actions that you want to perform and never gets in your way. When planning out the new tabbed browsing features for Firefox 4, this principle guided our focus. One of the things we think Google Chrome really nailed is its tab closing behavior: when you close a tab with the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankyan.wordpress.com&#038;blog=9379684&#038;post=64&#038;subd=frankyan&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="font:17px/24px Baskerville, Cambria, Times, 'Times New Roman', serif;text-align:justify;margin-right:-5px;">The best user interface anticipates actions that you want to perform and never gets in your way. When planning out the new tabbed browsing features for Firefox 4, this principle guided our focus. One of the things we think Google Chrome really nailed is its tab closing behavior: when you close a tab with the mouse, the remaining tabs shift or resize so that the next tab’s close tab button moves right under your cursor. This way, you can click the same spot to close the next tab.</p>
<p style="font:17px/24px Baskerville, Cambria, Times, 'Times New Roman', serif;text-align:justify;margin-right:-5px;">Back in December, Basil Safwat wrote a <a style="color:#e94f1d!important;" href="http://www.theinvisibl.com/news/2009/12/08/a-piece-with-a-lot-of-screenshots-about-the-close-tab-behaviour-in-google-chrome/">fantastic piece</a>, full of screenshots, that details these behaviors.</p>
<p style="font:17px/24px Baskerville, Cambria, Times, 'Times New Roman', serif;text-align:justify;margin-right:-5px;">We&#8217;re working on implementing this in Firefox, so it will be super easy to close a whole row of tabs without moving your cursor a pixel:</p>
<p style="font:17px/24px Baskerville, Cambria, Times, 'Times New Roman', serif;text-align:center;"><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='1600' height='930' src='http://www.youtube.com/embed/bMYkzxWB_Rg?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
<p style="font:17px/24px Baskerville, Cambria, Times, 'Times New Roman', serif;text-align:center;"><a style="color:#e94f1d!important;" href="http://youtu.be/bMYkzxWB_Rg?html5=1" target="youtube">[ YouTube HTML5 (if available) ]</a></p>
<p style="font:17px/24px Baskerville, Cambria, Times, 'Times New Roman', serif;text-align:justify;margin-right:-5px;">We are also taking it a step further and including support for the tab overflow mode that Firefox has had for a while. No matter how your tabs scroll and move and resize, you can always count on the close button being in the right location when you need to close them:</p>
<p style="font:17px/24px Baskerville, Cambria, Times, 'Times New Roman', serif;text-align:center;"><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='1600' height='930' src='http://www.youtube.com/embed/tRlyMOkhu6c?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
<p style="font:17px/24px Baskerville, Cambria, Times, 'Times New Roman', serif;text-align:center;"><a style="color:#e94f1d!important;" href="http://youtu.be/tRlyMOkhu6c?html5=1" target="youtube">[ YouTube HTML5 (if available) ]</a></p>
<p style="font:17px/24px Baskerville, Cambria, Times, 'Times New Roman', serif;text-align:justify;margin-right:-5px;">Finally, let&#8217;s talk about a design decision made in Firefox’s earlier days: we placed the tab close buttons on the right side of each tab for all platforms, including OS X. To some people, this seems to break with the design of Apple&#8217;s platform, since Safari and OS X windows have close buttons on the left side instead. (It&#8217;s also worth noting that several of Apple&#8217;s applications have the close button on the right too — iChat, Pages and Automator all do this in <a style="color:#e94f1d!important;" href="http://code.google.com/p/chromium/issues/detail?id=12035#c33">various parts</a> of their UI.)</p>
<p style="font:17px/24px Baskerville, Cambria, Times, 'Times New Roman', serif;text-align:justify;margin-right:-5px;">Now imagine if we put the close buttons on the left. With that configuration, when closing the rightmost tab, we would have to shift the remaining tabs to the right to move the next close button to the same place, leaving an awkward gap on the left side of the tab bar. Placing the close button on the right (for left-to-right locales) is the more intuitive choice.</p>
<p style="font:17px/24px Baskerville, Cambria, Times, 'Times New Roman', serif;text-align:justify;margin-right:-5px;">Another important aspect we have found is that favicons on tabs are the primary way people identify and navigate tabs, so we give them prominent placement.</p>
<p style="font:17px/24px Baskerville, Cambria, Times, 'Times New Roman', serif;text-align:justify;margin-right:-5px;">This optimized close/resize behavior is just one of the many improvements to tabbed browsing we&#8217;re working on. Be sure to check out other new tabbed browsing features in upcoming Firefox 4 betas!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/frankyan.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/frankyan.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankyan.wordpress.com&#038;blog=9379684&#038;post=64&#038;subd=frankyan&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://frankyan.wordpress.com/2010/07/30/making-tab-closing-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/a7553450007a070d5b125e625c9ba333?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frankyan</media:title>
		</media:content>
	</item>
	</channel>
</rss>
