Last active
March 21, 2024 14:39
-
-
Save 12944qwerty/25d776dcbeb9212642c651a99cf2df31 to your computer and use it in GitHub Desktop.
A button that will show on WoX sites to cuddle all pets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Cuddle All Button | |
// @updateURL https://gist.githubusercontent.com/12944qwerty/25d776dcbeb9212642c651a99cf2df31/raw/51822ec95dcb7dddc0ba79e37379e8fb8f34c8c7/cuddle_all.js | |
// @version 0.2 | |
// @description A button that will show on WoX sites to cuddle all pets | |
// @author 12944qwerty | |
// @match https://worldofolympians.com/user/profile/*/pets | |
// @match https://worldoflegend.eu/user/profile/*/pets | |
// @match https://worldofpotter.com/user/profile/*/pets | |
// @match https://worldofpotter.eu/user/profile/*/pets | |
// @match https://worldofgladersunited.com/user/profile/*/pets | |
// @match https://worldofmetahumans.com/user/profile/*/pets | |
// @match https://worldofnephilim.com/user/profile/*/pets | |
// @match https://worldofpotter.de/user/profile/*/pets | |
// @match https://worldofwalkers.com/user/profile/*/pets | |
// @match https://worldofthrones.com/user/profile/*/pets | |
// @match https://worldofbendingarts.com/user/profile/*/pets | |
// @match https://worldofunseenarts.com/user/profile/*/pets | |
// @match https://worldofjademountain.com/user/profile/*/pets | |
// @match https://worldofforgottendungeons.com/user/profile/*/pets | |
// @match https://worldoffairytales.com/user/profile/*/pets | |
// @match https://worldofsupernaturals.com/user/profile/*/pets | |
// @match https://worldofalagaesia.com/user/profile/*/pets | |
// @match https://worldofmysticfalls.com/user/profile/*/pets | |
// @match https://worldofgalaxies.com/user/profile/*/pets | |
// @match https://worldofmetahumans.com/user/profile/*/pets | |
// @match https://worldofhungergames.es/user/profile/*/pets | |
// @match https://worldofteenwolf.nl/user/profile/*/pets | |
// ==/UserScript== | |
const pet_nav = document.getElementById("cuddleAllButton").parentNode; | |
const cuddle_btn = document.createElement("button"); | |
cuddle_btn.className = "btn btn-success pull-right"; | |
cuddle_btn.id = "cuddleAllButton-Free"; | |
cuddle_btn.innerText = "Cuddle All Pets for XP"; | |
cuddle_btn.dataset.toggle = "tooltip"; | |
cuddle_btn.style = "margin-left: 5px;"; | |
cuddle_btn.addEventListener("click", (e) => { | |
Array.from(document.getElementsByClassName("cuddlePetButton")).forEach(e => e.click()); | |
}); | |
pet_nav.appendChild(cuddle_btn); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bookmarklet Add to the url since github doesn't allow the link for some reason
javascript:(function(){Array.from(document.getElementsByClassName("cuddlePetButton")).forEach(e => e.click());})()