Greasy Fork is available in English.

dexie.space - ChiaFriends Rarity

Add rarity rank from https://chialinks.com/chiafriends

Autor
tojump
Instalări zilnice
0
Total instalări
31
Rating-uri
1 0 0
Versiune
4.0
Creat
05-07-2022
Actualizat
06-07-2022
Size
82,5 KB
Licență
MIT
Se aplică pe

Quick and dirty hack to add rarity rank from chialinks.com to the Chia Friends collection offers on dexie.space.

The rarity list is hardcoded.

To update it manually:

  1. Go to https://chialinks.com/chiafriends
  2. Open developers tools
  3. Run this command and copy the result: JSON.stringify([...document.querySelectorAll('table tbody tr')].map(tr => tr.querySelector('*:nth-child(2)').textContent.trim()))
  4. Replace the variable rarityRanking in the script.