Translator

Press (F2) to Translate

当前为 2015-09-09 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Translator
  3. // @namespace http://scriptz.de.to/
  4. // @description Press (F2) to Translate
  5. // @include http://*/*
  6. // @include https://*/*
  7. // @version 3.7
  8. // @author Scriptz
  9. // @copyright 2013+ , Scriptz
  10. // ==/UserScript==
  11.  
  12. // ==Profile==
  13. unsafeWindow.translate = function(){
  14. window.location="http://translate.google.com/translate?sl=auto&u="+window.location
  15. }
  16. // ==============
  17.  
  18. // ==Key==
  19. document.onkeydown= openPage ;
  20. function openPage(e) {
  21. e= window.event ? event : e;
  22. if (e.keyCode == 113 ) { location.href="javascript:translate()" ; }
  23. }
  24. // ==============

QingJ © 2025

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