您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Press H to toggle right-click spam on defly.io
- // ==UserScript==
- // @name Defly.io Right Click Spammer
- // @namespace http://tampermonkey.net/
- // @version 1.0
- // @description Press H to toggle right-click spam on defly.io
- // @author OpenAI
- // @match *://defly.io/*
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- let spamming = false;
- let spamInterval;
- function simulateRightClick() {
- const event = new MouseEvent("contextmenu", {
- bubbles: true,
- cancelable: true,
- view: window,
- button: 2, // Right-click
- buttons: 2, // Right button
- clientX: window.innerWidth / 2,
- clientY: window.innerHeight / 2
- });
- document.dispatchEvent(event);
- }
- function startSpamming() {
- if (!spamInterval) {
- spamInterval = setInterval(simulateRightClick, 10); // Adjust speed here (ms)
- }
- }
- function stopSpamming() {
- clearInterval(spamInterval);
- spamInterval = null;
- }
- document.addEventListener('keydown', function(e) {
- if (e.key === 'h' || e.key === 'H') {
- spamming = !spamming;
- if (spamming) {
- startSpamming();
- console.log("Right-click spamming started.");
- } else {
- stopSpamming();
- console.log("Right-click spamming stopped.");
- }
- }
- });
- })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址