Firefox火狐浏览器网页翻译,只需将下面的代码加入到书签,用时点一下这个书签即可,勿需安装扩展插件。
建议放在书签工具栏中,这样用起来更方便。三个代码都不错哦!
一、有道词典适合整页+局部
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'/web2/seed.js?'%20+%20Date.parse(new%20Date()));document.body.appendChild(element);})())
二、谷歌整页翻译
javascript: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!=''){location.href='/?text='+t+'&hl=zh-CN&langpair=auto|zh-CN&tbb=1&ie='+e;}else{location.href='/translate?u='+encodeURIComponent(location.href)+'&hl=zh-CN&langpair=auto|zh-CN&tbb=1&ie='+e;};
三、谷歌翻译
javascript:{d=document;b=d.body;o=d.createElement('scri'+'pt');o.setAttribute('src','/translate_a/element.js?cb=googleTranslateElementInit');o.setAttribute('type','text/javascript');b.appendChild(o);v=b.insertBefore(d.createElement('div'),b.firstChild);v.id='google_translate_element';v.style.display='none';p=d.createElement('scri'+'pt');p.text='function%20googleTranslateElementInit(){new%20google.translate.TranslateElement({pageLanguage:%22%22},%22google_translate_element%22);}';p.setAttribute('type','text/javascript');b.appendChild(p);}void%200
四、划词翻译脚本
/scripts/show/36898
如果觉得《【Firefox】火狐浏览器网页翻译 只需代码加入书签即可》对你有帮助,请点赞、收藏,并留下你的观点哦!