您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
h5魔塔钥匙修改,录像不可用。
// ==UserScript== // @name h5魔塔钥匙修改 // @namespace your-namespace // @version 1.0 // @description h5魔塔钥匙修改,录像不可用。 // @AuThor a // @match *://h5mota.com/games/* // @grant GM_addStyle // ==/UserScript== (function() { 'use strict'; // 创建悬浮球 const floatingButton = document.createElement('div'); floatingButton.className = 'floating-button'; floatingButton.style.position = 'fixed'; floatingButton.style.bottom = '50px'; floatingButton.style.right = '20px'; floatingButton.style.width = '45px'; floatingButton.style.height = '45px'; floatingButton.style.borderRadius = '50%'; floatingButton.style.backgroundColor = '#FF6666'; floatingButton.style.display = 'flex'; floatingButton.style.justifyContent = 'center'; floatingButton.style.alignItems = 'center'; floatingButton.style.boxShadow = '0 3px 10px rgba(0, 0, 0, 0.1)'; floatingButton.style.cursor = 'pointer'; floatingButton.style.transition = 'background-color 0.3s ease, box-shadow 0.3s ease'; // 修改过渡效果 // 添加特效样式 floatingButton.style.boxShadow = '0 0 5px rgba(0, 0, 0, 0.1)'; // 修改阴影大小 // 创建文本节点 const buttonText = document.createTextNode('cheat'); // 创建 span 元素并设置样式 const buttonSpan = document.createElement('span'); buttonSpan.style.color = '#FFFFFF'; buttonSpan.appendChild(buttonText); // 将 span 元素添加至悬浮球中 floatingButton.appendChild(buttonSpan); // 将悬浮球添加至文档中 document.body.appendChild(floatingButton); // 鼠标移入时添加特效 floatingButton.addEventListener('mouseenter', function() { floatingButton.style.boxShadow = '0 0 10px rgba(0, 0, 0, 0.3)'; // 修改阴影大小 }); // 鼠标移出时取消特效 floatingButton.addEventListener('mouseleave', function() { floatingButton.style.boxShadow = '0 0 5px rgba(0, 0, 0, 0.1)'; // 修改阴影大小 }); // 给悬浮按钮绑定点击事件 floatingButton.addEventListener('click', function() { core.addItem('yellowKey',100);core.addItem('blueKey',100);core.addItem('redKey',100);core.addItem('greenKey',100) }); })();