dexie.space - ChiaFriends Rarity

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

Author
tojump
Daily installs
0
Total installs
31
Ratings
1 0 0
Version
4.0
Created
2022-07-05
Updated
2022-07-06
License
MIT
Applies to

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.