gvx
gvx
小狐狸
小狐狸
  • UID31627
  • 注册日期2010-01-15
  • 最后登录2013-05-02
  • 发帖数8
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
阅读:1464回复:1

請求高手們製作一個插件有3個按鈕(和翻譯有關)

楼主#
更多 发布于:2010-01-29 10:02
請求高手們製作一個插件有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);})())
smoke
千年狐狸
千年狐狸
  • UID3052
  • 注册日期2005-02-16
  • 最后登录2015-02-01
  • 发帖数2367
  • 经验12枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 社区居民
  • 忠实会员
1楼#
发布于:2010-01-29 10:02
bookmarklet不就行了
遇到问题请善用论坛搜索功能
游客

返回顶部