From 661f71a441e6b6077f8e981f516a342f2acdc266 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Mon, 24 Jun 2019 20:22:19 +0200 Subject: [PATCH] Update RemoveNicknames.plugin.js --- Plugins/RemoveNicknames/RemoveNicknames.plugin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugins/RemoveNicknames/RemoveNicknames.plugin.js b/Plugins/RemoveNicknames/RemoveNicknames.plugin.js index 697955f99a..c20af3fed7 100644 --- a/Plugins/RemoveNicknames/RemoveNicknames.plugin.js +++ b/Plugins/RemoveNicknames/RemoveNicknames.plugin.js @@ -3,7 +3,7 @@ class RemoveNicknames { getName () {return "RemoveNicknames";} - getVersion () {return "1.2.1";} + getVersion () {return "1.2.2";} getAuthor () {return "DevilBro";} @@ -11,7 +11,7 @@ class RemoveNicknames { initConstructor () { this.changelog = { - "improved":[["EditUsers","Works better with EditUsers now"]] + "improved":[["Normalized Classes","Normalized Classes no longer make the plugin be rendered useless in the member list"]] }; this.patchModules = { @@ -127,7 +127,7 @@ class RemoveNicknames { } processNameTag (instance, wrapper) { - if (wrapper && !BDFDB.containsClass(wrapper, BDFDB.disCN.userprofilenametag, BDFDB.disCN.userpopoutheadertag, false)) { + if (wrapper && !BDFDB.getParentEle(BDFDB.dotCNC.userprofile + BDFDB.dotCN.userpopout, wrapper)) { let username = wrapper.parentElement.querySelector("." + instance.props.usernameClass.replace(/ /g, ".")); if (username) BDFDB.setInnerText(username, this.getNewName(instance.props.user)); }