Translator

Press (F2) to Translate.

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

  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.5
  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. // ==VAR==
  18. var jslink = "javascript";
  19. // ==============
  20.  
  21. // ==Function==
  22. unsafeWindow.translate = function(){
  23. window.location="http://translate.google.com/translate?sl=auto&u="+window.location;
  24. };
  25. // ==============
  26.  
  27. // ==Key==
  28. document.onkeydown= openPage ;
  29. function openPage(e) {
  30. e= window.event ? event : e;
  31. if (e.keyCode == 113 ) {location.href=jslink+":translate()";}
  32. }
  33. // ==============

QingJ © 2025

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