返回列表 发帖

[经验交流] 最简单而最强大的利用google翻译的方法

从firefox刚刚学来的, 在TW上测试成功了:

打开一个任意网页, 右键----添加到收藏夹, 在弹出窗口中,
名称:

地址:
javascript:(function(){var%20t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text));var%20e=(document.charset||document.characterSet);if(t!=''){window.open('http://translate.google.com/translate_t?hl=en#auto|en|'+t);}else{window.open('http://translate.google.com/translate?u='+escape(location.href)+'&hl=en&ie='+e+'&sl=auto&tl=en');};})();  


添加完后, 重复一次, 这次填:
名称:

地址:
javascript:(function(){var%20t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text));var%20e=(document.charset||document.characterSet);if(t!=''){window.open('http://translate.google.cn/translate_t?hl=zh-CN#auto|zh-CN|'+t);}else{window.open('http://translate.google.cn/translate?u='+escape(location.href)+'&hl=zh-CN&ie='+e+'&sl=auto&tl=zh-CN');};})();  




最后, 你的收藏栏增加了两个书签. 占地很小.    功能: 任意语言的网页可以方便地翻译为英文/中文 (在新标签页中)

(西方语言, 如果你懂英文就尽量翻译成英文. 否则西语由机器翻译成中文,效果很差的)


不多说了. 本贴加精吧.

呵呵~我用插件区的插件,一点即可
不过还是谢谢LZ

TOP

返回列表