Loading...

Top
PFQ Banner

This is PokéFarm Q, a free online Pokémon collectables game.

Already a user? New to PFQ?

Single post in Site Skins: How-To, and Helpful CSS

Forum Index > PokéFarm > Guides > Site Skins: How-To, and Helpful CSS >

Corviknight's AvatarCorviknight
Corviknight's Avatar
Alright, so I have a small bugfix to the script. So it searched for 'mega' in order to find Mega Pokemon, right? Welp, that also would trigger the alert if you ever happened to stumble across a Yanmega. I made the search parameters a little more specific so this shouldn't happen again.

New

// ==UserScript== // @name shiny alert // @namespace http://tampermonkey.net/ // @version 0.1 // @description pokefarm stuff // @author You // @match https://pokefarm.com/shelter // @grant none // ==/UserScript== (function() { 'use strict'; var shelter= null; var next = document.getElementById("sheltercommands"); setInterval(function() { shelter = document.getElementById("shelterarea").getElementsByClassName("tooltip_content"); for(var i=0; i < shelter.length; i++) { if(next.innerHTML.length<500 && (shelter[i].innerHTML.includes("shiny.png")||shelter[i].innerHTML.includes("albino.png")||shelter[i].innerHTML.includes("melanistic.png")||shelter[i].innerHTML.includes("/_delta/")||shelter[i].innerHTML.includes("prehistoric.png")||shelter[i].innerHTML.includes("mega.png")||shelter[i].innerHTML.includes("starter.png"))) { next.insertAdjacentHTML('afterbegin', "<div style='position:absolute; left:50%; transform:translate(-50%);'><img src='https://pfq-static.com/img/misc/goldstar.png'> on page</div>"); } }}, 100); })();
official project sekai art; icon is official TCG art
he/him + 22 + cst
© PokéFarm 2009-2024 (Full details)Contact | Rules | Privacy | Reviews 4.6★Get shortlink for this page