访问英文站直接调用谷歌翻译

由于工作需要Tc经常要访问英文站,可是Tc的英语很烂,每次都是要开启google翻译来协助浏览,今天教大家一个快速翻译的方法。首先建立一个收藏夹里添加这一个收藏名字就叫“翻译”,然后网址就直接复制下面的代码进去好了

javascript:var t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/?text='+t+'&hl=zh-CN&langpair=auto|zh-CN&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=zh-CN&langpair=auto|zh-CN&tbb=1&ie='+e;};

...