翻译指令代码
使用说明:浏览器新建空白书签,修改书签名为翻译,复制以下代码到书签内容。随后遇到外文网站页面,点击翻译即可。
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-tw&langpair=auto|zh-tw&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&hl=zh-tw&langpair=auto|zh-tw&tbb=1&ie='+e;};
来自 豆瓣App
还没人赞这篇日记