Translator

Press (F2) to Translate

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

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

QingJ © 2025

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