<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[懒人工具之autorefresh1.0:自动刷新firefox，解放ctrl+f5]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Mon, 07 Jun 2010 03:56:24 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	这个东东的原理是这样滴，firefox安装一个插件，起作用的就下面几行<br/><br/><br/><div class="code">var file = Components.classes&#91;&quot;@mozilla.org/file/local;1&quot;&#93;.createInstance(Components.interfaces.nsILocalFile);<br/>file.initWithPath(&quot;/tmp/refresh.firefox&quot;);<br/>//浏览器开启时启动一个定时器<br/>var timer = setInterval(function()<br/>&#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;//每隔0.1秒检测一下这个文件存在否 <br/>&nbsp;&nbsp;&nbsp;&nbsp;if ( file.exists() )<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//如果存在，删除之<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;file.remove(true);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//获取当前标签的文档对象<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var doc = gBrowser.selectedBrowser.contentDocument;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//是否是在调试的东东<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if ( /(xiaonei&#92;.com&#124;kaixin&#92;.com)/.test( doc.location.href ) )<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//如果是，调用dnsFluher，刷新host，如果没有安装此插件就算了<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dnsFluher.refreshdns();<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//刷新页面<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;doc.location.reload();<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br/>&#125;,100 );</div>&nbsp;&nbsp;<br/><br/><br/>所以，只要在/tmp/目录生成一个refresh.firefox的文件，firefox便会刷新了<br/><br/>vim 里添加一行配置文件<br/><br/>&quot;更改host文件时刷新<br/><br/><div class="code">autocmd BufWritePost,FileWritePost /etc/hosts execute &#039;!echo &#039;&#039; &gt; /tmp/refresh.firefox&#039;</div><br/>&quot;更改调试文件时刷新<br/><br/><div class="code">autocmd BufWritePost,FileWritePost */jspro/*.js execute &#039;!echo &#039;&#039; &gt; /tmp/refresh.firefox&#039;</div><br/><br/><br/>插件附上，根据情况自行修改。。<br/>DownLoad:http://bluehua.org/wp-content/uploads/2009/04/autorefresh.zip<br/><br/>扩展名改成xpi拖到firefox就可以安装了,好像无法兼容，但是思想很好的，呵呵！
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] 懒人工具之autorefresh1.0:自动刷新firefox，解放ctrl+f5]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>