tmd shortcuts

press U - for Urmarire link, T - for Torrents link

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

  1. // ==UserScript==
  2. // @name tmd shortcuts
  3. // @namespace http://your.homepage/
  4. // @version 0.2
  5. // @description press U - for Urmarire link, T - for Torrents link
  6. // @author drakulaboy
  7. // @include http://www.torrentsmd.*/*
  8. // @include http://www.torrentsmoldova.*/*
  9. // @require http://code.jquery.com/jquery-2.1.1.min.js
  10. // ==/UserScript==
  11. ///////////////Cale scurta la Urmărire
  12. $(window).keydown(function (evt) {
  13. if (evt.target.tagName.toLowerCase() !== 'input' &&
  14. evt.target.tagName.toLowerCase() !== 'textarea' && evt.which == 85) {
  15. window.location.href="/watcher.php";
  16. }
  17. });
  18. ///////////////Cale scurta la Torrente
  19. $(window).keydown(function (evt) {
  20. if (evt.target.tagName.toLowerCase() !== 'input' &&
  21. evt.target.tagName.toLowerCase() !== 'textarea' && evt.which == 84) {
  22. window.location.href = "/browse.php";
  23. }
  24. });