您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a button to automatically copy page source, and open solution page
当前为
// ==UserScript== // @name Negg Cave Solver // @namespace Neopets // @version 1.0 // @description Adds a button to automatically copy page source, and open solution page // @match *://www.neopets.com/shenkuu/neggcave/ // @grant GM_openInTab // @grant GM_setClipboard // @author - // ==/UserScript== /* PLEASE BE AWARE THAT WHEN YOU CLICK THE BUTTON IT WILL OVERWRITE WHATEVER IS IN YOUR CLIPBOARD!!!! YOU HAVE BEEN WARNED! */ // Create the button const itemCheckerButton = document.createElement("button") // Create the button element itemCheckerButton.innerText = "Get the solution" // Button text itemCheckerButton.style.margin = "0 0.5em" // Styling for the button const titleArea = document.querySelector(".content > b:nth-child(12)") // Location to place the button titleArea.after(itemCheckerButton) // Place the button // Add an onClick event to the button to open the solver page itemCheckerButton.onclick = e => { // Copy page source to clipboard GM_setClipboard(document.documentElement.outerHTML) // Open the puzzle solver page in a new tab GM_openInTab("https://thedailyneopets.com/articles/negg-solver/") }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址