const badges = [];
module.exports = class Plugin {
getName() {return "PersonalBadges";}
getDescription() {return "Adds new badges to your profile";}
getVersion() {return "0.0.1";}
getAuthor() {return "titedog";}
start() {
if (!global.ZeresPluginLibrary) {
return window.BdApi.alert("Library Missing",`The library plugin needed for ${this.getName()} is missing.
Click here to download the library!`);
}
ZLibrary.PluginUpdater.checkForUpdate(this.getName(), this.getVersion(), "LINK_TO_RAW_CODE");
}
observer(changes) {
for(const element of document.getElementsByClassName("profileBadges-2pItdR")) {
const qry = document.querySelectorAll('[personal-badge="true"]');
if(qry.length == 0) {
const badge = document.createElement("div");
badge.innerHTML = '