Glowslinging hotkey script

Use 1-5 to select an attack, 1-5 or f to begin a fight or duel again

  1. // ==UserScript==
  2. // @name Glowslinging hotkey script
  3. // @namespace Conster
  4. // @description Use 1-5 to select an attack, 1-5 or f to begin a fight or duel again
  5. // @version 1.2
  6. // @history 1.2 New domain - animecubedgaming.com - Channel28
  7. // @history 1.1 Now https compatible (Updated by Channel28)
  8. // @include http*://*animecubed.com/billy/bvs/billycon-glowslingfight.html
  9. // @include http*://*animecubed.com/billy/bvs/billycon-glowslinging.html
  10. // @include http*://*animecubed.com/billy/bvs/billycon-register.html
  11. // @include http*://*animecubedgaming.com/billy/bvs/billycon-glowslingfight.html
  12. // @include http*://*animecubedgaming.com/billy/bvs/billycon-glowslinging.html
  13. // @include http*://*animecubedgaming.com/billy/bvs/billycon-register.html
  14. // @grant none
  15. // ==/UserScript==
  16.  
  17. function process_event(event) {
  18. if (event.keyCode>=49 && event.keyCode<=53) { //1-5
  19. if (document.forms.namedItem( "startsling2" ) ) {
  20. document.forms.namedItem("startsling2").submit();
  21. } else if (document.forms.namedItem( "slingact" ) ) {
  22. var pickthis = event.keyCode-49;
  23. var str = "//input [@id='gslact"+pickthis+"']";
  24. var v = document.evaluate(str, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  25. v.snapshotItem(0).checked = true;
  26. document.forms.namedItem("slingact").submit();
  27. } else if (document.forms.namedItem( "goslinag" ) ) {
  28. document.forms.namedItem("goslinag").submit();
  29. } else if (document.forms.namedItem( "gosling" ) ) {
  30. document.forms.namedItem("gosling").submit();
  31. } else if (document.forms.namedItem( "glowsling" ) ) {
  32. document.forms.namedItem("glowsling").submit();
  33. }
  34. } else if (event.keyCode==70) { //f
  35. if (document.forms.namedItem( "startsling2" ) ) {
  36. document.forms.namedItem("startsling2").submit();
  37. } else if (document.forms.namedItem( "slingact" ) ) {
  38. document.forms.namedItem("slingact").submit();
  39. } else if (document.forms.namedItem( "goslinag" ) ) {
  40. document.forms.namedItem("goslinag").submit();
  41. } else if (document.forms.namedItem( "gosling" ) ) {
  42. document.forms.namedItem("gosling").submit();
  43. } else if (document.forms.namedItem( "glowsling" ) ) {
  44. document.forms.namedItem("glowsling").submit();
  45. }
  46. }
  47. }
  48.  
  49. window.addEventListener("keyup", process_event, false);

QingJ © 2025

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