美文网首页
safari 网页即时翻译

safari 网页即时翻译

作者: OnceWhite | 来源:发表于2016-09-30 13:32 被阅读1468次

    safari网页即时翻译→引用

    有道翻译至中文:

    javascript: void((function() {var element = document.createElement('script');element.id = 'outfox_seed_js';element.charset = 'utf-8',element.setAttribute('src', 'http://fanyi.youdao.com/web2/seed.js?' + Date.parse(new Date()));document.body.appendChild(element);})())

    谷歌翻译至中文:

    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='+encodeURIComponent(location.href)+'&hl=zh-CN&langpair=auto|zh-CN&tbb=1&ie='+e;};

    相关文章

      网友评论

          本文标题:safari 网页即时翻译

          本文链接:https://www.haomeiwen.com/subject/ygnlyttx.html