mirror of
https://github.com/EndPwnArchive/EndPwn3Plugins.git
synced 2024-08-14 23:57:06 +00:00
Update guildcount.js
This commit is contained in:
parent
d99fb2e746
commit
a9fbc6276d
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
function formattedGuildCount(shortened) {
|
||||
const guildCount = document.querySelectorAll(".guild > div[draggable=true]").length;
|
||||
const guildCount = document.querySelectorAll("[class^='guild'] > div[draggable=true]").length;
|
||||
return `${guildCount} Guilds`;
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,7 @@ function setupServerCount() {
|
|||
let gc = document.createElement("div");
|
||||
gc.className = "server-count";
|
||||
|
||||
let glist = document.querySelector(".friends-online");
|
||||
let glist = document.querySelector("[class^=friendsOnline]");
|
||||
if (!glist) return;
|
||||
|
||||
glist.parentNode.insertBefore(gc, glist.nextSibling);
|
||||
|
|
Loading…
Reference in a new issue