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.1 | |
// @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== | |
var pet_nav = document.getElementsByClassName("user-profile__nav")[0]; | |
var cuddle_btn = document.createElement("a"); | |
cuddle_btn.innerHTML = "<a class='btn btn-default change-container wall'>Cuddle All Pets</a>"; | |
cuddle_btn.href = "javascript:(function(){var unfollowButtons = $('button.cuddlePetButton');var index = unfollowButtons.length - 1;unfollow();function unfollow() {if (index >= 0) {$(unfollowButtons[index--]).click();setTimeout(unfollow, 5);}}})();" | |
pet_nav.appendChild(cuddle_btn); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment