<?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>Gea-Suan Lin&#039;s BLOG &#187; GoogleChrome</title> <atom:link href="http://blog.gslin.org/archives/category/computer/software/browser/googlechrome/feed/" rel="self" type="application/rss+xml" /><link>http://blog.gslin.org</link> <description>幹壞事是進步最大的原動力</description> <lastBuildDate>Wed, 23 May 2012 02:33:28 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/><cloud
domain='blog.gslin.org' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' /> <item><title>Mozilla Firefox 與 Google Chrome&#8230;</title><link>http://blog.gslin.org/archives/2012/03/18/2851/mozilla-firefox-%e8%88%87-google-chrome/</link> <comments>http://blog.gslin.org/archives/2012/03/18/2851/mozilla-firefox-%e8%88%87-google-chrome/#comments</comments> <pubDate>Sun, 18 Mar 2012 08:28:54 +0000</pubDate> <dc:creator>Gea-Suan Lin</dc:creator> <category><![CDATA[Browser]]></category> <category><![CDATA[Computer]]></category> <category><![CDATA[Firefox]]></category> <category><![CDATA[GoogleChrome]]></category> <category><![CDATA[Murmuring]]></category> <category><![CDATA[Network]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[WWW]]></category> <category><![CDATA[browser]]></category> <category><![CDATA[chrome]]></category> <category><![CDATA[firefox]]></category> <category><![CDATA[google]]></category> <category><![CDATA[mozilla]]></category><guid
isPermaLink="false">http://blog.gslin.org/?p=2851</guid> <description><![CDATA[我家裡與公司的 Mozilla Firefox 與 Google Chrome 都是在 Ubuntu 上面跑，至於家裡的 Mac Mini 就沒換了，還是跑 Chrome。來講一下我對這兩個瀏覽器的的感覺。 從安裝開始，在 Ubuntu 下面我是透過 ppa 裝 release 前一個 channel (兩個都叫做 beta)。安裝的方式很簡單，設好 ppa 後 apt-get update; apt-get dist-upgrade 就會把系統的 Firefox 與 Chrome 升級到新版。 對於套件的相容性，Firefox 有很明顯的改善，現在從 Release 升級到 Beta 的時候不會直接把所有的套件標成不相容，會有一些機制處理，這方面算是跟 &#8230; <a
href="http://blog.gslin.org/archives/2012/03/18/2851/mozilla-firefox-%e8%88%87-google-chrome/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<div
class="bottomcontainerBox" style=""><div
style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <iframe
src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.gslin.org%2Farchives%2F2012%2F03%2F18%2F2851%2Fmozilla-firefox-%25e8%2588%2587-google-chrome%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div><div
style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <g:plusone size="medium" href="http://blog.gslin.org/archives/2012/03/18/2851/mozilla-firefox-%e8%88%87-google-chrome/"></g:plusone></div><div
style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <a
href="http://twitter.com/share" class="twitter-share-button" data-url="http://blog.gslin.org/archives/2012/03/18/2851/mozilla-firefox-%e8%88%87-google-chrome/"  data-text="Mozilla Firefox 與 Google Chrome&#8230;" data-count="horizontal" data-via="gslin"></a></div></div><div
style="clear:both"></div><div
style="padding-bottom:4px;"></div><p>我家裡與公司的 <a
href="http://www.mozilla.com/firefox/">Mozilla Firefox</a> 與 <a
href="http://www.google.com/chrome">Google Chrome</a> 都是在 <a
href="http://www.ubuntu.com/">Ubuntu</a> 上面跑，至於家裡的 <a
href="http://www.apple.com/macmini/">Mac Mini</a> 就沒換了，還是跑 Chrome。來講一下我對這兩個瀏覽器的的感覺。</p><p>從安裝開始，在 Ubuntu 下面我是透過 ppa 裝 release 前一個 channel (兩個都叫做 beta)。安裝的方式很簡單，設好 ppa 後 <code>apt-get update; apt-get dist-upgrade</code> 就會把系統的 Firefox 與 Chrome 升級到新版。</p><p>對於套件的相容性，Firefox 有很明顯的改善，現在從 Release 升級到 Beta 的時候不會直接把所有的套件標成不相容，會有一些機制處理，這方面算是跟 Chrome 有得玩。</p><p>另外一方面 Chrome 也支援更多 API 讓套件使用，現在套件可以做很多網路層的操作，接下只要 Chrome 把 UI API 設計完整一點就可以了&#8230; (Chrome 上面套件的設定畫面相較於 Firefox 是有需要再改善的，瀏覽器對 UI API 支援太陽春算是原因之一&#8230;)</p><p>同步的問題因為 Chrome 可以綁定 Google 帳號，就算是 Two-Factor 時也可以用 application password，而 Firefox 的同步功能我試了三次都沒成功過&#8230;</p><p>效能方面，可以發現兩個瀏覽器的效能都很好了，<a
href="https://twitter.com/">Twitter</a> 算是 script 很多，可以感覺到比較頓的網站 (參考「<a
href="http://mike.teczno.com/notes/bandwidth.html">bandwidth</a>」這篇)，兩個瀏覽器用起來都不會有明顯的不順暢。</p><p>操作方面是還是可以感覺到 Firefox 在某些地方卡住：</p><ul><li>focus 在 Flash 時，Ctrl-W 無法關閉視窗 (因為 Ctrl-W 被 Flash 抓走了)。</li><li>Firefox 的 <a
href="http://getfirebug.com/">Firebug</a> (yeah，跟 Firefox team 無關，但這剛好對應於 Chrome 內建功能) 沒辦法用 Ctrl-W 關閉。</li><li>在 address bar 輸入 url 有時會被 suggestion 卡到 lag，這之前有提過了，在 bugzilla 上也有 ticket 在追這個問題&#8230;</li></ul><p>最後要談的是穩定性，兩者的穩定性都已經可以接受，只是很明顯 Firefox 遇到複雜的 script 還是不太穩，無論是 <a
href="https://www.facebook.com/">Facebook</a> 還是 Twitter，偶而會出問題，這時候把 browser 關掉再開就好了&#8230;</p><p>Firefox 大概還會再用一陣子吧&#8230; 算是測試不同的 browser。</p> ]]></content:encoded> <wfw:commentRss>http://blog.gslin.org/archives/2012/03/18/2851/mozilla-firefox-%e8%88%87-google-chrome/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Chrome 的 webRequest&#8230;</title><link>http://blog.gslin.org/archives/2012/02/29/2835/chrome-%e7%9a%84-webrequest/</link> <comments>http://blog.gslin.org/archives/2012/02/29/2835/chrome-%e7%9a%84-webrequest/#comments</comments> <pubDate>Tue, 28 Feb 2012 21:57:36 +0000</pubDate> <dc:creator>Gea-Suan Lin</dc:creator> <category><![CDATA[Browser]]></category> <category><![CDATA[Computer]]></category> <category><![CDATA[GoogleChrome]]></category> <category><![CDATA[Murmuring]]></category> <category><![CDATA[Network]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[WWW]]></category> <category><![CDATA[api]]></category> <category><![CDATA[chrome]]></category> <category><![CDATA[extension]]></category> <category><![CDATA[google]]></category> <category><![CDATA[webrequest]]></category><guid
isPermaLink="false">http://blog.gslin.org/?p=2835</guid> <description><![CDATA[在變成標準前又改了一次&#8230; 從 Google Chrome 17 後，「Web Requests」從 Experimental API 變成正式的 API，有不少地方在這次轉成正式 API 後需要修改： 本來 chrome.experimental.webRequest 都改成 chrome.webRequest。 需要加上 webRequest permission，如果有 blocking 行為則要再加上 webRequestBlocking permission。 API 呼叫的參數可能會不一樣，參考官方的文件的說明比較清楚。我遇到的是使用 onBeforeRequest.addListener 時需要多加上 urls 參數。 不再需要 expiermental permission，不過沒拿掉不影響運作。 在 Chrome Web Store 上面已經可以看到一些跟控制 Referrer 有關的延伸套件了&#8230;]]></description> <content:encoded><![CDATA[<div
class="bottomcontainerBox" style=""><div
style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <iframe
src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.gslin.org%2Farchives%2F2012%2F02%2F29%2F2835%2Fchrome-%25e7%259a%2584-webrequest%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div><div
style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <g:plusone size="medium" href="http://blog.gslin.org/archives/2012/02/29/2835/chrome-%e7%9a%84-webrequest/"></g:plusone></div><div
style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <a
href="http://twitter.com/share" class="twitter-share-button" data-url="http://blog.gslin.org/archives/2012/02/29/2835/chrome-%e7%9a%84-webrequest/"  data-text="Chrome 的 webRequest&#8230;" data-count="horizontal" data-via="gslin"></a></div></div><div
style="clear:both"></div><div
style="padding-bottom:4px;"></div><p>在變成標準前又改了一次&#8230;</p><p>從 <a
href="http://www.google.com/chrome">Google Chrome</a> 17 後，「<a
href="http://code.google.com/chrome/extensions/stable/webRequest.html">Web Requests</a>」從 Experimental API 變成正式的 API，有不少地方在這次轉成正式 API 後需要修改：</p><ul><li>本來 <code>chrome.experimental.webRequest</code> 都改成 <code>chrome.webRequest</code>。</li><li>需要加上 <code>webRequest</code> permission，如果有 blocking 行為則要再加上 <code>webRequestBlocking</code> permission。</li><li>API 呼叫的參數可能會不一樣，參考官方的文件的說明比較清楚。我遇到的是使用 <code>onBeforeRequest.addListener</code> 時需要多加上 <code>urls</code> 參數。</li><li>不再需要 <code>expiermental</code> permission，不過沒拿掉不影響運作。</li></ul><p>在 <a
href="https://chrome.google.com/webstore">Chrome Web Store</a> 上面已經可以看到一些跟控制 Referrer 有關的延伸套件了&#8230;</p> ]]></content:encoded> <wfw:commentRss>http://blog.gslin.org/archives/2012/02/29/2835/chrome-%e7%9a%84-webrequest/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>換回 Firefox&#8230;</title><link>http://blog.gslin.org/archives/2012/02/12/2824/%e6%8f%9b%e5%9b%9e-firefox/</link> <comments>http://blog.gslin.org/archives/2012/02/12/2824/%e6%8f%9b%e5%9b%9e-firefox/#comments</comments> <pubDate>Sat, 11 Feb 2012 22:15:31 +0000</pubDate> <dc:creator>Gea-Suan Lin</dc:creator> <category><![CDATA[Browser]]></category> <category><![CDATA[Computer]]></category> <category><![CDATA[Firefox]]></category> <category><![CDATA[GoogleChrome]]></category> <category><![CDATA[Murmuring]]></category> <category><![CDATA[Network]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[WWW]]></category> <category><![CDATA[chrome]]></category> <category><![CDATA[firefox]]></category> <category><![CDATA[google]]></category><guid
isPermaLink="false">http://blog.gslin.org/?p=2824</guid> <description><![CDATA[用 Google Chrome 用一陣子了，回頭來看看 Firefox 發展的如何&#8230; 在 Location bar 輸入網址還是鈍鈍的問題還是沒解，不過很明顯感覺速度跟 Chrome 差不多了&#8230; 裝了一卡車套件，用一陣子看看吧 :o]]></description> <content:encoded><![CDATA[<div
class="bottomcontainerBox" style=""><div
style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <iframe
src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.gslin.org%2Farchives%2F2012%2F02%2F12%2F2824%2F%25e6%258f%259b%25e5%259b%259e-firefox%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div><div
style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <g:plusone size="medium" href="http://blog.gslin.org/archives/2012/02/12/2824/%e6%8f%9b%e5%9b%9e-firefox/"></g:plusone></div><div
style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <a
href="http://twitter.com/share" class="twitter-share-button" data-url="http://blog.gslin.org/archives/2012/02/12/2824/%e6%8f%9b%e5%9b%9e-firefox/"  data-text="換回 Firefox&#8230;" data-count="horizontal" data-via="gslin"></a></div></div><div
style="clear:both"></div><div
style="padding-bottom:4px;"></div><p>用 <a
href="http://www.google.com/chrome">Google Chrome</a> 用一陣子了，回頭來看看 <a
href="http://www.mozilla.com/firefox/">Firefox</a> 發展的如何&#8230; 在 Location bar 輸入網址還是鈍鈍的問題還是沒解，不過很明顯感覺速度跟 Chrome 差不多了&#8230;</p><p>裝了一卡車套件，用一陣子看看吧 :o</p> ]]></content:encoded> <wfw:commentRss>http://blog.gslin.org/archives/2012/02/12/2824/%e6%8f%9b%e5%9b%9e-firefox/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Google Chrome Extension 內攔截所有的 url request&#8230;</title><link>http://blog.gslin.org/archives/2012/02/08/2821/google-chrome-extension-%e5%85%a7%e6%94%94%e6%88%aa%e6%89%80%e6%9c%89%e7%9a%84-url-request/</link> <comments>http://blog.gslin.org/archives/2012/02/08/2821/google-chrome-extension-%e5%85%a7%e6%94%94%e6%88%aa%e6%89%80%e6%9c%89%e7%9a%84-url-request/#comments</comments> <pubDate>Wed, 08 Feb 2012 03:43:43 +0000</pubDate> <dc:creator>Gea-Suan Lin</dc:creator> <category><![CDATA[Browser]]></category> <category><![CDATA[Computer]]></category> <category><![CDATA[GoogleChrome]]></category> <category><![CDATA[Murmuring]]></category> <category><![CDATA[Network]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[WWW]]></category> <category><![CDATA[chrome]]></category> <category><![CDATA[extension]]></category> <category><![CDATA[google]]></category> <category><![CDATA[referer]]></category><guid
isPermaLink="false">http://blog.gslin.org/?p=2821</guid> <description><![CDATA[之前寫了一個處理 Referer header 的 extension，使用 chrome.experimental.webRequest.onBeforeSendHeaders.addListener 攔截所有的 url 然後處理 Referer header。 之前只需要在 manifest.json 裡面加上 experimental 就可以使用，但是前陣子發現失效。剛剛在「onBeforeSendHeaders listeners aren&#8217;t triggering」這個 issue 裡面找到解法：現在需要多加上 &#60;all_urls&#62; 這組權限。]]></description> <content:encoded><![CDATA[<div
class="bottomcontainerBox" style=""><div
style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <iframe
src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.gslin.org%2Farchives%2F2012%2F02%2F08%2F2821%2Fgoogle-chrome-extension-%25e5%2585%25a7%25e6%2594%2594%25e6%2588%25aa%25e6%2589%2580%25e6%259c%2589%25e7%259a%2584-url-request%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div><div
style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <g:plusone size="medium" href="http://blog.gslin.org/archives/2012/02/08/2821/google-chrome-extension-%e5%85%a7%e6%94%94%e6%88%aa%e6%89%80%e6%9c%89%e7%9a%84-url-request/"></g:plusone></div><div
style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <a
href="http://twitter.com/share" class="twitter-share-button" data-url="http://blog.gslin.org/archives/2012/02/08/2821/google-chrome-extension-%e5%85%a7%e6%94%94%e6%88%aa%e6%89%80%e6%9c%89%e7%9a%84-url-request/"  data-text="Google Chrome Extension 內攔截所有的 url request&#8230;" data-count="horizontal" data-via="gslin"></a></div></div><div
style="clear:both"></div><div
style="padding-bottom:4px;"></div><p>之前寫了一個處理 <code>Referer</code> header 的 extension，使用 <code>chrome.experimental.webRequest.onBeforeSendHeaders.addListener</code> 攔截所有的 url 然後處理 <code>Referer</code> header。</p><p>之前只需要在 <code>manifest.json</code> 裡面加上 <code>experimental</code> 就可以使用，但是前陣子發現失效。剛剛在「<a
href="https://code.google.com/p/chromium/issues/detail?id=101275">onBeforeSendHeaders listeners aren&#8217;t triggering</a>」這個 issue 裡面找到解法：現在需要多加上 <code>&lt;all_urls&gt;</code> 這組權限。</p> ]]></content:encoded> <wfw:commentRss>http://blog.gslin.org/archives/2012/02/08/2821/google-chrome-extension-%e5%85%a7%e6%94%94%e6%88%aa%e6%89%80%e6%9c%89%e7%9a%84-url-request/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>把 Google Plus 的數字 icon 藏起來&#8230;</title><link>http://blog.gslin.org/archives/2011/12/21/2808/%e6%8a%8a-google-plus-%e7%9a%84%e6%95%b8%e5%ad%97-icon-%e8%97%8f%e8%b5%b7%e4%be%86/</link> <comments>http://blog.gslin.org/archives/2011/12/21/2808/%e6%8a%8a-google-plus-%e7%9a%84%e6%95%b8%e5%ad%97-icon-%e8%97%8f%e8%b5%b7%e4%be%86/#comments</comments> <pubDate>Wed, 21 Dec 2011 14:56:31 +0000</pubDate> <dc:creator>Gea-Suan Lin</dc:creator> <category><![CDATA[Browser]]></category> <category><![CDATA[Computer]]></category> <category><![CDATA[Firefox]]></category> <category><![CDATA[GoogleChrome]]></category> <category><![CDATA[Murmuring]]></category> <category><![CDATA[Network]]></category> <category><![CDATA[Social]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[google]]></category> <category><![CDATA[greasemonkey]]></category> <category><![CDATA[plus]]></category> <category><![CDATA[script]]></category> <category><![CDATA[test]]></category> <category><![CDATA[yahoo]]></category><guid
isPermaLink="false">http://blog.gslin.org/?p=2808</guid> <description><![CDATA[那個紅色的數字 icon 還蠻妨礙工作的，到 userscripts.org 上翻一翻，果然有人有寫過了 (雖然是沒幾天前)：「Go Away! Google Plus」。 PS：隨便丟字進去測試的時候，發現 &#8220;test&#8221; 第五名是 tw.yahoo.com，這是怎麼了&#8230;？]]></description> <content:encoded><![CDATA[<div
class="bottomcontainerBox" style=""><div
style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <iframe
src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.gslin.org%2Farchives%2F2011%2F12%2F21%2F2808%2F%25e6%258a%258a-google-plus-%25e7%259a%2584%25e6%2595%25b8%25e5%25ad%2597-icon-%25e8%2597%258f%25e8%25b5%25b7%25e4%25be%2586%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div><div
style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <g:plusone size="medium" href="http://blog.gslin.org/archives/2011/12/21/2808/%e6%8a%8a-google-plus-%e7%9a%84%e6%95%b8%e5%ad%97-icon-%e8%97%8f%e8%b5%b7%e4%be%86/"></g:plusone></div><div
style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <a
href="http://twitter.com/share" class="twitter-share-button" data-url="http://blog.gslin.org/archives/2011/12/21/2808/%e6%8a%8a-google-plus-%e7%9a%84%e6%95%b8%e5%ad%97-icon-%e8%97%8f%e8%b5%b7%e4%be%86/"  data-text="把 Google Plus 的數字 icon 藏起來&#8230;" data-count="horizontal" data-via="gslin"></a></div></div><div
style="clear:both"></div><div
style="padding-bottom:4px;"></div><p>那個紅色的數字 icon 還蠻妨礙工作的，到 <a
href="http://userscripts.org/">userscripts.org</a> 上翻一翻，果然有人有寫過了 (雖然是沒幾天前)：「<a
href="http://userscripts.org/scripts/show/120626">Go Away! Google Plus</a>」。</p><p>PS：隨便丟字進去測試的時候，發現 &#8220;<a
href="https://www.google.com/search?q=test">test</a>&#8221; 第五名是 tw.yahoo.com，這是怎麼了&#8230;？</p> ]]></content:encoded> <wfw:commentRss>http://blog.gslin.org/archives/2011/12/21/2808/%e6%8a%8a-google-plus-%e7%9a%84%e6%95%b8%e5%ad%97-icon-%e8%97%8f%e8%b5%b7%e4%be%86/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>關掉 Mac OS X 上的平滑捲動&#8230;</title><link>http://blog.gslin.org/archives/2011/11/21/2782/%e9%97%9c%e6%8e%89-mac-os-x-%e4%b8%8a%e7%9a%84%e5%b9%b3%e6%bb%91%e6%8d%b2%e5%8b%95/</link> <comments>http://blog.gslin.org/archives/2011/11/21/2782/%e9%97%9c%e6%8e%89-mac-os-x-%e4%b8%8a%e7%9a%84%e5%b9%b3%e6%bb%91%e6%8d%b2%e5%8b%95/#comments</comments> <pubDate>Sun, 20 Nov 2011 17:10:19 +0000</pubDate> <dc:creator>Gea-Suan Lin</dc:creator> <category><![CDATA[Browser]]></category> <category><![CDATA[Computer]]></category> <category><![CDATA[GoogleChrome]]></category> <category><![CDATA[MacOS]]></category> <category><![CDATA[Murmuring]]></category> <category><![CDATA[OS]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[chrome]]></category> <category><![CDATA[google]]></category> <category><![CDATA[mac]]></category> <category><![CDATA[osx]]></category> <category><![CDATA[scroll]]></category> <category><![CDATA[smooth]]></category><guid
isPermaLink="false">http://blog.gslin.org/?p=2782</guid> <description><![CDATA[起因是想要關掉 Google Chrome 在 Mac OS X 上的平滑捲動，找了半天都沒看到，後來被人提醒，Mac 系統有選項提供平滑捲動，Google Chrome 有平滑捲動可能是由作業系統提供，而非 Google Chrome 自己實作： 關掉後問題就解決了&#8230;]]></description> <content:encoded><![CDATA[<div
class="bottomcontainerBox" style=""><div
style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <iframe
src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.gslin.org%2Farchives%2F2011%2F11%2F21%2F2782%2F%25e9%2597%259c%25e6%258e%2589-mac-os-x-%25e4%25b8%258a%25e7%259a%2584%25e5%25b9%25b3%25e6%25bb%2591%25e6%258d%25b2%25e5%258b%2595%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div><div
style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <g:plusone size="medium" href="http://blog.gslin.org/archives/2011/11/21/2782/%e9%97%9c%e6%8e%89-mac-os-x-%e4%b8%8a%e7%9a%84%e5%b9%b3%e6%bb%91%e6%8d%b2%e5%8b%95/"></g:plusone></div><div
style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <a
href="http://twitter.com/share" class="twitter-share-button" data-url="http://blog.gslin.org/archives/2011/11/21/2782/%e9%97%9c%e6%8e%89-mac-os-x-%e4%b8%8a%e7%9a%84%e5%b9%b3%e6%bb%91%e6%8d%b2%e5%8b%95/"  data-text="關掉 Mac OS X 上的平滑捲動&#8230;" data-count="horizontal" data-via="gslin"></a></div></div><div
style="clear:both"></div><div
style="padding-bottom:4px;"></div><p>起因是想要關掉 <a
href="http://www.google.com/chrome">Google Chrome</a> 在 <a
href="http://www.apple.com/macosx/">Mac OS X</a> 上的平滑捲動，找了半天都沒看到，後來被人提醒，Mac 系統有選項提供平滑捲動，Google Chrome 有平滑捲動可能是由作業系統提供，而非 Google Chrome 自己實作：</p><p><a
href="http://imgur.com/EMLZU"><img
src="http://i.imgur.com/EMLZU.png" alt="" /></a></p><p>關掉後問題就解決了&#8230;</p> ]]></content:encoded> <wfw:commentRss>http://blog.gslin.org/archives/2011/11/21/2782/%e9%97%9c%e6%8e%89-mac-os-x-%e4%b8%8a%e7%9a%84%e5%b9%b3%e6%bb%91%e6%8d%b2%e5%8b%95/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>安裝 Pretty Beautiful Javascript&#8230;</title><link>http://blog.gslin.org/archives/2011/11/18/2781/%e5%ae%89%e8%a3%9d-pretty-beautiful-javascript/</link> <comments>http://blog.gslin.org/archives/2011/11/18/2781/%e5%ae%89%e8%a3%9d-pretty-beautiful-javascript/#comments</comments> <pubDate>Thu, 17 Nov 2011 21:22:33 +0000</pubDate> <dc:creator>Gea-Suan Lin</dc:creator> <category><![CDATA[Browser]]></category> <category><![CDATA[Computer]]></category> <category><![CDATA[GoogleChrome]]></category> <category><![CDATA[Murmuring]]></category> <category><![CDATA[Network]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[WWW]]></category> <category><![CDATA[chrome]]></category> <category><![CDATA[extension]]></category> <category><![CDATA[google]]></category> <category><![CDATA[javascript]]></category><guid
isPermaLink="false">http://blog.gslin.org/?p=2781</guid> <description><![CDATA[Pretty Beautiful Javascript，這是安裝前看 jQuery 1.7.0 程式碼的效果： 這是安裝後的效果： 不過 javascript 檔案大一點跑起來就會很慢 XD]]></description> <content:encoded><![CDATA[<div
class="bottomcontainerBox" style=""><div
style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <iframe
src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.gslin.org%2Farchives%2F2011%2F11%2F18%2F2781%2F%25e5%25ae%2589%25e8%25a3%259d-pretty-beautiful-javascript%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div><div
style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <g:plusone size="medium" href="http://blog.gslin.org/archives/2011/11/18/2781/%e5%ae%89%e8%a3%9d-pretty-beautiful-javascript/"></g:plusone></div><div
style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <a
href="http://twitter.com/share" class="twitter-share-button" data-url="http://blog.gslin.org/archives/2011/11/18/2781/%e5%ae%89%e8%a3%9d-pretty-beautiful-javascript/"  data-text="安裝 Pretty Beautiful Javascript&#8230;" data-count="horizontal" data-via="gslin"></a></div></div><div
style="clear:both"></div><div
style="padding-bottom:4px;"></div><p><a
href="https://chrome.google.com/webstore/detail/piekbefgpgdecckjcpffhnacjflfoddg">Pretty Beautiful Javascript</a>，這是安裝前看 jQuery 1.7.0 程式碼的效果：</p><p><a
href="http://i.imgur.com/qqBI5.png"><img
src="http://i.imgur.com/qqBI5.png" alt="" /></a></p><p>這是安裝後的效果：</p><p><a
href="http://i.imgur.com/cNatZ.png"><img
src="http://i.imgur.com/cNatZ.png" alt="" /></a></p><p>不過 javascript 檔案大一點跑起來就會很慢 XD</p> ]]></content:encoded> <wfw:commentRss>http://blog.gslin.org/archives/2011/11/18/2781/%e5%ae%89%e8%a3%9d-pretty-beautiful-javascript/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Mac 下 Google Chrome 的 textarea 預設字型&#8230;</title><link>http://blog.gslin.org/archives/2011/11/14/2778/mac-%e4%b8%8b-google-chrome-%e7%9a%84-textarea-%e9%a0%90%e8%a8%ad%e5%ad%97%e5%9e%8b/</link> <comments>http://blog.gslin.org/archives/2011/11/14/2778/mac-%e4%b8%8b-google-chrome-%e7%9a%84-textarea-%e9%a0%90%e8%a8%ad%e5%ad%97%e5%9e%8b/#comments</comments> <pubDate>Sun, 13 Nov 2011 17:22:38 +0000</pubDate> <dc:creator>Gea-Suan Lin</dc:creator> <category><![CDATA[Browser]]></category> <category><![CDATA[Computer]]></category> <category><![CDATA[GoogleChrome]]></category> <category><![CDATA[MacOS]]></category> <category><![CDATA[Murmuring]]></category> <category><![CDATA[OS]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[chrome]]></category> <category><![CDATA[css]]></category> <category><![CDATA[font]]></category> <category><![CDATA[google]]></category> <category><![CDATA[mac]]></category> <category><![CDATA[monospace]]></category> <category><![CDATA[stylish]]></category><guid
isPermaLink="false">http://blog.gslin.org/?p=2778</guid> <description><![CDATA[要編輯維基百科的時候發現字寬好像不太熟悉，多看了幾個站台，發現 Google Chrome 在 Mac 下面對 textarea 預設的字型不是等寬字&#8230; 而且預設的套件沒辦法修改 :o 知道問題後，就是要找解法了&#8230; 目前的解法是裝 Stylish，對所有站台的 textarea 加上 font-family: monospace;，這樣就可以避免當網站沒有對 textarea 指定 font-family 時看起來很突兀&#8230;]]></description> <content:encoded><![CDATA[<div
class="bottomcontainerBox" style=""><div
style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <iframe
src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.gslin.org%2Farchives%2F2011%2F11%2F14%2F2778%2Fmac-%25e4%25b8%258b-google-chrome-%25e7%259a%2584-textarea-%25e9%25a0%2590%25e8%25a8%25ad%25e5%25ad%2597%25e5%259e%258b%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div><div
style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <g:plusone size="medium" href="http://blog.gslin.org/archives/2011/11/14/2778/mac-%e4%b8%8b-google-chrome-%e7%9a%84-textarea-%e9%a0%90%e8%a8%ad%e5%ad%97%e5%9e%8b/"></g:plusone></div><div
style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <a
href="http://twitter.com/share" class="twitter-share-button" data-url="http://blog.gslin.org/archives/2011/11/14/2778/mac-%e4%b8%8b-google-chrome-%e7%9a%84-textarea-%e9%a0%90%e8%a8%ad%e5%ad%97%e5%9e%8b/"  data-text="Mac 下 Google Chrome 的 textarea 預設字型&#8230;" data-count="horizontal" data-via="gslin"></a></div></div><div
style="clear:both"></div><div
style="padding-bottom:4px;"></div><p>要編輯<a
href="http://zh.wikipedia.org/">維基百科</a>的時候發現字寬好像不太熟悉，多看了幾個站台，發現 <a
href="http://www.google.com/chrome">Google Chrome</a> 在 Mac 下面對 <code>textarea</code> 預設的字型不是等寬字&#8230; 而且預設的套件沒辦法修改 :o</p><p>知道問題後，就是要找解法了&#8230; 目前的解法是裝 <a
href="https://chrome.google.com/webstore/detail/fjnbnpbmkenffdnngjfgmeleoegfcffe">Stylish</a>，對所有站台的 <code>textarea</code> 加上 <code>font-family: monospace;</code>，這樣就可以避免當網站沒有對 <code>textarea</code> 指定 <code>font-family</code> 時看起來很突兀&#8230;</p> ]]></content:encoded> <wfw:commentRss>http://blog.gslin.org/archives/2011/11/14/2778/mac-%e4%b8%8b-google-chrome-%e7%9a%84-textarea-%e9%a0%90%e8%a8%ad%e5%ad%97%e5%9e%8b/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Google Chrome 的 user script 與 Greasemonkey 的不同&#8230;</title><link>http://blog.gslin.org/archives/2011/11/11/2777/google-chrome-%e7%9a%84-user-script-%e8%88%87-greasemonkey-%e7%9a%84%e4%b8%8d%e5%90%8c/</link> <comments>http://blog.gslin.org/archives/2011/11/11/2777/google-chrome-%e7%9a%84-user-script-%e8%88%87-greasemonkey-%e7%9a%84%e4%b8%8d%e5%90%8c/#comments</comments> <pubDate>Thu, 10 Nov 2011 21:41:00 +0000</pubDate> <dc:creator>Gea-Suan Lin</dc:creator> <category><![CDATA[Browser]]></category> <category><![CDATA[Computer]]></category> <category><![CDATA[Firefox]]></category> <category><![CDATA[GoogleChrome]]></category> <category><![CDATA[Murmuring]]></category> <category><![CDATA[Network]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[chrome]]></category> <category><![CDATA[google]]></category> <category><![CDATA[greasemonkey]]></category> <category><![CDATA[script]]></category> <category><![CDATA[user]]></category><guid
isPermaLink="false">http://blog.gslin.org/?p=2777</guid> <description><![CDATA[實在是睡不著，來整理一些資料&#8230; 不知道「User Scripts &#8211; The Chromium Projects」這份是否 outdated 了，但至少發現在 Google Chrome 裡面推薦用 @match 設定 url，不過原先的 @include 還是可以用： Support for Greasemonkey-style @include patterns is also implemented for compatibility, but @match is preferred. 在 Greasemonkey 的「Metadata Block &#8211; GreaseSpot」說明中則是用 @include 設定，直到 0.9.8 &#8230; <a
href="http://blog.gslin.org/archives/2011/11/11/2777/google-chrome-%e7%9a%84-user-script-%e8%88%87-greasemonkey-%e7%9a%84%e4%b8%8d%e5%90%8c/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<div
class="bottomcontainerBox" style=""><div
style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <iframe
src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.gslin.org%2Farchives%2F2011%2F11%2F11%2F2777%2Fgoogle-chrome-%25e7%259a%2584-user-script-%25e8%2588%2587-greasemonkey-%25e7%259a%2584%25e4%25b8%258d%25e5%2590%258c%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div><div
style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <g:plusone size="medium" href="http://blog.gslin.org/archives/2011/11/11/2777/google-chrome-%e7%9a%84-user-script-%e8%88%87-greasemonkey-%e7%9a%84%e4%b8%8d%e5%90%8c/"></g:plusone></div><div
style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <a
href="http://twitter.com/share" class="twitter-share-button" data-url="http://blog.gslin.org/archives/2011/11/11/2777/google-chrome-%e7%9a%84-user-script-%e8%88%87-greasemonkey-%e7%9a%84%e4%b8%8d%e5%90%8c/"  data-text="Google Chrome 的 user script 與 Greasemonkey 的不同&#8230;" data-count="horizontal" data-via="gslin"></a></div></div><div
style="clear:both"></div><div
style="padding-bottom:4px;"></div><p>實在是睡不著，來整理一些資料&#8230;</p><p>不知道「<a
href="http://www.chromium.org/developers/design-documents/user-scripts">User Scripts &#8211; The Chromium Projects</a>」這份是否 outdated 了，但至少發現在 <a
href="http://www.google.com/chrome">Google Chrome</a> 裡面推薦用 <code>@match</code> 設定 url，不過原先的 <code>@include</code> 還是可以用：</p><blockquote><p>Support for Greasemonkey-style @include patterns is also implemented for compatibility, but @match is preferred.</p></blockquote><p>在 Greasemonkey 的「<a
href="http://wiki.greasespot.net/Metadata_Block">Metadata Block &#8211; GreaseSpot</a>」說明中則是用 <code>@include</code> 設定，直到 0.9.8 (2011/08/01 release) 以及之後的版本才同時支援 <code>@include</code> 與 <code>@match</code>。</p><p>之後改寫 script 的時候再更新好了&#8230;</p> ]]></content:encoded> <wfw:commentRss>http://blog.gslin.org/archives/2011/11/11/2777/google-chrome-%e7%9a%84-user-script-%e8%88%87-greasemonkey-%e7%9a%84%e4%b8%8d%e5%90%8c/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>擋掉 Google Plus，加快 Google Reader 速度&#8230;</title><link>http://blog.gslin.org/archives/2011/11/05/2768/%e6%93%8b%e6%8e%89-google-plus%ef%bc%8c%e5%8a%a0%e5%bf%ab-google-reader-%e9%80%9f%e5%ba%a6/</link> <comments>http://blog.gslin.org/archives/2011/11/05/2768/%e6%93%8b%e6%8e%89-google-plus%ef%bc%8c%e5%8a%a0%e5%bf%ab-google-reader-%e9%80%9f%e5%ba%a6/#comments</comments> <pubDate>Sat, 05 Nov 2011 09:40:52 +0000</pubDate> <dc:creator>Gea-Suan Lin</dc:creator> <category><![CDATA[Browser]]></category> <category><![CDATA[Computer]]></category> <category><![CDATA[GoogleChrome]]></category> <category><![CDATA[Murmuring]]></category> <category><![CDATA[Network]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[WWW]]></category> <category><![CDATA[adblock]]></category> <category><![CDATA[api]]></category> <category><![CDATA[chrome]]></category> <category><![CDATA[experimental]]></category> <category><![CDATA[google]]></category> <category><![CDATA[plus]]></category> <category><![CDATA[reader]]></category><guid
isPermaLink="false">http://blog.gslin.org/?p=2768</guid> <description><![CDATA[Google Reader 這次改版另外一個為人詬病的問題是「變卡」，主要原因是 Google Plus。 第一個想到的解決是利用 Adblock Plus，將 http://www.google.com/reader/* 以及 https://www.google.com/reader/* 連到 https://plusone.google.com/* 的連線需求都都擋下來。但看了 Adblock Plus 的文件，不知道要怎麼設定&#8230; 後來想到的解法是自己寫 Google Chrome Extension，主要是很久沒寫都忘光了，剛好找個實際會用到的功能來寫&#8230; 主要是用到 chrome.tabs 與 chrome.experimental.webRequest 兩組 API 組合。其中後面這組 API 必須用 about:flags 打開權限才能使用。 成品在這：「google-reader-faster」，由於用到 Google Chrome 的 Experimental API 所以無法上傳到 Web &#8230; <a
href="http://blog.gslin.org/archives/2011/11/05/2768/%e6%93%8b%e6%8e%89-google-plus%ef%bc%8c%e5%8a%a0%e5%bf%ab-google-reader-%e9%80%9f%e5%ba%a6/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<div
class="bottomcontainerBox" style=""><div
style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <iframe
src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.gslin.org%2Farchives%2F2011%2F11%2F05%2F2768%2F%25e6%2593%258b%25e6%258e%2589-google-plus%25ef%25bc%258c%25e5%258a%25a0%25e5%25bf%25ab-google-reader-%25e9%2580%259f%25e5%25ba%25a6%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div><div
style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <g:plusone size="medium" href="http://blog.gslin.org/archives/2011/11/05/2768/%e6%93%8b%e6%8e%89-google-plus%ef%bc%8c%e5%8a%a0%e5%bf%ab-google-reader-%e9%80%9f%e5%ba%a6/"></g:plusone></div><div
style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"> <a
href="http://twitter.com/share" class="twitter-share-button" data-url="http://blog.gslin.org/archives/2011/11/05/2768/%e6%93%8b%e6%8e%89-google-plus%ef%bc%8c%e5%8a%a0%e5%bf%ab-google-reader-%e9%80%9f%e5%ba%a6/"  data-text="擋掉 Google Plus，加快 Google Reader 速度&#8230;" data-count="horizontal" data-via="gslin"></a></div></div><div
style="clear:both"></div><div
style="padding-bottom:4px;"></div><p><a
href="https://www.google.com/reader">Google Reader</a> 這次改版另外一個為人詬病的問題是「變卡」，主要原因是 <a
href="https://plus.google.com/">Google Plus</a>。</p><p>第一個想到的解決是利用 <a
href="http://adblockplus.org/">Adblock Plus</a>，將 <code>http://www.google.com/reader/*</code> 以及 <code>https://www.google.com/reader/*</code> 連到 <code>https://plusone.google.com/*</code> 的連線需求都都擋下來。但看了 Adblock Plus 的文件，不知道要怎麼設定&#8230;</p><p>後來想到的解法是自己寫 Google Chrome Extension，主要是很久沒寫都忘光了，剛好找個實際會用到的功能來寫&#8230; 主要是用到 <code><a
href="http://code.google.com/chrome/extensions/tabs.html">chrome.tabs</a></code> 與 <code><a
href="http://code.google.com/chrome/extensions/experimental.webRequest.html">chrome.experimental.webRequest</a></code> 兩組 API 組合。其中後面這組 API 必須用 <code>about:flags</code> 打開權限才能使用。</p><p>成品在這：「<a
href="https://github.com/gslin/google-reader-faster">google-reader-faster</a>」，由於用到 <a
href="http://www.google.com/chrome">Google Chrome</a> 的 Experimental API 所以無法上傳到 Web Store，所以暫時先用 dev mode 把 extension 讀進來用。之後要來再研究看看 Adblock Plus 是怎麼做到的&#8230;</p><p>把 Google Plus 擋掉後用鍵盤快速鍵操作順很多 XD</p> ]]></content:encoded> <wfw:commentRss>http://blog.gslin.org/archives/2011/11/05/2768/%e6%93%8b%e6%8e%89-google-plus%ef%bc%8c%e5%8a%a0%e5%bf%ab-google-reader-%e9%80%9f%e5%ba%a6/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: blog.gslin.org @ 2012-05-26 05:47:17 -->
