safari如何在線網頁翻譯_safari網頁翻譯方法 safari如何在線翻譯網頁,無數人都嘗試過這個可能,但是卻都铩羽而歸。不要緊,這次小編沒白忙活,終於找到了safari如何在線網頁翻譯_safari網頁翻譯方法,並無償獻出。
【safari如何在線網頁翻譯_safari網頁翻譯方法】
打開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;};
例如打開威鋒網,收藏網址,再進入收藏編輯,找到剛才收藏的威鋒網,把他編輯,把地址替換成以上其中之一代碼,再把威鋒網的名稱改成你自己喜歡的名稱(例如有道翻譯),改好儲存。位置把他放在個人收藏書簽,方便打開。ok這樣就可以了,在浏覽英文網頁時只要點一下那書簽(有道翻譯)就行了。喜歡的童靴記得加分幫忙頂起來。
必應翻譯(中文)
javascript:(function(){var s = document.createElement('script'); s.type = 'text/javascript'; s.src = 'http://labs.microsofttranslator.com/bookmarklet/default.aspx?f=js&to=zh-chs'; document.body.insertBefore(s, document.body.firstChild);})()
必應翻譯(繁中)javascript:(function(){var s = document.createElement('script'); s.type = 'text/javascript'; s.src = 'http://labs.microsofttranslator.com/bookmarklet/default.aspx?f=js&to=zh-cht'; document.body.insertBefore(s, document.body.firstChild);})()
必應翻譯(英文)
javascript:(function(){var s = document.createElement('script'); s.type = 'text/javascript'; s.src = 'http://labs.microsofttranslator.com/bookmarklet/default.aspx?f=js&to=en'; document.body.insertBefore(s, document.body.firstChild);})()
谷歌翻譯(繁中)
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-TW&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&hl=zh-CN&langpair=auto|zh-TW&tbb=1&ie='+e;};
谷歌翻譯(英文)
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|en&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&hl=zh-CN&langpair=auto|en&tbb=1&ie='+e;};
以上就是safari如何在線網頁翻譯_safari網頁翻譯方法,希望對各位有所幫助。