您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a link to daily quests if available
当前为
// ==UserScript== // @name Neopets - Daily Quest Helper // @namespace neopets // @author blast me snowdaddy // @description Adds a link to daily quests if available // @match *://*.neopets.com/questlog/ // @grant none // @version 0.0.1.20231107215009 // ==/UserScript== (function() { 'use strict'; // Function to create a link function createLink(url) { const link = document.createElement('a'); link.href = url; link.target = '_blank'; link.style.marginLeft = '5px'; link.style.textDecoration = 'underline'; link.textContent = '[Link]'; return link; } // Loop through all elements with the class 'ql-quest-description' const questDescriptions = document.querySelectorAll('.ql-quest-description'); questDescriptions.forEach(desc => { if (desc.textContent.includes("Customise one of your Neopets")) { const link = createLink('https://www.neopets.com/customise/'); desc.appendChild(link); } else if (desc.textContent.includes("Play any Game or Classic Game in the Games Room")) { const link = createLink('https://www.neopets.com/games/h5game.phtml?game_id=1310'); desc.appendChild(link); } else if (desc.textContent.includes("Purchase item(s) from any Neopian Shop")) { const link = createLink('https://www.neopets.com/objects.phtml?type=shop&obj_type=1'); desc.appendChild(link); } else if (desc.textContent.includes("Wheel of Mediocrity")) { const link = createLink('https://www.neopets.com/prehistoric/mediocrity.phtml'); desc.appendChild(link); } else if (desc.textContent.includes("Wheel of Excitement")) { const link = createLink('https://www.neopets.com/faerieland/wheel.phtml'); desc.appendChild(link); } else if (desc.textContent.includes("Wheel of Knowledge")) { const link = createLink('https://www.neopets.com/medieval/knowledge.phtml'); desc.appendChild(link); } else if (desc.textContent.includes("Wheel of Misfortune")) { const link = createLink('https://www.neopets.com/halloween/wheel/index.phtml'); desc.appendChild(link); } }); })();