阅读:1464回复:1
請求高手們製作一個插件有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楼#
发布于:2010-01-29 10:02
bookmarklet不就行了
|
|
|