MozTW 討論區
https://forum.moztw.org/

請求高手們製作一個插件有3個按鈕(和翻譯有關)
https://forum.moztw.org/viewtopic.php?f=11&t=29391
1 頁 (共 1 頁)

發表人:  gvx [ 2010-01-29, 10:03 ]
文章主題 :  請求高手們製作一個插件有3個按鈕(和翻譯有關)

請求高手們製作一個插件有3個按鈕

圖檔

按鈕1為 google 的 自動偵測語系->翻譯為中文

javascript:(function(){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!=''){window.open('http://translate.google.tw/translate_t?hl=zh-TW#auto|zh-TW|'+t);}else{window.open('http://translate.google.tw/translate?u='+escape(location.href)+'&hl=zh-TW&ie='+e+'&sl=auto&tl=zh-TW');};})();

按鈕2為 google 的 自動偵測語系->翻譯為英文

javascript:(function(){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!=''){window.open('http://translate.google.tw/translate_t?hl=en-US#auto|en-US|'+t);}else{window.open('http://translate.google.tw/translate?u='+escape(location.href)+'&hl=en-US&ie='+e+'&sl=auto&tl=en-US');};})();

按鈕3為 畫詞

javascript:void((function()%20{var%20element=document.createElement('script');%20element.setAttribute('src',%20'http://dict.cn/hc/init.php');%20document.body.appendChild(element);})())

1 頁 (共 1 頁) 所有顯示的時間為 UTC + 8 小時
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/