首先是擴展写妥,安裝不了擴展的參考http://tieba.baidu.com/p/4299907168嘴秸,因為國情原因,只會推薦國內(nèi)可以正常翻譯的擴展腳本蔬捷。
如果以下有任何擴展或者腳本在https網(wǎng)頁無法翻譯的可以嘗試地址欄打開about:config?filter=security.mixed_content.block_active_content
雙擊修改為false
翻譯文本來自http://jandan.net/2016/01/26/general-science-smarts.html
http://nymag.com/scienceofus/2016/01/test-your-general-science-smarts-with-this-quiz.html
BingDict :: Firefox 附加組件
https://addons.mozilla.org/zh-CN/firefox/addon/bingdict/
支持翻譯單詞厉亏,句子董习,使用bing翻譯接口
譯庫網(wǎng)頁翻譯——商務(wù)版 :: Firefox 附加組件
https://addons.mozilla.org/zh-CN/firefox/addon/%E8%AF%91%E5%BA%93%E7%BD%91%E9%A1%B5%E7%BF%BB%E8%AF%91%E5%95%86%E5%8A%A1%E7%89%881/
譯庫網(wǎng)頁翻譯——旗艦版 :: Firefox 附加組件
https://addons.mozilla.org/zh-CN/firefox/addon/%E8%AF%91%E5%BA%93%E7%BD%91%E9%A1%B5%E7%BF%BB%E8%AF%91%E5%AE%98%E6%96%B9%E7%89%88/
http://web.yeekit.com/,支持整頁翻譯爱只,整句翻譯皿淋,劃詞翻譯。譯庫自己的api。
S3.Google Translator
https://addons.mozilla.org/zh-CN/firefox/addon/s3google-translator/
專門為zh-cn用戶做了優(yōu)化窝趣,調(diào)用translate.google.cn疯暑,所以劃詞翻譯,整句翻譯可以正常使用哑舒,整頁翻譯就不用想了妇拯。
其他調(diào)用谷歌翻譯的擴展自行查找? https://addons.mozilla.org/zh-CN/firefox/tag/translate
https://addons.mozilla.org/zh-CN/firefox/addon/kuai-translator/
用的是百度翻譯api,失效中散址。
Easy 谷歌翻譯 :: Firefox 附加組件
https://addons.mozilla.org/zh-CN/firefox/addon/easy-translate/
支持劃詞翻譯乖阵,整句翻譯,使用http://easytransl.com/的api
Select and translate :: Firefox 附加組件
https://addons.mozilla.org/zh-CN/firefox/addon/select-and-translate/
支持劃詞翻譯预麸,整句翻譯,使用yandex儒将,bing吏祸,frengly的翻譯api,有個問題是句子不能太長钩蚊。
趣查 GoDictionary :: Firefox 附加組件
https://addons.mozilla.org/zh-CN/firefox/addon/%E8%B6%A3%E6%9F%A5-godictionary/
只支持單詞翻譯贡翘,有道詞典、必應(yīng)詞典砰逻、愛詞霸詞典三個接口鸣驱。
網(wǎng)頁翻譯——您的英文閱讀好幫手
http://mozilla.com.cn/thread-52722-1-1.html
中國謀智出品,使用有道翻譯api蝠咆,支持整頁翻譯踊东。注意選擇全文翻譯模式。
以下是腳本
[FireGestures腳本分享]google劃詞翻譯
http://tieba.baidu.com/p/2828150548
推薦刚操,可劃詞翻譯闸翅,整句翻譯,支持google菊霜,bing坚冀,baidu三大服務(wù)。需要安裝FireGestureshttps://addons.mozilla.org/zh-CN/firefox/addon/firegestures/
有道取詞
https://greasyfork.org/zh-CN/scripts/12758-youdaodict
其他衍生腳本
有道劃詞翻譯
https://greasyfork.org/zh-CN/scripts/15844-%E6%9C%89%E9%81%93%E5%88%92%E8%AF%8D%E7%BF%BB%E8%AF%91
AC-有道取詞+翻譯
https://greasyfork.org/zh-CN/scripts/14197-ac-%E6%9C%89%E9%81%93%E5%8F%96%E8%AF%8D-%E7%BF%BB%E8%AF%91
可劃詞翻譯鉴逞,整句翻譯记某,使用有道api。
iciba劃詞翻譯
https://greasyfork.org/zh-CN/scripts/6303-iciba%E5%88%92%E8%AF%8D%E7%BF%BB%E8%AF%91
劃詞翻譯腳本构捡,不能翻譯句子液南,使用iciba。
谷歌翻譯提示框擴展
https://greasyfork.org/zh-CN/scripts/16203-%E8%B0%B7%E6%AD%8C%E7%BF%BB%E8%AF%91%E6%8F%90%E7%A4%BA%E6%A1%86%E6%89%A9%E5%B1%95
translate.google tooltip
https://greasyfork.org/zh-CN/scripts/9285-translate-google-tooltip
需要注意的是google translate api 在2015年12月有更新叭喜,在這之后有更新的腳本才能用贺拣,否則是失效的。
支持劃詞翻譯,整句翻譯譬涡。安裝完腳本之后在about:addons找到并點擊選項編輯腳本闪幽,將translate.google.com修改為translate.google.cn即可正常使用。
還是不行的話涡匀,hosts文件添加一行 203.208.43.82? translate.google.cn
? 以下是書簽
使用辦法大概可以參考 【教程】各種瀏覽器運行所謂「JS代碼/腳本」的方法
http://tieba.baidu.com/p/1620692564
就是右鍵書簽欄新建一個書簽盯腌,名字寫個自己記得住的名字,地址欄寫javascript
開頭的那串字符陨瘩,保存腕够,需要使用的時候點擊一下書簽欄的書簽就行。
以下書簽來自小幽理 http://tieba.baidu.com/f?ct=335675392&tn=baiduPostBrowser&z=3341607202&sc=69930533286#69930533286
javascript:(function(){script=document.createElement('script');script.src='http://dict.bing.com.cn/cloudwidget/Scripts/Generated/BingTranslate_Selection_ShowIcon.js';script.onload=INIT;document.body.appendChild(script);})();function%20INIT(){BingCW.Init({MachineTranslation:true,WebDefinition:true});}
bing劃詞翻譯舌劳,整句翻譯
javascript:(function(){var%20s%20=%20document.createElement('script');%20s.type%20=%20'text/javascript';%20s.src%20=%20'http://labs.microsofttranslator.com/bookmarklet/default.aspx?f=js&to=zh-chs';%20document.body.insertBefore(s,%20document.body.firstChild);})()
bing整頁翻譯
javascript:%20void((function()%20{var%20element%20=%20document.createElement('script');element.id%20=%20'outfox_seed_js';element.charset%20=%20'utf-8',element.setAttribute('src',%20'http://fanyi.youdao.com/web2/seed.js?'%20+%20Date.parse(new%20Date()));document.body.appendChild(element);})())
有道整頁翻譯帚湘,和之前的有道翻譯擴展一樣。
javascript:void((function()%20{var%20element=document.createElement('script');%20element.setAttribute('src',%20'http://dict.cn/hc/init.php');%20document.body.appendChild(element);})())
Dict.CN海詞 - 劃詞翻譯
javascript:void((function(){hjelm=document.createElement('script');hjelm.setAttribute('src','http://dict.hjenglish.com/js/dict.js');document.body.appendChild(hjelm);})())
滬江小D - 劃詞翻譯
javascript:void((function()%20{var%20element=document.createElement('script');%20element.setAttribute('src',%20'http://www.zdic.net/tools/zih.asp');%20document.body.appendChild(element);})())
漢典查字甚淡,針對中文大诸。
最后火狐自帶的翻譯,支持bing和yandex的api贯卦,因為正式版還沒有出現(xiàn)资柔,并且步驟有些繁瑣,需要自己申請api撵割,就不提了贿堰,等以后正式版出現(xiàn)了再說。