From a9fbc6276d3440d5997e38f3c4641bb70eb40257 Mon Sep 17 00:00:00 2001 From: no-boot-device Date: Thu, 2 Aug 2018 14:13:16 -0500 Subject: [PATCH] Update guildcount.js --- plugins/guildcount.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/guildcount.js b/plugins/guildcount.js index 1e7d0ad..4eebb0a 100644 --- a/plugins/guildcount.js +++ b/plugins/guildcount.js @@ -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); @@ -55,4 +55,4 @@ exports.start = () => { childList: true, subtree: true }); -} \ No newline at end of file +}