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 >

Jana Kennedy's Avatarhypermode-12.pngJana Kennedy
Jana Kennedy's Avatar
hypermode.pnggrandmaster.pngb.png

QUOTE originally posted by DrWho

QUOTE originally posted by Jana Kennedy

i know this isn't a css question but not quite sure where to go - i believe there was a tamper monkey script that arranged the pokemon in the shelter in level order - does anyone have the link to it??
Wasn't sure about sorting because 1. Your shelter page may have custom CSS 2. The QoL script changes how that would work So I thought a script that just displays the level (only if it's higher than 1) without clicking would be safer. If this is what you're looking for, here you go.
// ==UserScript== // @name Show level in shelter // @namespace http://pokefarm.com/user/drwho // @version 0.1 // @description display the pokemon's level in the shelter without clicking // @author /user/drwho // @match https://pokefarm.com/shelter // @icon https://pokefarm.com/favicon.ico // @grant none // ==/UserScript== (function() { 'use strict'; document.body.insertAdjacentHTML(`beforeend`,`<style>#shelterarea [data-level]:not([data-level='1'])::after { position: absolute; bottom: 0; left: 0; background-color: #000; color: #fff; font-family: monospace; font-size: smaller; color: #ededed; min-width: 1em; min-height: 1em; padding: 3px; display: inline-flex; justify-content: center; align-items: center; border-radius: 100%; z-index: 999; content: attr(data-level); }</style>`) const cb = () => { Array.from(document.querySelectorAll("#shelterarea .pokemon")) .filter(node => node.dataset.stage === 'pokemon') .forEach(node => node.dataset.level = node.nextElementSibling.textContent.match(/Lv.(\d+)/)[1]) } // run once cb() // run on change const mo = new MutationObserver(cb) mo.observe(document.querySelector('#shelterarea'), { childList: true }) })();
Thank you very much for producing this, though i will say i knew that the one i was talking about had worked with my set up and the QoL script so i went on a hunt and found it! Was one you had created apparently, link to post i found here
Always looking for quirky pokemon!
  • Typerace
  • Shop
Current Type fighting.png Current Points 0 Clicklist Next month=flying.png
My shop! I offer shelter hunts, free fields, shiny/albino, variants/exclusives and more. Please post in shop rather than send a pm. Buying summon_mar.png
Spectral Leiomano
for anywhere between 20 - 40zc depending on market price - send pm to see if i have enough money ^.^
Avatar is from Unus Annus, free to use image from the 'pick a side' part
© PokéFarm 2009-2024 (Full details)Contact | Rules | Privacy | Reviews 4.6★Get shortlink for this page