Translator

Press (F2) to Translate.

当前为 2016-07-17 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @icon http://file1.npage.de/007324/77/bilder/favicon.ico
  3. // @name Translator
  4. // @name:de Übersetzer
  5. // @namespace http://scriptz.de.to/
  6. // @description Press (F2) to Translate.
  7. // @description:de Drücken Sie (F2) zum übersetzen.
  8. // @include *://*
  9. // @version 4.0.0.4
  10. // @author Scriptz
  11. // @copyright 2013+ , Scriptz
  12. // @grant unsafeWindow
  13. // @supportURL mailto:scriptz@mail1a.de?subject=Translator
  14. // @license Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License; http://creativecommons.org/licenses/by-nc-nd/3.0/
  15. // ==/UserScript==
  16.  
  17. /* CHANGELOG
  18.  
  19. 4.0.0.4 (7/17/2016)
  20. - name: [DE]
  21. - descripton: [DE]
  22.  
  23. 4.0.0.3 (7/16/2016)
  24. - added changelog
  25. - added license
  26. */
  27.  
  28. // ==VAR==
  29. var jslink = "javascript";
  30. // ==============
  31.  
  32. // ==Function==
  33. unsafeWindow.translate = function(){
  34. window.location="http://translate.google.com/translate?sl=auto&u="+window.location;
  35. };
  36. // ==============
  37.  
  38. // ==Key==
  39. document.onkeydown= openPage ;
  40. function openPage(e) {
  41. e= window.event ? event : e;
  42. if (e.keyCode == 113 ) {location.href=jslink+":translate()";}
  43. }
  44. // ==============

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址