<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.3" -->
<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/"
	>

<channel>
	<title>Dryice Liu's Blog &#187; firefox</title>
	<link>http://dryice.name/blog</link>
	<description></description>
	<pubDate>Tue, 31 Aug 2010 12:01:11 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>
	<language>en</language>
			<item>
		<title>Keyboard Navigation in Firefox</title>
		<link>http://dryice.name/blog/firefox/keyboard-navigation-in-firefox/</link>
		<comments>http://dryice.name/blog/firefox/keyboard-navigation-in-firefox/#comments</comments>
		<pubDate>Thu, 27 Sep 2007 13:53:06 +0000</pubDate>
		<dc:creator>dryice</dc:creator>
		
		<category><![CDATA[extension]]></category>

		<category><![CDATA[firefox]]></category>
<category>config</category><category>emacs</category><category>extension</category><category>firefox</category><category>grease monkey</category><category>mouse</category><category>mouseless</category>
		<guid isPermaLink="false">http://dryice.name/blog/firefox/keyboard-navigation-in-firefox/</guid>
		<description><![CDATA[&#160;
Why
I don&#8217;t think I need to say anything about why we want to use the keyboard over a mouse: All the geeks love it, and it&#8217;s just more efficiency.
However when we come to web visiting, it is not easy to just use our keyboard. Of cause we can use text based browsers like links, w3m, [...]]]></description>
			<content:encoded><![CDATA[<p class="section">&nbsp;</p>
<h2><a href="file:///home/ddliu/liudong/partTime/linuxWritter/keyboard_navigation_in_Firefox.html#id1" title="why" aiotarget="false" aiotitle="Why" class="toc-backref" id="why" name="why">Why</a></h2>
<p>I don&#8217;t think I need to say anything about why we want to use the keyboard over a mouse: All the geeks love it, and it&#8217;s just more efficiency.</p>
<p>However when we come to web visiting, it is not easy to just use our keyboard. Of cause we can use text based browsers like <a href="http://artax.karlin.mff.cuni.cz/%7Emikulas/vyplody/links/" class="reference">links</a>, <a href="http://w3m.sourceforge.net/" aiotitle="w3m" class="reference">w3m</a>, or <a href="http://lynx.isc.org/" aiotitle="lynx" class="reference">lynx</a>, they are totally keyboard driven, but they also missed lots of good stuff on the web: the images, the videos, the cool AJAX thing, etc.</p>
<p>Today we&#8217;ll use the full featured <a href="http://www.mozilla.com/firefox" aiotitle="Firefox" class="reference">Firefox</a>, and make it to be fully comfortable to use with your keyboard.</p>
<p class="section">&nbsp;</p>
<h2><a href="file:///home/ddliu/liudong/partTime/linuxWritter/keyboard_navigation_in_Firefox.html#id2" title="first-things-first-how-to-select-links-with-keyboard" aiotitle="First things first: How to select links with keyboard?" class="toc-backref" id="first-things-first-how-to-select-links-with-keyboard" name="first-things-first-how-to-select-links-with-keyboard">First things first: How to select links with keyboard?</a></h2>
<p>Because the nature of web page design, many designers won&#8217;t pay attention to make their pages suitable for keyboard navigation, for example, many of them won&#8217;t consider tab sequence. So using the tab key hardly work.</p>
<p>One feature that catch many eyes when <a href="http://www.mozilla.com/firefox" class="reference">Firefox</a> was yang is its <a href="http://www.mozilla.org/access/type-ahead/" aiotitle="Find As You Type" class="reference">Find As You Type</a>. You can type in a string in an active <a href="http://www.mozilla.com/firefox" class="reference">Firefox</a> window, and Firefox will find the phase you typed in the page. You can set if you want to find in all the text or in the links only. One trick: If you type a <strong>&#8216;</strong> before type in other characters, <a href="http://www.mozilla.com/firefox" aiotitle="Firefox" class="reference">Firefox</a> will only find <em>links</em> with that phase in (We&#8217;ll find out why this is handy later). So, we can easily locate links that are marked as a text.</p>
<p>However, what about the links with an image? For example the many menu systems on the web? First we will need to mark the links with some characters, and then we&#8217;ll type in the characters to choose the link. There are some <a href="http://www.mozilla.com/firefox" class="reference">Firefox</a> extensions can do this, and from my point of view, <a href="http://hah.mozdev.org/" class="reference">HaH</a> is the best.</p>
<p><a href="http://hah.mozdev.org/" class="reference">HaH</a> is a short for &#8220;Hit a Hint&#8221;. And it will allow you to hit a hint <img src='http://dryice.name/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>There are two modes in <a href="http://hah.mozdev.org/" class="reference">HaH</a>: the normal mode, and the magic mode.</p>
<p>For normal mode, you can hit the <strong>H</strong> key, and all click-able stuff will be marked with some numbers and characters. You can type in the characters on the link you want to follow, seeing the mark got highlighted. And then you can hit the <strong>RET</strong> key to follow that link. If you find out you made a typo, don&#8217;t worry, just type <strong>H</strong> again and all the marks will disappear. You can enable them again and type in the correct one.</p>
<p>For magic mode, you can just hit the magic key (<strong>SPACE</strong> by default) and hold it, again the marks will appear, now you can type in the characters while holding the magic key, and when you release the magic key, the current link, which is highlighted, is followed. This takes less key strokes and I find it quite comfortable.</p>
<p>Besides the magic key, another feature makes <a href="http://hah.mozdev.org/" class="reference">HaH</a> the best is that we can configure what characters will be used for the mark. Others might just use the number keys, or maybe use the numpad. However number keys are hard to type, and some times, for example, when you are on a notebook, you don&#8217;t have a numpad. My personal favorite is &#8220;asdfqwer&#8221;, which are on the main area of the left hand. So I can hit the magic key with right hand, hit the hint with little move of my fingers, optionally hold the <em>ctrl</em> key for open in new tab, and finally release the magic key to follow the link.</p>
<p>Another reason to choose <a href="http://hah.mozdev.org/" class="reference">HaH</a> is its efficiency: most others will mark all the links in the page. <a href="http://hah.mozdev.org/" class="reference">HaH</a> will only mark those that are visible. This makes <a href="http://hah.mozdev.org/" class="reference">HaH</a> more efficient in two ways:</p>
<blockquote>
<ul class="simple">
<li>Marking part of all the links takes less time, this is significant when viewing large documents, like a manual.</li>
<li>The marks use less letters, which results in less key strokes. Take my &#8220;asdfqwer&#8221; as an example, The first eight links visible will always be marked with only one letter, and the following 56 links will be marked with two letters. I seldom need to type three letters to find a link and never used four.</li>
</ul>
</blockquote>
<p class="section">&nbsp;</p>
<h2><a href="file:///home/ddliu/liudong/partTime/linuxWritter/keyboard_navigation_in_Firefox.html#id3" title="make-it-more-comfortable-next-please" class="toc-backref" id="make-it-more-comfortable-next-please" name="make-it-more-comfortable-next-please">Make it more comfortable: Next Please!</a></h2>
<p>Having keys for all the link is cool, but sometimes we want more: For example, when we are on Google or some sites that split a long article to several pages, most time we just want the &#8220;next page&#8221; link. And well, some times the &#8220;previous&#8221; page <img src='http://dryice.name/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>And <a href="http://nextplease.mozdev.org/" class="reference">NextPlease</a> is exactly what we want. By default it can find the right <em>next</em> link on many sites, and if it didn&#8217;t find one for you, simply right click on the link and select &#8220;mark as next&#8221; and it will learn what to do, and remember it. So the next time you are on this site, you are all set <img src='http://dryice.name/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>It is extremely useful when reading documents, specially those auto generated. You can almost read with only one finger.</p>
<p class="section">&nbsp;</p>
<h2><a href="file:///home/ddliu/liudong/partTime/linuxWritter/keyboard_navigation_in_Firefox.html#id4" title="and-the-neighbors-what-other-choice-do-we-have" class="toc-backref" id="and-the-neighbors-what-other-choice-do-we-have" name="and-the-neighbors-what-other-choice-do-we-have">And the neighbors: What other choice do we have?</a></h2>
<p>If you like the build in <a href="http://www.mozilla.org/access/type-ahead/" class="reference">Find As You Type</a> way, you may find yourself typing <em>Ctrl-g</em> (for find-next) many times. For this <a href="https://addons.mozilla.org/en-US/firefox/addon/2283" class="reference">Unique Link Names</a> could help you. It will add two random characters at the beginning of non-unique links or similar link names. This makes the page a little ugly, but keyboard navigation with <a href="http://www.mozilla.org/access/type-ahead/" class="reference">Find As You Type</a> becomes quite efficient.</p>
<p>As we said above, there are other extensions that works like <a href="http://hah.mozdev.org/" class="reference">HaH</a>:</p>
<blockquote>
<ul class="simple">
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/2317" class="reference">NumberFox</a> mark the links with numbers</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/879" class="reference">Mouseless Browsing</a> makes good use of the numpad</li>
</ul>
</blockquote>
<p>Just try them out and see if you like them.</p>
<p class="section">&nbsp;</p>
<h2><a href="file:///home/ddliu/liudong/partTime/linuxWritter/keyboard_navigation_in_Firefox.html#id5" title="make-it-your-way-use-keyconfig-to-configure-your-own-key-bindings" class="toc-backref" id="make-it-your-way-use-keyconfig-to-configure-your-own-key-bindings" name="make-it-your-way-use-keyconfig-to-configure-your-own-key-bindings">Make it your way: use keyconfig to configure your own key bindings</a></h2>
<p>Well if you are really a keyboard lover, after settle down the problem of selecting links, you&#8217;ll want to do everything with your keyboard: calling menu items, switch to the next tab, etc, and customize the default key bindings to fit your style.</p>
<p>For this, <a href="http://extensionroom.mozdev.org/more-info/keyconfig" class="reference">keyconfig</a> is a must. After installing it and restarting <a href="http://www.mozilla.com/firefox" class="reference">Firefox</a>, press <em>Ctrl-Shift-F12</em> and the main configure window will show up. Here you can find all the functions that are available for a shortcut. You can assign new key bindings to a function, resolve shortcut conflicts (a primary reason &#8220;why this keyboard shortcut won&#8217;t work for me&#8221;), and even write your own functions and assign a key shortcut for it. This, makes <a href="http://www.mozilla.com/firefox" class="reference">Firefox</a> catch up the customization level of <a href="http://www.gnu.org/software/emacs/" class="reference">Emacs</a>, just with Javascript instead of elisp <img src='http://dryice.name/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p class="section">&nbsp;</p>
<h2><a href="file:///home/ddliu/liudong/partTime/linuxWritter/keyboard_navigation_in_Firefox.html#id6" title="keyconfig-friends-functions-for-keyconfig-and-surfkeys" class="toc-backref" id="keyconfig-friends-functions-for-keyconfig-and-surfkeys" name="keyconfig-friends-functions-for-keyconfig-and-surfkeys">Keyconfig friends: Functions for keyconfig and surfkeys</a></h2>
<p>Well <a href="http://extensionroom.mozdev.org/more-info/keyconfig" class="reference">keyconfig</a> is good, sometimes some &#8220;common&#8221; functions are not build in. Don&#8217;t worry, you won&#8217;t need to do Javascript programming if all you want is the &#8220;common&#8221; ones. There a two extensions that are best friends of <a href="http://extensionroom.mozdev.org/more-info/keyconfig" class="reference">keyconfig</a>: they provide the most commonly used functions with rarely used keyboard shortcuts, so you can assign the keyboard shortcuts you like to the functions you want, easy, just as any other build in functions. And they are: <a href="https://addons.mozilla.org/en-US/firefox/addon/1537" class="reference">functions for keyconfig</a> and <a href="http://surfkeys.mozdev.org/" class="reference">surfkeys</a>.</p>
<p>In the <a href="http://extensionroom.mozdev.org/more-info/keyconfig" class="reference">keyconfig</a> main menu, you can sort the functions with their names (the first column). All functions from <a href="https://addons.mozilla.org/en-US/firefox/addon/1537" class="reference">functions for keyconfig</a> start with <em>f4kc_</em> and those from <a href="http://surfkeys.mozdev.org/" class="reference">surfkeys</a> start with <em>sk</em>. Note there are some duplicates from these two, you can use either one you like. Or, you can set different shortcuts to similar functions, for example, <strong>j</strong> for <strong>skScrollDown</strong> and <strong>Ctrl-n</strong> for <strong>f4kc_ScrollLineDown</strong>, so both <a href="http://www.gnu.org/software/emacs/" class="reference">Emacs</a> users and <a href="http://www.vim.org/" class="reference">VI</a> users are happy <img src='http://dryice.name/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p class="section">&nbsp;</p>
<h2><a href="file:///home/ddliu/liudong/partTime/linuxWritter/keyboard_navigation_in_Firefox.html#id7" title="and-more-for-keyconfig-some-more-functions" class="toc-backref" id="and-more-for-keyconfig-some-more-functions" name="and-more-for-keyconfig-some-more-functions">And more for Keyconfig: some more functions</a></h2>
<p>And finally, if you still didn&#8217;t find the right function you want, you may need to start doing Javascript programming. But before that, here is a list of what I&#8217;ve got. Some were written from scratch, and some were copied or modified from the Internet.</p>
<p>This will focus the content, in case you don&#8217;t know where the keyboard focus is:</p>
<div style="font-family: monospace;font-size: 110%; color: #000066; border: 1px solid orange; margin: 5px; padding: 5px; background-color: #ffffff;">_content.focus();</div>
<p>This will paste what is in the clipboard into the location bar, open it in a new tab, and focus on that tab:</p>
<div style="font-family: monospace;font-size: 110%; color: #000066; border: 1px solid orange; margin: 5px; padding: 5px; background-color: #ffffff;">var paste = readFromClipboard();<br />
if(!paste) return;<br />
gBrowser.selectedTab = gBrowser.addTab(paste);</div>
<p>If you don&#8217;t want to focus on the new tab, use this one:</p>
<div style="font-family: monospace;font-size: 110%; color: #000066; border: 1px solid orange; margin: 5px; padding: 5px; background-color: #ffffff;">var paste = readFromClipboard();<br />
if(!paste) return;<br />
gBrowser.addTab(paste);</div>
<p>In the <a href="http://www.mozilla.com/firefox" class="reference">Firefox</a> options dialog you can choose if you want to focus on the tab to the right of the current one or the last visited one after closing a tab. This snip will focus on the one to the left of the closed one:</p>
<div style="font-family: monospace;font-size: 110%; color: #000066; border: 1px solid orange; margin: 5px; padding: 5px; background-color: #ffffff;">var tab = gBrowser.mCurrentTab;<br />
if(tab.previousSibling) gBrowser.mTabContainer.selectedIndex&#8211;; gBrowser.removeTab(tab);</div>
<p>The following four will move the location of the current tab, on the tab bar list, useful if you have a lot of tabs and want to organize them.</p>
<p>To the end:</p>
<div style="font-family: monospace;font-size: 110%; color: #000066; border: 1px solid orange; margin: 5px; padding: 5px; background-color: #ffffff;">gBrowser.moveTabTo(gBrowser.mCurrentTab,gBrowser.mTabContainer.childNodes.length-1);</div>
<p>To the beginning:</p>
<div style="font-family: monospace;font-size: 110%; color: #000066; border: 1px solid orange; margin: 5px; padding: 5px; background-color: #ffffff;">gBrowser.moveTabTo(gBrowser.mCurrentTab,0);</div>
<p>To the left:</p>
<div style="font-family: monospace;font-size: 110%; color: #000066; border: 1px solid orange; margin: 5px; padding: 5px; background-color: #ffffff;">if(gBrowser.mCurrentTab.previousSibling) gBrowser.moveTabTo(gBrowser.mCurrentTab,gBrowser.mCurrentTab._tPos-1);</div>
<p>And to the right:</p>
<div style="font-family: monospace;font-size: 110%; color: #000066; border: 1px solid orange; margin: 5px; padding: 5px; background-color: #ffffff;">if(gBrowser.mCurrentTab.nextSibling) gBrowser.moveTabTo(gBrowser.mCurrentTab,gBrowser.mCurrentTab._tPos+1);</div>
<p>And if you are using <a href="http://m4ng0.lilik.it/separe.php" class="reference">Separe</a> to help organizing your tabs, this will open a new <a href="http://m4ng0.lilik.it/separe.php" class="reference">Separe</a> for you:</p>
<div style="font-family: monospace;font-size: 110%; color: #000066; border: 1px solid orange; margin: 5px; padding: 5px; background-color: #ffffff;">SepareBrowserOverlay.newSepare();</div>
<p class="section">&nbsp;</p>
<h2><a href="file:///home/ddliu/liudong/partTime/linuxWritter/keyboard_navigation_in_Firefox.html#id8" title="deal-with-the-forms-mozex" aiotitle="Deal with the forms: Mozex" class="toc-backref" id="deal-with-the-forms-mozex" name="deal-with-the-forms-mozex">Deal with the forms: Mozex</a></h2>
<p>Nowadays the web becomes more and more interactive, and we need to fill more and more forms. Though we can use <em>DEL</em>, <em>backspace</em>, and arrow keys to do basic editing there, the textarea are always too small to be comfortable with and don&#8217;t have those cool shortcut keys we like.</p>
<p>Note: for <a href="http://www.gnu.org/software/emacs/" class="reference">Emacs</a> users on a Unix like system: put the following two lines (You may need to change the path name of the first line to fit your system):</p>
<div style="font-family: monospace;font-size: 110%; color: #000066; border: 1px solid orange; margin: 5px; padding: 5px; background-color: #ffffff;">include &quot;/usr/local/share/themes/Emacs/gtk-2.0-key/gtkrc&quot;<br />
gtk-key-theme-name = &quot;Emacs&quot;</div>
<p>into your <em>~/.gtkrc-2.0</em> file and you could get some familiar key bindings in the testarea. But what about all the other users?</p>
<p><a href="http://mozex.mozdev.org/" class="reference">Mozex</a> is an extension that can call external programs within <a href="http://www.mozilla.com/firefox" class="reference">Firefox</a>. We will just use its ability to handle textarea here: Open the setup dialog of <a href="http://mozex.mozdev.org/" class="reference">Mozex</a> and go to the <em>Textarea</em> tab, here you can specify your favorite editor, and among many other options, you can set the hotkey for it.</p>
<p>Now if you want to write a loooong comment, just press that hotkey, and your favorite editor will show up and all your facilities are there. If you do a <em>save</em> in your editor, all what you have right now will appear in the textarea. And if you close the newly opened document in your editor, everything will be in the textarea too.</p>
<p>To make this more convenience, if there are more than one textarea in the page, <a href="http://mozex.mozdev.org/" aiotitle="Mozex" class="reference">Mozex</a> will popup a window with names of all of them, and you can choose one with the arrow keys and <em>RET</em>. No mouse is needed, everything is handled <img src='http://dryice.name/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p class="section">&nbsp;</p>
<h2><a href="file:///home/ddliu/liudong/partTime/linuxWritter/keyboard_navigation_in_Firefox.html#id9" title="the-new-way-to-use-bookmark-my-portal" aiotitle="The new way to use bookmark: My Portal" class="toc-backref" id="the-new-way-to-use-bookmark-my-portal" name="the-new-way-to-use-bookmark-my-portal">The new way to use bookmark: My Portal</a></h2>
<p>Everyone uses the bookmark system. However, navigating the bookmarks with the arrow keys is a suffer, especially if you have a lot of bookmarks.</p>
<p>One trick is that you can type the first letter of the bookmark name, <a href="http://www.mozilla.com/firefox" class="reference">Firefox</a> will find the first bookmark matched. And if you hit the same letter again, the second match is focused.</p>
<p>Another trick is to use the search function of the bookmark sidebar, activated by <strong>Ctrl-B</strong> by default. You can quickly find the bookmark with the keyword you want. If there are several bookmark matched, you can hit <strong>TAB</strong> once and then use the arrow keys to select the one you want.</p>
<p>However, sometimes, those are just not enough&#8230; <a href="http://myportal.mozdev.org/" class="reference">My Portal</a> comes handy if that&#8217;s what you think <img src='http://dryice.name/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://myportal.mozdev.org/" class="reference">My Portal</a> will make a web page, a live web page, from all your bookmarks. Just type in <strong>myportal://</strong> in the location bar and you are there. On this page you can select folders, sub-folders, and bookmarks. All the tools we talked about in <a href="file:///home/ddliu/liudong/partTime/linuxWritter/keyboard_navigation_in_Firefox.html#first-things-first-how-to-select-links-with-keyboard" class="reference">First things first: How to select links with keyboard?</a> works here. So, feel at home <img src='http://dryice.name/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p class="section">&nbsp;</p>
<h2><a href="file:///home/ddliu/liudong/partTime/linuxWritter/keyboard_navigation_in_Firefox.html#id10" title="greasmoney-scripts-to-make-the-life-more-easier-linkify-plus-googleautopager-and-pagerization" aiotitle="GreasMoney scripts to make the life more easier: Linkify Plus, GoogleAutoPager, and pagerization" class="toc-backref" id="greasmoney-scripts-to-make-the-life-more-easier-linkify-plus-googleautopager-and-pagerization" name="greasmoney-scripts-to-make-the-life-more-easier-linkify-plus-googleautopager-and-pagerization">GreasMoney scripts to make the life more easier: Linkify Plus, GoogleAutoPager, and pagerization</a></h2>
<p><a href="http://www.greasespot.net/" class="reference">GreasMonkey</a> is, well, Grease Monkey <img src='http://dryice.name/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> It allows you to customize the way webpages look and function. (from the official web site). It is another extension that makes <a href="http://www.mozilla.com/firefox" class="reference">Firefox</a> catch up the customization level of <a href="http://www.gnu.org/software/emacs/" class="reference">Emacs</a>.</p>
<p>Among the several thousands scripts available, lots of them can help our <a href="http://www.mozilla.com/firefox" class="reference">Firefox</a> life with keyboard. Here are two that I find useful:</p>
<blockquote>
<ul>
<li>
<p class="first"><a href="http://userscripts.org/scripts/show/1352" class="reference">Linkify Plus</a> will make URLs in plain text into links. That is, this text:</p>
<div style="font-family: monospace;font-size: 110%; color: #000066; border: 1px solid orange; margin: 5px; padding: 5px; background-color: #ffffff;">http://www.mozilla.com/firefox</div>
<p>is an URL, but you can&#8217;t click it with a mouse or follow it with the keyboard, cause this is not a link. <a href="http://userscripts.org/scripts/show/1352" class="reference">Linkify Plus</a> will search the whole page, and make anything like this into a link. So again, all the tools we talked about in <a href="file:///home/ddliu/liudong/partTime/linuxWritter/keyboard_navigation_in_Firefox.html#first-things-first-how-to-select-links-with-keyboard" class="reference">First things first: How to select links with keyboard?</a> are available. And we can easily follow this URL with our keyboard.</li>
<li>
<p class="first"><a href="http://userscripts.org/scripts/show/4287" class="reference">GoogleAutoPager</a>, and <a href="http://userscripts.org/scripts/show/7623" class="reference">pagerization</a> are doing the same thing: Instead of making the next page available with a key stroke, like what <a href="http://nextplease.mozdev.org/" class="reference">NextPlease</a> does, they automatically fetch the next page, and append it at the end of the current page. So when you are scrolling down, no matter what keyboard shortcut you are using, the next page just shows up <img src='http://dryice.name/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The difference between these two is that <a href="http://userscripts.org/scripts/show/4287" aiotitle="GoogleAutoPager" class="reference">GoogleAutoPager</a><span> only works on <a href="http://google.com/">google.com,</a> and </span><a href="http://userscripts.org/scripts/show/7623" class="reference">pagerization</a> works on many other sites. You are fine most of the time if you only use <a href="http://userscripts.org/scripts/show/7623" aiotitle="pagerization" class="reference">pagerization</a>, however if you also use some of the <a href="http://www.google.com/experimental/" class="reference">Google experimental</a> features, well, at least for now, you&#8217;ll need <a href="http://userscripts.org/scripts/show/4287" aiotitle="GoogleAutoPager" class="reference">GoogleAutoPager</a> too.</li>
</ul>
</blockquote>
<p class="section">&nbsp;</p>
<h2><a href="file:///home/ddliu/liudong/partTime/linuxWritter/keyboard_navigation_in_Firefox.html#id11" title="to-make-these-all-together" class="toc-backref" id="to-make-these-all-together" name="to-make-these-all-together">To make these all together</a></h2>
<p>OK, after making all these tools together, now with <a href="http://www.mozilla.com/firefox" class="reference">Firefox</a>, we can follow links, access functions, use bookmarks, arrange tabs, and we have many tricks to make our web life with keyboard easier.</p>
<p>Now the only thing left is how to do <strong>Right Click</strong> with keyboard. Crazy? <strong>Shift-F10</strong> will do some help on most systems, but it is not context sensitive, that is, it won&#8217;t take where the mouse pointer or keyboard focus is into consideration. If you know a solution, please let me know <img src='http://dryice.name/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<hints id="hah_hints"></hints></p>
<p class="akst_link"><a href="http://dryice.name/blog/?p=851&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_851" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://dryice.name/blog/firefox/keyboard-navigation-in-firefox/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Firefox: view source in your favorite editor</title>
		<link>http://dryice.name/blog/firefox/extension/firefox-view-source-in-your-favorite-editor/</link>
		<comments>http://dryice.name/blog/firefox/extension/firefox-view-source-in-your-favorite-editor/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 02:55:41 +0000</pubDate>
		<dc:creator>dryice</dc:creator>
		
		<category><![CDATA[extension]]></category>

		<guid isPermaLink="false">http://dryice.name/blog/uncategorized/firefox-view-source-in-your-favorite-editor/</guid>
		<description><![CDATA[There is a nice tip about how to change the default source viewer to your favorite editor on   http://ffextensionguru.wordpress.com. And if you want to keep the default view, but use your favorite editor in another time, you are not along:
Just go and get the web developer plugin. And go to options-&#62;options in the [...]]]></description>
			<content:encoded><![CDATA[<p>There is a <a href="http://ffextensionguru.wordpress.com/2007/08/14/tip-change-default-text-editor-in-fx/">nice tip</a> about how to change the default source viewer to your favorite editor on   http://ffextensionguru.wordpress.com. And if you want to keep the default view, but use your favorite editor in another time, you are not along:</p>
<p>Just go and get the <a href="http://chrispederick.com/work/web-developer/">web developer plugin</a>. And go to options-&gt;options in the web developer toolbar. In the &#8220;view source&#8221; tab, there is a &#8220;view source with&#8221; field. Here you can define as many editors as you like, and have shortcut keys for them.</p>
<p>Nice? They are also available in the &#8220;view source&#8221; button on the web developer toolbar <img src='http://dryice.name/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><hints id="hah_hints"><span id="hah_hint_79" name="hah_hint" style="border: 1px solid buttonshadow; padding: 0px 3px; z-index: 500; font-family: helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: x-small; line-height: normal; font-size-adjust: none; font-stretch: normal; color: buttontext; background-color: buttonface; -moz-border-radius-topleft: 0.3em; -moz-border-radius-topright: 0.3em; -moz-border-radius-bottomright: 0.3em; -moz-border-radius-bottomleft: 0.3em; position: absolute; display: inline; top: 9px; left: 82px">SSR</span><span id="hah_hint_80" name="hah_hint" style="border: 1px solid buttonshadow; padding: 0px 3px; z-index: 500; font-family: helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: x-small; line-height: normal; font-size-adjust: none; font-stretch: normal; color: buttontext; background-color: buttonface; -moz-border-radius-topleft: 0.3em; -moz-border-radius-topright: 0.3em; -moz-border-radius-bottomright: 0.3em; -moz-border-radius-bottomleft: 0.3em; position: absolute; display: inline; top: 87px; left: 145px">SDA</span></hints></p>
<p class="akst_link"><a href="http://dryice.name/blog/?p=837&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_837" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://dryice.name/blog/firefox/extension/firefox-view-source-in-your-favorite-editor/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Google left hand search navigation</title>
		<link>http://dryice.name/blog/firefox/google-left-hand-search-navigation/</link>
		<comments>http://dryice.name/blog/firefox/google-left-hand-search-navigation/#comments</comments>
		<pubDate>Sat, 19 May 2007 13:11:00 +0000</pubDate>
		<dc:creator>dryice</dc:creator>
		
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://dryice.name/wordpress/index.php/uncategorized/google-left-hand-search-navigation/</guid>
		<description><![CDATA[Google Experimental Search is a good place to find interesting things
if you are using Google. And today I found their left-hand search
navigation is interesting. As the name suggested, it added a navigator
on the left, so we can easily search in blog, news, etc.
And many people using Firefox are using the quick search. To add this
feature [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.google.com/experimental/">Google Experimental Search</a> is a good place to find interesting things<br />
if you are using Google. And today I found their left-hand search<br />
navigation is interesting. As the name suggested, it added a navigator<br />
on the left, so we can easily search in blog, news, etc.</p>
<p>And many people using Firefox are using the quick search. To add this<br />
feature to the quick search, just add<br />
&#8220;esrch=RefinementBarLhsGradientPreview&amp;&#8221; to the Location. For me,<br />
currently it is like this:</p>
<p><a href="http://www.google.com/search?esrch=RefinementBarLhsGradientPreview&amp;q=%s&amp;hl=en&amp;lr=&amp;newwindow=1&amp;safe=off&amp;rls=org.mozilla%3Aen-US%3Aofficial">http://www.google.com/search?esrch=RefinementBarLhsGradientPreview&amp;q=%s&amp;hl=en&amp;lr=&amp;newwindow=1&amp;safe=off&amp;rls=org.mozilla%3Aen-US%3Aofficial</a></p>
<p>So, quick access to the left navigator. And there is right hand<br />
navigator too.</p>
<p><hints id="hah_hints"></hints></p>
<p class="akst_link"><a href="http://dryice.name/blog/?p=627&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_627" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://dryice.name/blog/firefox/google-left-hand-search-navigation/feed/</wfw:commentRss>
		</item>
		<item>
		<title>google feeling lucky</title>
		<link>http://dryice.name/blog/firefox/google-feeling-lucky/</link>
		<comments>http://dryice.name/blog/firefox/google-feeling-lucky/#comments</comments>
		<pubDate>Mon, 31 Jul 2006 01:53:00 +0000</pubDate>
		<dc:creator>dryice</dc:creator>
		
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://dryice.name/wordpress/index.php/uncategorized/google-feeling-lucky/</guid>
		<description><![CDATA[Firefox has the google feeling lucky feature build in. For example, if I type &#8220;freebsd amd64&#8243; in the address bar, it will bring me to the FreeBSD amd64 project page, and if I type &#8220;fvwm manual&#8221; in the address bar, it will bring me to the FVWM manual page.
This is, because when Firefox find out [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://dryice.name/blog/firefox/index.html">Firefox</a> has the google feeling lucky feature build in. For example, if I type &#8220;freebsd amd64&#8243; in the address bar, it will bring me to the <a href="http://www.freebsd.org/platforms/amd64.html">FreeBSD amd64 project</a> page, and if I type &#8220;fvwm manual&#8221; in the address bar, it will bring me to the <a href="http://www.fvwm.org/documentation/manpages/unstable/fvwm.php" aiotitle="FVWM manual">FVWM manual</a> page.</p>
<p>This is, because when <a href="http://dryice.name/blog/firefox/index.html">Firefox</a> find out what I type is not an URL (there&#8217;s space in it), it will look the string as search keyword and return me the result of the google feeling lucky feature. Most of the time this is what we want.</p>
<p>And to make firefox start this feature, you&#8217;ll need to make the input like a search string, or don&#8217;t like an URL. For example, if you input &#8220;internet&#8221;, firefox will add &#8220;www.&#8221; as prefix and &#8220;.com&#8221;, &#8220;.org&#8221;, or &#8220;.net&#8221; etc as postfix (depending on your settings) and won&#8217;t send this to google. Adding two or more kewords seperated by a space is the most comfortable thing. And if you are a Non-English user like me, you can try type in your language. For me, If I type &#8220;北京&#8221; (The Chinese words for BeiJing, the captial of China), it will bring me to <a href="http://www.beijing.gov.cn/">http://www.beijing.gov.cn/</a>. Pretty good match.</p>
<p>And finially, for the tech stuff, according to <a href="http://kb.mozillazine.org/Firefox_:_FAQs_:_About:config_Entries">this page</a>, these two about:config settings are related:</p>
<dl>
<dt><strong>keyword.URL</strong></dt>
<dd>URL to use for keyword lookups. Default value is <a href="http://www.google.com/search?btnI=I%27m+Feeling+Lucky&amp;ie=UTF-8&amp;oe=UTF-8&amp;q=">http://www.google.com/search?btnI=I%27m+Feeling+Lucky&amp;ie=UTF-8&amp;oe=UTF-8&amp;q=</a> in Firefox 1.0.</dd>
<dt><strong>keyword.enabled</strong></dt>
<dd>Determines whether to use keywords True (default): Send non-URLs entered in the Location Bar to the URL specified in keyword.URL False: Disable keywords</dd>
</dl>
<p>So this is on by default. Of cause if you don&#8217;t like the feeling lucky feature and want to see the list of search result, you can go and change the URL, or even switch to another search engine. Personaly I have quick search for google bind to &#8220;g&#8221; so I can archive the search result list by &#8220;g fvwm manual&#8221; in the address bar, and this combination makes me &#8220;feeling lucky&#8221; <img src='http://dryice.name/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><hints id="hah_hints"></hints></p>
<p class="akst_link"><a href="http://dryice.name/blog/?p=674&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_674" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://dryice.name/blog/firefox/google-feeling-lucky/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Just like Emacs</title>
		<link>http://dryice.name/blog/firefox/just-like-emacs/</link>
		<comments>http://dryice.name/blog/firefox/just-like-emacs/#comments</comments>
		<pubDate>Tue, 11 Jul 2006 05:06:00 +0000</pubDate>
		<dc:creator>dryice</dc:creator>
		
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://dryice.name/wordpress/index.php/uncategorized/just-like-emacs/</guid>
		<description><![CDATA[With extensions Firefox is really customizable. But writing extensions is not easy: We&#8217;ll need to learn a lot of things like XUL.
The good news is, with key config and grease monkey, easy scripting like in Emacs is possible.
Grease Monkey allows several script to run when the current domain match a regrexp, which is perfect for [...]]]></description>
			<content:encoded><![CDATA[<p>With extensions <a href="http://dryice.name/blog/firefox/index.html">Firefox</a> is really customizable. But writing extensions is not easy: We&#8217;ll need to learn a lot of things like XUL.</p>
<p>The good news is, with <a href="http://forums.mozillazine.org/viewtopic.php?t=72994">key config</a> and <a href="http://forums.mozillazine.org/viewtopic.php?t=72994">grease monkey</a>, easy scripting like in <a href="http://dryice.name/blog/emacs/index.html">Emacs</a> is possible.</p>
<p>Grease Monkey allows several script to run when the current domain match a regrexp, which is perfect for non-interactive usage like highlight the search terms.</p>
<p>However some of the grease monkey scripts are urgly: I&#8217;d have a script that fill up a form if I hit a key. And when I look at the code, it hooks to every key-release event. And if you have lots of this kind of script, it will slow down your <a href="http://dryice.name/blog/firefox/index.html">Firefox</a>. And this is where <a href="http://forums.mozillazine.org/viewtopic.php?t=72994">key config</a> comes. I&#8217;ve blog it several times. However, besides re-map the key bindings, it allows us to write our own script and assign a key to it, and/or call a function of another extension.</p>
<p>For example, I discovered the &#8220;freeze tab&#8221; from <a href="http://tmp.garyr.net/">tab min plus</a> today. And a single line</p>
<div style="font-family: monospace;font-size: 110%; color: #000066; border: 1px solid orange; margin: 5px; padding: 5px; background-color: #ffffff;">user_pref(&quot;keyconfig.main.xxx_key__ddliu_freeze_tab&quot;, &quot;alt shift][P][][/* CODE */\ngBrowser.freezeTab(gBrowser.mCurrentTab);][&quot;);</div>
<p>in prefs.js makes it easy to toggle by Alt-Shift-p. Really handy.</p>
<p>The only thing left is mouse customize. <a href="http://dryice.name/blog/firefox/extension/conquer_plus_drag_de_go.html">conquer plus drag de go</a> could do something, but it use it&#8217;s own script and is only for search things around. <a href="http://perso.orange.fr/marc.boullet/index.html">All in one gesture</a> may support scripting in the future release. I saw a &#8220;add gesture&#8221; inactived button in the interface. Anyway I&#8217;m a keyboard user and this doesn&#8217;t hurt me that much <img src='http://dryice.name/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><hints id="hah_hints"></hints></p>
<p class="akst_link"><a href="http://dryice.name/blog/?p=677&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_677" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://dryice.name/blog/firefox/just-like-emacs/feed/</wfw:commentRss>
		</item>
		<item>
		<title>conquer plus drag de go</title>
		<link>http://dryice.name/blog/firefox/extension/conquer-plus-drag-de-go/</link>
		<comments>http://dryice.name/blog/firefox/extension/conquer-plus-drag-de-go/#comments</comments>
		<pubDate>Thu, 06 Jul 2006 03:41:00 +0000</pubDate>
		<dc:creator>dryice</dc:creator>
		
		<category><![CDATA[extension]]></category>

		<guid isPermaLink="false">http://dryice.name/wordpress/index.php/uncategorized/conquer-plus-drag-de-go/</guid>
		<description><![CDATA[Well there are many context sensitive search plugin available for Firefox, I won&#8217;t use most of them because my context menu is pretty long even after Menu Editor tweaks. So I&#8217;d use web search pro. The thing I like most about this plug in is that I can drag my selection a little bit, and [...]]]></description>
			<content:encoded><![CDATA[<p>Well there are many context sensitive search plugin available for <a href="http://dryice.name/blog/firefox/index.html">Firefox</a>, I won&#8217;t use most of them because my context menu is pretty long even after <a href="http://menueditor.mozdev.org/">Menu Editor</a> tweaks. So I&#8217;d use <a href="http://www.captaincaveman.nl/">web search pro</a>. The thing I like most about this plug in is that I can drag my selection a little bit, and a &#8220;drag &amp; drop zone&#8221; will show up and I can just release my mouse, and <a href="http://dryice.name/blog/firefox/index.html">Firefox</a> will search my selection. And there are 16 zones all together so I can select if I want to search through google or the mozilla addon site.</p>
<p>However I found <a href="http://bushwhacker.seesaa.net/article/19469307.html">drag de go</a> and <a href="https://addons.mozilla.org/firefox/231/">conquer</a> together could do a better job: &#8220;drag de go&#8221; is a folk and enhanced version of &#8220;super drag and go&#8221;. Needless to see this adds a lot of drag stuff. And one best thing is, it now support mouse gestures and can invoke conquer. So now with my current config, I can select some text, drag that to the left, and the conquer hot menu will show up and I can select which search engine I want to search my selection with. Though I&#8217;m a keyboard user, this mouse thing is really handy <img src='http://dryice.name/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Here are 2 conquer plugins I just made. I also have them in the quick search bookmark:</p>
<ul>
<li><a href="http://dryice.name/wordpress/wp-content/uploads/2006/07/addons.cqr">search the firefox addon</a></li>
<li><a href="http://dryice.name/wordpress/wp-content/uploads/2006/07/baidump3.cqr">search baidu for MP3</a> (Chinese)</li>
</ul>
<p>usage: download the files and copy them to your firefox searchplugin directory, and&#8230;. enjoy <img src='http://dryice.name/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><hints id="hah_hints"></hints></p>
<p class="akst_link"><a href="http://dryice.name/blog/?p=678&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_678" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://dryice.name/blog/firefox/extension/conquer-plus-drag-de-go/feed/</wfw:commentRss>
		</item>
		<item>
		<title>tab switching</title>
		<link>http://dryice.name/blog/firefox/extension/tab-switching/</link>
		<comments>http://dryice.name/blog/firefox/extension/tab-switching/#comments</comments>
		<pubDate>Fri, 23 Jun 2006 04:54:00 +0000</pubDate>
		<dc:creator>dryice</dc:creator>
		
		<category><![CDATA[extension]]></category>

		<guid isPermaLink="false">http://dryice.name/wordpress/index.php/uncategorized/tab-switching/</guid>
		<description><![CDATA[Tabed browsing is one of the most outstanding feauter from Firefox over IE. So here&#8217;s how I switch tabs:

Most of the time I just swith to the left or right tab. I use the f4kc_NextTab and f4kc_PrevTab from the functions 4 Key Config extension.
When I have some more tabs, I use the switch tab function [...]]]></description>
			<content:encoded><![CDATA[<p>Tabed browsing is one of the most outstanding feauter from Firefox over IE. So here&#8217;s how I switch tabs:</p>
<ul>
<li>Most of the time I just swith to the left or right tab. I use the f4kc_NextTab and f4kc_PrevTab from the <a href="http://www.pqrs.org/~tekezo/firefox/extensions/functions_for_keyconfig/">functions 4 Key Config</a> extension.</li>
<li>When I have some more tabs, I use the switch tab function from the <a href="http://tmp.garyr.net/">Tab min Plus</a> extension. This shows a smll window with the title of tabs and I can select by C-tab and C-S-tab. Like in opera or Alt-tab on Windows OS. I configured it to sort by visit order so it matches my <a href="http://www.fvwm.org">Fvwm</a> settings.</li>
<li>When I have a lot tabs and I want to switch to a specific tab. I use the <a href="http://aluminum.sourmilk.net/reveal/">reveal</a> extension. With this I can locate the tab I want by typing part of the URL or title. Like the ido-mode for <a href="http://dryice.name/blog/emacs/index.html">Emacs</a>. I don&#8217;t like the eye kandys so I set the image to be as small as possible.</li>
</ul>
<p>So here it is. And as always, no mouse <img src='http://dryice.name/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><hints id="hah_hints"></hints></p>
<p class="akst_link"><a href="http://dryice.name/blog/?p=680&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_680" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://dryice.name/blog/firefox/extension/tab-switching/feed/</wfw:commentRss>
		</item>
		<item>
		<title>mouseless browsing</title>
		<link>http://dryice.name/blog/firefox/extension/mouseless-browsing/</link>
		<comments>http://dryice.name/blog/firefox/extension/mouseless-browsing/#comments</comments>
		<pubDate>Thu, 22 Jun 2006 08:11:00 +0000</pubDate>
		<dc:creator>dryice</dc:creator>
		
		<category><![CDATA[extension]]></category>

		<guid isPermaLink="false">http://dryice.name/wordpress/index.php/uncategorized/mouseless-browsing/</guid>
		<description><![CDATA[I&#8217;ve used Mouseless Browsing when I don&#8217;t have a mouse present. However it is not good enough for dayly use because:

I don&#8217;t have a number pad and it&#8217;s hard to type numbers as my hands will slightly move away from its main area.
The default style makes the page a little crappy.

However today I&#8217;ve found another [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve used <a href="https://addons.mozilla.org/firefox/879/" aiotitle="Mouseless Browsing">Mouseless Browsing</a> when I don&#8217;t have a mouse present. However it is not good enough for dayly use because:</p>
<ul>
<li>I don&#8217;t have a number pad and it&#8217;s hard to type numbers as my hands will slightly move away from its main area.</li>
<li>The default style makes the page a little crappy.</li>
</ul>
<p>However today I&#8217;ve found another extension that it&#8217;s possible to really through my mouse: <a href="https://addons.mozilla.org/firefox/1341/">Hit a hint</a>. I prefer this over mouseless brosesing because:</p>
<ol>
<li>I don&#8217;t have a num pad and it&#8217;s not very convience to hit the numbers. HaH makes it possible to use the main area of the key board.</li>
<li>Mouseless add numbers to the link of the whole page and HaH only add to the visiable links. Much faster.</li>
<li>I like the magic key! The page looks as-is when I don&#8217;t have HaH actived.</li>
</ol>
<p>This extension with keyconfig really makes mouseless browsing possible. Well, except some AJAX sites that depends on a.hover <img src='http://dryice.name/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><hints id="hah_hints"></hints></p>
<p class="akst_link"><a href="http://dryice.name/blog/?p=681&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_681" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://dryice.name/blog/firefox/extension/mouseless-browsing/feed/</wfw:commentRss>
		</item>
		<item>
		<title>copyurlplus, emacs planner, and freebsd</title>
		<link>http://dryice.name/blog/firefox/extension/copyurlplus-emacs-planner-and-freebsd/</link>
		<comments>http://dryice.name/blog/firefox/extension/copyurlplus-emacs-planner-and-freebsd/#comments</comments>
		<pubDate>Thu, 22 Jun 2006 03:02:00 +0000</pubDate>
		<dc:creator>dryice</dc:creator>
		
		<category><![CDATA[extension]]></category>

		<guid isPermaLink="false">http://dryice.name/wordpress/index.php/uncategorized/copyurlplus-emacs-planner-and-freebsd/</guid>
		<description><![CDATA[One of the extension I use is Copy URL +. However on my FreeBSD it doesn&#8217;t work very good: it always add some &#8220;undefined&#8221; in the copied string.
Checking the code and I found when this extension checks the navigator.platform to see if &#8220;\r&#8221;, &#8220;\n&#8221;, o &#8220;\r\n&#8221; should be used in unction eol(), it doesn&#8217;t take [...]]]></description>
			<content:encoded><![CDATA[<p>One of the extension I use is <a href="http://copyurlplus.mozdev.org/#content" aiotitle="Copy URL +">Copy URL +</a>. However on my <a href="http://www.freebsd.org">FreeBSD</a> it doesn&#8217;t work very good: it always add some &#8220;undefined&#8221; in the copied string.</p>
<p>Checking the code and I found when this extension checks the navigator.platform to see if &#8220;\r&#8221;, &#8220;\n&#8221;, o &#8220;\r\n&#8221; should be used in unction eol(), it doesn&#8217;t take freebsd into account. This could be easily fixed by adding freebsd in. I think I&#8217;ll write <a href="mailto:xbiker@yahoo.com" aiotitle="the author">the author</a> for this.</p>
<p>One good thing of this extension is that it&#8217;s <a href="http://copyurlplus.mozdev.org/#extending">customizable</a>. For example, I&#8217;m a <a href="http://dryice.name/blog/emacs/index.html">Emacs</a> <a href="http://dryice.name/blog/emacs/planner/index.html">planner</a> user. And I take notes of web pages from time to time. Most of the time my note will take the page title and note title, with some words from that page as description, and at the end a link to that page. For this I have the following in my user.js:</p>
<div style="font-family: monospace;font-size: 110%; color: #000066; border: 1px solid orange; margin: 5px; padding: 5px; background-color: #ffffff;">user_pref(&#8217;copyurlplus.menus.1.label&#8217;, &#8216;Copy to planner&#8217;);<br />
user_pref(&#8217;copyurlplus.menus.1.copy&#8217;, &#8216;%TITLE%\n\n%SEL%\n\n%URL%&#8217;);</div>
<p>And now I can copy what I want with 2 clicks, switch to <a href="http://dryice.name/blog/emacs/index.html">Emacs</a> <a href="http://dryice.name/blog/emacs/planner/index.html">planner</a> page, type C-c C-o C-o C-y, and everything is done.</p>
<p><hints id="hah_hints"></hints></p>
<p class="akst_link"><a href="http://dryice.name/blog/?p=682&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_682" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://dryice.name/blog/firefox/extension/copyurlplus-emacs-planner-and-freebsd/feed/</wfw:commentRss>
		</item>
		<item>
		<title>handle ed2k links</title>
		<link>http://dryice.name/blog/firefox/handle-ed2k-links/</link>
		<comments>http://dryice.name/blog/firefox/handle-ed2k-links/#comments</comments>
		<pubDate>Wed, 07 Jun 2006 01:48:00 +0000</pubDate>
		<dc:creator>dryice</dc:creator>
		
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://dryice.name/wordpress/index.php/uncategorized/handle-ed2k-links/</guid>
		<description><![CDATA[Well it&#8217;s almost the same as let Emacs handle mailto: links. But we use amulecmd to handle the ed2k link this time.
A small script myamule looks like
#!/bin/sh
amulecmd &#8211;command=&#8221;add $1&#8243;
And in Firefox, set network.protocol-handler.external.ed2k to boolean true, and network.protocol-handler.app.ed2k to string /path/to/script/myamule. Firefox will ask if you want to use this external program, if you don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Well it&#8217;s almost the same as <a href="let_emacs_handle_mailto_.muse">let Emacs handle mailto: links</a>. But we use amulecmd to handle the ed2k link this time.</p>
<p>A small script myamule looks like</p>
<div style="font-family: monospace;font-size: 110%; color: #000066; border: 1px solid orange; margin: 5px; padding: 5px; background-color: #ffffff;">#!/bin/sh</div>
<p>amulecmd &#8211;command=&#8221;add $1&#8243;<br />
And in <a href="http://dryice.name/blog/firefox/index.html">Firefox</a>, set network.protocol-handler.external.ed2k to boolean true, and network.protocol-handler.app.ed2k to string /path/to/script/myamule. <a href="http://dryice.name/blog/firefox/index.html">Firefox</a> will ask if you want to use this external program, if you don&#8217;t like it, add network.protocol-handler.warn-external.ed2k as boolean false.</p>
<p><hints id="hah_hints"></hints></p>
<p class="akst_link"><a href="http://dryice.name/blog/?p=684&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_684" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://dryice.name/blog/firefox/handle-ed2k-links/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

