<?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>蓝色的华 &#187; firefox</title>
	<atom:link href="http://bluehua.org/tag/firefox/feed" rel="self" type="application/rss+xml" />
	<link>http://bluehua.org</link>
	<description>分享所学,backup一切~</description>
	<lastBuildDate>Fri, 27 Aug 2010 08:41:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>DNS Flusher 2.0.3 在ubuntu下不能用了</title>
		<link>http://bluehua.org/2009/09/28/599.html</link>
		<comments>http://bluehua.org/2009/09/28/599.html#comments</comments>
		<pubDate>Mon, 28 Sep 2009 08:04:17 +0000</pubDate>
		<dc:creator>小鹿</dc:creator>
				<category><![CDATA[web dev]]></category>
		<category><![CDATA[dnsflusher]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=599</guid>
		<description><![CDATA[升级了一下版本,竟然不能用了,查了一下,原来是文件名大小写的问题&#8230;
插件目录的chrome.manifest

overlay	chrome://browser/content/browser.xul		chrome://dnsFlusher/content/dnsFlusher.xul
&#160;
#这里应当改成
#overlay	chrome://browser/content/browser.xul		chrome://dnsFlusher/content/dnsflusher.xul
&#160;
overlay	chrome://navigator/content/navigator.xul	chrome://dnsFlusher/content/dnsFlusher.xul
&#160;
#应当改成
#overlay	chrome://navigator/content/navigator.xul	chrome://dnsFlusher/content/dnsflusher.xul
&#160;
content	dnsFlusher									chrome/content/dnsFlusher/
&#160;
skin	dnsFlusher		classic/1.0					chrome/skin/classic/dnsFlusher/

修改之后重启firefox就可以了
作者肯定是用win系统,文件名不区分大小写,所以不会有问题,其他linux,mac就会找不到文件了..
]]></description>
			<content:encoded><![CDATA[<p>升级了一下版本,竟然不能用了,查了一下,原来是文件名大小写的问题&#8230;<br />
插件目录的chrome.manifest</p>

<div class="wp_syntax"><div class="code overflow"><pre class="text" style="font-family:monospace;">overlay	chrome://browser/content/browser.xul		chrome://dnsFlusher/content/dnsFlusher.xul
&nbsp;
#这里应当改成
#overlay	chrome://browser/content/browser.xul		chrome://dnsFlusher/content/dnsflusher.xul
&nbsp;
overlay	chrome://navigator/content/navigator.xul	chrome://dnsFlusher/content/dnsFlusher.xul
&nbsp;
#应当改成
#overlay	chrome://navigator/content/navigator.xul	chrome://dnsFlusher/content/dnsflusher.xul
&nbsp;
content	dnsFlusher									chrome/content/dnsFlusher/
&nbsp;
skin	dnsFlusher		classic/1.0					chrome/skin/classic/dnsFlusher/</pre></div></div>

<p>修改之后重启firefox就可以了<br />
<img class="xemotion" src="http://bluehua.org/wp-content/plugins/x-emotions/emotions/msn/bofu2_08.gif" border="0" alt="" />作者肯定是用win系统,文件名不区分大小写,所以不会有问题,其他linux,mac就会找不到文件了..</p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2009/09/28/599.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>firefox favicon丢失</title>
		<link>http://bluehua.org/2009/09/21/579.html</link>
		<comments>http://bluehua.org/2009/09/21/579.html#comments</comments>
		<pubDate>Mon, 21 Sep 2009 14:27:39 +0000</pubDate>
		<dc:creator>小鹿</dc:creator>
				<category><![CDATA[web dev]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[favicon]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=579</guid>
		<description><![CDATA[测试环境: firefox3.0 &#8211; 3.5
强大的qa同学,连favicon都照顾到了,具体情况:有个页面刚进去的时候时kaixin网的favicon,加载完毕是人人网的favicon~
demo:http://bluehua.org/demo/favicon_firefox.html

&#60;html&#62;
&#60;head&#62;
&#60;link href=&#34;http://www.google.cn/favicon.ico&#34; rel=&#34;shortcut icon&#34; type=&#34;image/x-icon&#34; /&#62;
&#60;/head&#62;
&#60;body&#62;
&#60;script&#62;
window.location.href = '#fdsafasd';
&#60;/script&#62;
&#60;/body&#62;
&#60;/html&#62;

页面加载过程中,如果使用脚本修改锚点,firefox便会到server的根目录取默认的favicon.ico,如果取不到就变空了,如果取到了,但跟指定的favicon不一样,情况就跟qa同学看到的一样,更神奇了..
但是发现像下面这样window.onload时改变锚点没有问题
demo:http://bluehua.org/demo/favicon_firefox_onload.html

&#60;html&#62;
&#60;head&#62;
&#60;link href=&#34;http://www.google.cn/favicon.ico&#34; rel=&#34;shortcut icon&#34; type=&#34;image/x-icon&#34; /&#62;
&#60;/head&#62;
&#60;body&#62;
&#60;script&#62;
window.onload=function&#40;&#41;
&#123;
window.location.href = '#fdsafasd';
&#125;;
&#60;/script&#62;
&#60;/body&#62;
&#60;/html&#62;

]]></description>
			<content:encoded><![CDATA[<p>测试环境: firefox3.0 &#8211; 3.5</p>
<p>强大的qa同学,连favicon都照顾到了,具体情况:有个页面刚进去的时候时kaixin网的favicon,加载完毕是人人网的favicon~</p>
<p>demo:<a href="http://bluehua.org/demo/favicon_firefox.html">http://bluehua.org/demo/favicon_firefox.html</a></p>

<div class="wp_syntax"><div class="code overflow"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>html<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>head<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>link href<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://www.google.cn/favicon.ico&quot;</span> rel<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;shortcut icon&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;image/x-icon&quot;</span> <span style="color: #339933;">/&gt;</span>
<span style="color: #339933;">&lt;/</span>head<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>body<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span>
window.<span style="color: #660066;">location</span>.<span style="color: #660066;">href</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'#fdsafasd'</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>body<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>html<span style="color: #339933;">&gt;</span></pre></div></div>

<p>页面加载过程中,如果使用脚本修改锚点,firefox便会到server的根目录取默认的favicon.ico,如果取不到就变空了,如果取到了,但跟指定的favicon不一样,情况就跟qa同学看到的一样,更神奇了..</p>
<p>但是发现像下面这样window.onload时改变锚点没有问题<br />
demo:<a href="http://bluehua.org/demo/favicon_firefox_onload.html">http://bluehua.org/demo/favicon_firefox_onload.html</a></p>

<div class="wp_syntax"><div class="code overflow"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>html<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>head<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>link href<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://www.google.cn/favicon.ico&quot;</span> rel<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;shortcut icon&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;image/x-icon&quot;</span> <span style="color: #339933;">/&gt;</span>
<span style="color: #339933;">&lt;/</span>head<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>body<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span>
window.<span style="color: #000066;">onload</span><span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
window.<span style="color: #660066;">location</span>.<span style="color: #660066;">href</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'#fdsafasd'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>body<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>html<span style="color: #339933;">&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2009/09/21/579.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>411 Length Required</title>
		<link>http://bluehua.org/2009/07/23/343.html</link>
		<comments>http://bluehua.org/2009/07/23/343.html#comments</comments>
		<pubDate>Thu, 23 Jul 2009 04:11:38 +0000</pubDate>
		<dc:creator>小鹿</dc:creator>
				<category><![CDATA[web dev]]></category>
		<category><![CDATA[411]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=343</guid>
		<description><![CDATA[如果您恰好使用了ff浏览器(偶用ff3.0)，server端使用了nginx作代理，而某个ajax又恰好传了一个为null的数据，您就会看到这个错误
firefox下点run code运行下面代码,firebug 看控制台

&#60;html&#62;
&#60;input type=&#34;button&#34; value=&#34;send null ajax&#34; onclick=&#34;send();&#34; /&#62;
&#60;/html&#62;
&#60;script&#62;
function send&#40;&#41;
&#123;
var rq = new XMLHttpRequest&#40;&#41;;
rq.open&#40;&#34;POST&#34;, &#34;http://bluehua.org/index.php&#34;, true&#41;;
rq.send&#40; null &#41;;
&#125;
&#60;/script&#62;

两种解决方法:
client side : rq.send( data ) -&#62; rq.send( data &#124;&#124; &#8221; );
server side : http://rocky.blog.kingtch.com/2008/11/28/fix_nginx_411_length_required/
]]></description>
			<content:encoded><![CDATA[<p>如果您恰好使用了ff浏览器(偶用ff3.0)，server端使用了nginx作代理，而某个ajax又恰好传了一个为null的数据，您就会看到这个错误</p>
<p>firefox下点run code运行下面代码,firebug 看控制台</p>

<div class="wp_syntax"><div class="code overflow"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>html<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;button&quot;</span> value<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;send null ajax&quot;</span> onclick<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;send();&quot;</span> <span style="color: #339933;">/&gt;</span>
<span style="color: #339933;">&lt;/</span>html<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #003366; font-weight: bold;">function</span> send<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #003366; font-weight: bold;">var</span> rq <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> XMLHttpRequest<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
rq.<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;POST&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;http://bluehua.org/index.php&quot;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
rq.<span style="color: #660066;">send</span><span style="color: #009900;">&#40;</span> <span style="color: #003366; font-weight: bold;">null</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>两种解决方法:<br />
client side : rq.send( data ) -&gt; rq.send( data || &#8221; );<br />
server side :<a href="http://rocky.blog.kingtch.com/2008/11/28/fix_nginx_411_length_required/" target="_blank"> http://rocky.blog.kingtch.com/2008/11/28/fix_nginx_411_length_required/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2009/07/23/343.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>懒人工具之:自动刷新firefox，解放ctrl+f5</title>
		<link>http://bluehua.org/2009/04/03/257.html</link>
		<comments>http://bluehua.org/2009/04/03/257.html#comments</comments>
		<pubDate>Fri, 03 Apr 2009 08:48:03 +0000</pubDate>
		<dc:creator>小鹿</dc:creator>
				<category><![CDATA[soft]]></category>
		<category><![CDATA[web dev]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=257</guid>
		<description><![CDATA[y，自从用了vim，该让机器做的都让机器做了。。
这个东东的原理是这样滴，firefox安装一个插件，起作用的就下面几行

var file = Components.classes&#91;&#34;@mozilla.org/file/local;1&#34;&#93;.createInstance&#40;Components.interfaces.nsILocalFile&#41;;
file.initWithPath&#40;&#34;/tmp/refresh.firefox&#34;&#41;;
//浏览器开启时启动一个定时器
var timer = setInterval&#40;function&#40;&#41;
&#123;
    //每隔0.1秒检测一下这个文件存在否 
    if &#40; file.exists&#40;&#41; &#41;
    &#123;
        //如果存在，删除之
        file.remove&#40;true&#41;;
        //获取当前标签的文档对象
        var [...]]]></description>
			<content:encoded><![CDATA[<p>y，自从用了vim，该让机器做的都让机器做了。。</p>
<p>这个东东的原理是这样滴，firefox安装一个插件，起作用的就下面几行</p>

<div class="wp_syntax"><div class="code overflow"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> file <span style="color: #339933;">=</span> Components.<span style="color: #660066;">classes</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;@mozilla.org/file/local;1&quot;</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">createInstance</span><span style="color: #009900;">&#40;</span>Components.<span style="color: #660066;">interfaces</span>.<span style="color: #660066;">nsILocalFile</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
file.<span style="color: #660066;">initWithPath</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;/tmp/refresh.firefox&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">//浏览器开启时启动一个定时器</span>
<span style="color: #003366; font-weight: bold;">var</span> timer <span style="color: #339933;">=</span> setInterval<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    <span style="color: #006600; font-style: italic;">//每隔0.1秒检测一下这个文件存在否 </span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> file.<span style="color: #660066;">exists</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #006600; font-style: italic;">//如果存在，删除之</span>
        file.<span style="color: #660066;">remove</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #006600; font-style: italic;">//获取当前标签的文档对象</span>
        <span style="color: #003366; font-weight: bold;">var</span> doc <span style="color: #339933;">=</span> gBrowser.<span style="color: #660066;">selectedBrowser</span>.<span style="color: #660066;">contentDocument</span><span style="color: #339933;">;</span>
        <span style="color: #006600; font-style: italic;">//是否是在调试的东东</span>
        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #009966; font-style: italic;">/(xiaonei\.com|kaixin\.com)/</span>.<span style="color: #660066;">test</span><span style="color: #009900;">&#40;</span> doc.<span style="color: #660066;">location</span>.<span style="color: #660066;">href</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#123;</span>
            <span style="color: #006600; font-style: italic;">//如果是，调用dnsFluher，刷新host，如果没有安装此插件就算了</span>
            dnsFluher.<span style="color: #660066;">refreshdns</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #006600; font-style: italic;">//刷新页面</span>
            doc.<span style="color: #660066;">location</span>.<span style="color: #660066;">reload</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">100</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>所以，只要在/tmp/目录生成一个refresh.firefox的文件，firefox便会刷新了</p>
<p>vim 里添加一行配置文件</p>

<div class="wp_syntax"><div class="code overflow"><pre class="text" style="font-family:monospace;">&quot;更改host文件时刷新
autocmd BufWritePost,FileWritePost /etc/hosts execute '!echo '' &gt; /tmp/refresh.firefox'
&quot;更改调试文件时刷新
autocmd BufWritePost,FileWritePost */jspro/*.js execute '!echo '' &gt; /tmp/refresh.firefox'</pre></div></div>

<p>插件附上，根据情况自行修改。。</p>
<p><a href='http://bluehua.org/wp-content/uploads/2009/04/autorefresh.zip'>autorefresh1.0</a></p>
<p>扩展名改成xpi拖到firefox就可以安装了</p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2009/04/03/257.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.221 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-09-10 17:45:02 -->
