Firefox 3.1如何實作searchplugins

因為人在澳洲,在逛線上購物的網站時常常會需要做匯率的計算,所以自然而然腦筋就動到firefox的search框框上去了。 之前在firefox 2.x的時候有自己implement過search plugin, 基本上就是寫個簡單的xml檔,然後放到%Firefox安裝目錄%\searchplugins裡面就會動了,但是今天在做的時候卻始終無法出現我自製的searchplugins。

到網路上找了一下,發現一個簡單的解決方法:

刪除 C:\Documents and Settings\你的使用者名稱\Application Data\Mozilla\Firefox\Profiles\一組亂碼.default\search.json

重開firefox後就出現啦。

最後,順便分享一下我製作的匯率轉匯程式,你可以輕易的將相關幣別修改轉匯換成你所需的。

<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">
<ShortName>Yahoo Ex!</ShortName>
<Description>Yahoo Exchange</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16">data:image/x-icon;base64,R0lGODlhEAAQAJECAP8AAAAAAP///wAAACH5BAEAAAIALAAAAAAQABAAAAIplI+py+0NogQuyBDEnEd2kHkfFWUamEzmpZSfmaIHPHrRguUm/fT+UwAAOw==</Image>
<Url type="text/html" method="GET" template="http://tw.money.yahoo.com/currency_exc_result">
  <Param name="amt" value="{searchTerms}"/>
  <Param name="from" value="AUD"/>
  <Param name="to" value="TWD"/>
</Url>
<SearchForm>http://tw.money.yahoo.com/</SearchForm>
</SearchPlugin>
本篇發表於 Firefox 並標籤為 , , 。將永久鏈結加入書籤。

Firefox 3.1如何實作searchplugins 有 2 則回應

  1. Goldie Lin 說道:

    怪了,我的經驗卻是把 .xml 檔丟到 %Firefox Profile%\searchplugins 目錄才,就會自G機

  2. Goldie Lin 說道:

    怪了,我的經驗卻是把 .xml 檔丟到 %Firefox Profile%\searchplugins 目錄才,就會自動抓到 (上篇打錯字 = =;)

發表迴響

您的電子郵件位址並不會被公開。 必要欄位標記為 *

*

您可以使用這些 HTML 標籤與屬性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>