Defly.io Right Click Spammer

Press H to toggle right-click spam on defly.io

  1. // ==UserScript==
  2. // @name Defly.io Right Click Spammer
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Press H to toggle right-click spam on defly.io
  6. // @author OpenAI
  7. // @match *://defly.io/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. let spamming = false;
  15. let spamInterval;
  16.  
  17. function simulateRightClick() {
  18. const event = new MouseEvent("contextmenu", {
  19. bubbles: true,
  20. cancelable: true,
  21. view: window,
  22. button: 2, // Right-click
  23. buttons: 2, // Right button
  24. clientX: window.innerWidth / 2,
  25. clientY: window.innerHeight / 2
  26. });
  27. document.dispatchEvent(event);
  28. }
  29.  
  30. function startSpamming() {
  31. if (!spamInterval) {
  32. spamInterval = setInterval(simulateRightClick, 10); // Adjust speed here (ms)
  33. }
  34. }
  35.  
  36. function stopSpamming() {
  37. clearInterval(spamInterval);
  38. spamInterval = null;
  39. }
  40.  
  41. document.addEventListener('keydown', function(e) {
  42. if (e.key === 'h' || e.key === 'H') {
  43. spamming = !spamming;
  44. if (spamming) {
  45. startSpamming();
  46. console.log("Right-click spamming started.");
  47. } else {
  48. stopSpamming();
  49. console.log("Right-click spamming stopped.");
  50. }
  51. }
  52. });
  53. })();

QingJ © 2025

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