新增加的FireFox Ubiquity指令:books、k+與en2zh

2008/10/18 |

分類:
Mozilla軟體

| 點擊數: 3 / 1073
又增加幾個Ubiquity指令,能處理下列功能:
- 博客來關鍵字搜尋,如:books 德川家康
- Yahoo!知識+搜尋,如:k+ Twitter
- 將目前網頁翻譯為中文,使用Google的翻譯功能將英文網頁翻譯為繁體中文,如:en2zh
下載資訊:
增加的程式碼:
- CmdUtils.CreateCommand({
- name: "books",
- author: { name: "emisjerry"},
- contributors: ["emisjerry"],
- license: "GPL",
- description: "博客來關鍵字搜尋",
- takes: {"要查詢的商品": noun_arb_text},
- icon: "http://www.books.com.tw/favicon.ico",
- execute: function(directObject) {
- Utils.openUrlInBrowser("http://search.books.com.tw/exep/prod_search.php?cat=all&key=" +
- encodeURIComponent(directObject.text));
- }
- });
-
- CmdUtils.CreateCommand({
- name: "k+",
- author: { name: "emisjerry"},
- contributors: ["emisjerry"],
- license: "GPL",
- description: "Yahoo!知識+搜尋",
- takes: {"要搜尋的內容": noun_arb_text},
- icon: "http://www.books.com.tw/favicon.ico",
- execute: function(directObject) {
- Utils.openUrlInBrowser("http://tw.knowledge.yahoo.com/search/search_result?p=" +
- encodeURIComponent(directObject.text));
- }
- });
-
- CmdUtils.CreateCommand({
- name: "en2zh",
- icon: "http://www.google.com/favicon.ico",
- description: "將目前網頁翻譯為中文",
- execute: function() {
- var word = context.focusedWindow.document.location;
- Utils.openUrlInBrowser( "http://translate.google.com/translate?sl=en&tl=zh-TW&hl=zh-TW&ie=UTF-8&u=" +
- escape(word) );
- },
- preview : function(obj){
- obj.innerHTML = "將目前網頁翻譯為中文";
- }
- });
相關文章
- 使用Memory Fox附加元件為Firefox進行定期記憶體瘦身 (2010/02/27, 3則留言)
- [Firefox] 自動統計的瀏覽紀錄排行榜外掛:New Tab King (2009/04/26, 0則留言)
- 重置Firefox Ubiquity的設定 (2009/04/12, 0則留言)
- 用WordPress的WPtouch外掛顯示iPhone與HTC Touch HD的精簡樣式[修訂] (2009/02/02, 0則留言)
- Ubiquity在歲末又向前邁了一小步;0.1.3釋出 (2008/12/31, 4則留言)
- 網路衝浪新幫手-無所不在的Firefox Ubiquity (2008/12/16, 10則留言)
- 幾個好用的FireFox Ubiquity命令:shorten、goto和screengrab (2008/10/26, 0則留言)
- 開始試用FireFox 3.1 Beta 1 (2008/10/18, 0則留言)
- 用Ubiquity快速發佈Plurk訊息-用%l替換網址 (2008/10/07, 0則留言)
- 用Ubiquity快速發佈 Plurk 訊息-改良版 (2008/09/27, 0則留言)
最新留言