Loading...

Top
PFQ Banner

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

Already a user? New to PFQ?

Field counter

Forum Index > Core > Suggestions >

Wingman's AvatarWingman
Wingman's Avatar
Suggestion Title: Field counter Suggestion Summary: My idea with the "field counter" would to have a little number up near the pokemon population to display how many fields a user has. Positive points: A guage for how many fields you'll have to click though without doing tedious math Negative points: Possibly unnessicary. (sorry I can't spell :( ) Reason For Consideration: As a person with ocd and various other wack things going on in my brain, I am very statistics-based. Being able to figure out how long it will take me to click through a person's fields from that info will save me a lot of time, though I can see where this can be seen as unneeded by other people.
they/it/xelle/fae
Corviknight's AvatarCorviknight
Corviknight's Avatar
I actually went ahead and made a simple Tampermonkey script to do this for you (or anyone who would like this). All you have to do is paste it in to Tampermonkey and it will work ^^
CODE
// ==UserScript== // @name PFQ Field Count // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author Corviknight // @match https://pokefarm.com/fields/* // @icon https://www.google.com/s2/favicons?domain=pokefarm.com // @grant none // ==/UserScript== (function() { 'use strict'; const target = document; const config = { attributes: true, childList: true, subtree: true }; const callback = function(mutationsList, observer) { for(const mutation of mutationsList) { if (mutation.type === 'childList') { let fieldDiv = target.getElementById("fieldjumpnav"); if(target.getElementById("fieldjumpnav")!=null&&target.getElementById("fieldcount")==null) { let count = fieldDiv.children.length; let parent = fieldDiv.parentNode; let fieldCount = document.createElement("div"); fieldCount.innerHTML = "<b>Field count:</b> " + count; fieldCount.style = "text-align:center;"; fieldCount.id = "fieldcount"; parent.insertBefore(fieldCount, fieldDiv); observer.disconnect(); } } } }; const observer = new MutationObserver(callback); observer.observe(target, config); })();
This is what it looks like, you'll have to open up the field nav before the script can count the number of fields. I'd be fine with having it implemented officially (though I usually just use the base count to know), but hopefully this can help in the meantime ^^
official project sekai art; icon is official TCG art
he/him + 22 + cst

Cannot post: Please log in to post

© PokéFarm 2009-2024 (Full details)Contact | Rules | Privacy | Reviews 4.6★Get shortlink for this page