標籤彙整:searchplugins
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>
