Autoswap right click /shoot once /not toggle

right click to fire secondary once

当前为 2017-03-12 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Autoswap right click /shoot once /not toggle
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.01
  5. // @description right click to fire secondary once
  6. // @author meatman2tasty
  7. // @match http://karnage.io/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. $("#gameHudContainer").mousedown(function(ev){
  12. if(ev.which == 3 || player.alive || inWindow)
  13. {
  14. incWeapon(-1);
  15. }
  16. });
  17.  
  18. $("#gameHudContainer").mouseup(function(ev){
  19. if(ev.which == 3)
  20. {
  21. setTimeout(incWeapon(1),100);
  22. }
  23. });