2025-03-12 13:40:15 -04:00
|
|
|
const instances = [["kc","https://kitsunes.club/nodeinfo/2.1"],["kg","https://kitsunes.gay/nodeinfo/2.1"], ["cba","https://fedi.catboy.agency/nodeinfo/2.1"], ]
|
2025-03-03 15:37:37 -05:00
|
|
|
|
|
|
|
for (const instance of instances) {
|
|
|
|
fetch(instance[1]).then(response => {
|
|
|
|
if (!response.ok) throw false;
|
|
|
|
response.json().then(output => {
|
|
|
|
console.log(output)
|
|
|
|
const instanceNode = document.getElementById(instance[0]);
|
|
|
|
instanceNode.querySelector(".user-count").innerText = output.usage.users.total.toLocaleString('en');
|
|
|
|
instanceNode.querySelector(".note-count").innerText = output.usage.localPosts.toLocaleString('en');
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|