您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a button to automatically copy page source, and open solution page
// ==UserScript== // @name Negg Cave Solver // @namespace Neopets // @match *://www.neopets.com/shenkuu/neggcave/ // @match *://thedailyneopets.com/articles/negg-solver/ // @version 1.1 // @author themagicteeth // @grant GM_openInTab // @grant GM_setValue // @grant GM_getValue // @description Adds a button to automatically copy page source, and open solution page // ==/UserScript== function makeButton(text) { const copyButton = document.createElement("button") // Create the button element copyButton.innerText = text // Button text copyButton.style.margin = "0 0.5em" // Styling for the button return copyButton } // Set onClick of button to open the link in new tab function setOnClick(button, url) { button.onclick = e => { GM_openInTab(url) } } if (!document.URL.includes("thedailyneopets")) { GM_setValue("source", document.documentElement.outerHTML) } // Negg cave if (document.URL.includes("neggcave")) { const beforeButton = document.getElementById("mnc_popup_generic_wrongdate") // Location to place the button const newButton = makeButton("Get the solution!") beforeButton.after(newButton) setOnClick(newButton, "https://thedailyneopets.com/articles/negg-solver/") } if (document.URL.includes("negg-solver")) { document.getElementById("PageSourceBox").value = GM_getValue("source") }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址