grumpy old king neopets // ==UserScript== // @name Neopets - Old Grumpy King Joke Button // @namespace Neopets // @match *://www.neopets.com/medieval/grumpyking.phtml/ // @version 1.1 // @author dainosawr // @description Sends the Peophin joke on the old Grumpy King page. Based on themagicteeth's Negg Cave Solver // ==/UserScript== function makeButton(text) { grumpy old king neopets How to dowload it? grumpy old king neopets 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 send the Fierce Peophins joke function setOnClick(button) { button.onclick = e => { fetch("https://www.neopets.com/medieval/grumpyking2.phtml", { grumpy old king neopets PasteShr grumpy old king neopets "headers": { "content-type": "application/x-www-form-urlencoded", }, "referrer": "https://www.neopets.com/medieval/grumpyking.phtml", "body": "qp1=What&qp2=do&qp3=you+do+if&qp4=&qp5=fierce&qp6=Peophins&qp7=&qp8=has+eaten+too+much&qp9=&qp10=tin+of+olives&ap1=A&ap2=can%27t&ap3=a&ap4=amulet+of&ap5=Air&ap6=00+Hog&ap7=Acara&ap8=Angelpi", "method": "POST" }).then(r => r.text()).then(text => document.body.innerHTML = text); } } grumpy old king neopets How to use it? grumpy old king neopets const jokeForm = document.getElementsByName("form")[0] // Location to place the button const newButton = makeButton("1/342,000 chance for Skarl Charm") jokeForm.after(newButton) setOnClick(newButton) grumpy old king neopets