您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
解放你的手
当前为
// ==UserScript== // @name NovelAI 连点器 // @name:en NovelAI Auto Clicker // @namespace https://novelai.net // @version 1.2 // @description:zh-cn 解放你的手 // @description:en to free your hands // @author LigHT // @license MIT // @match https://novelai.net/image // @grant none // @icon https://novelai.net/icons/novelai-round.png // @description 解放你的手 // ==/UserScript== // Create a button element var button = document.createElement("button"); button.innerHTML = "run"; button.style.position = "fixed"; button.style.bottom = "0.5%"; button.style.right = "0.5%"; button.style.zIndex = "9999"; button.style.backgroundColor = '#13152c'; button.style.color = '#f5f3c2'; button.style.borderRadius = '3px'; button.style.border = '0.01px solid'; button.style.borderColor = 'rgba(40, 43, 73, 1)'; button.style.fontFamily = 'Source Sans Pro'; button.style.fontSize = '15px'; button.style.cursor = "pointer"; document.body.appendChild(button); // Make the button draggable //button.onmousedown = function(event) { // Get the mouse cursor position at startup // var pos1 = event.clientX; // var pos2 = event.clientY; // Call a function whenever the cursor moves // document.onmousemove = function(event) { // Calculate the new cursor position // var pos3 = event.clientX; // var pos4 = event.clientY; // Set the button's new position // button.style.left = (button.offsetLeft - pos1 + pos3) + "px"; // button.style.top = (button.offsetTop - pos2 + pos4) + "px"; // Update the old cursor position // pos1 = pos3; // pos2 = pos4; // }; // Stop moving when mouse button is released // document.onmouseup = function() { // document.onmousemove = null; // document.onmouseup = null; // }; //}; var interval; function clickElement() { var target = document.getElementsByClassName("sc-5ef2c1dc-21")[0]; var event = new MouseEvent("click", { bubbles: true, cancelable: true, view: window }); target.dispatchEvent(event); } // Add a click event listener to the button button.onclick = function() { if (interval) { clearInterval(interval); interval = null; button.innerHTML = "run"; } else { // Set the interval to call the click function every second interval = setInterval(clickElement, 1000); button.innerHTML = "pause"; } };
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址