From d8b7d54f7d168a0be30fd03b391e9d80adf6cedb Mon Sep 17 00:00:00 2001 From: Mirco Wittrien <23700969+mwittrien@users.noreply.github.com> Date: Sat, 9 Jul 2022 23:18:29 +0200 Subject: [PATCH] stuff --- Library/0BDFDB.plugin.js | 22 +++++++++++----------- Library/_res/0BDFDB.data.json | 7 ++++--- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index a5f1bc3b8a..d7bf6e131d 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -2,7 +2,7 @@ * @name BDFDB * @author DevilBro * @authorId 278543574059057154 - * @version 2.4.4 + * @version 2.4.5 * @description Required Library for DevilBro's Plugins * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -19,7 +19,7 @@ module.exports = (_ => { "info": { "name": "BDFDB", "author": "DevilBro", - "version": "2.4.4", + "version": "2.4.5", "description": "Required Library for DevilBro's Plugins" }, "rawUrl": "https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js" @@ -4597,50 +4597,50 @@ module.exports = (_ => { while (id.length < 6) id += generationChars[Math.floor(Math.random() * generationChars.length)]; return id; }; - BDFDB.disCN = new Proxy(DiscordClasses, { + BDFDB.disCN = new Proxy({}, { get: function (list, item) { return Internal.getDiscordClass(item, false).replace("#", ""); } }); - BDFDB.disCNS = new Proxy(DiscordClasses, { + BDFDB.disCNS = new Proxy({}, { get: function (list, item) { return Internal.getDiscordClass(item, false).replace("#", "") + " "; } }); - BDFDB.disCNC = new Proxy(DiscordClasses, { + BDFDB.disCNC = new Proxy({}, { get: function (list, item) { return Internal.getDiscordClass(item, false).replace("#", "") + ","; } }); - BDFDB.dotCN = new Proxy(DiscordClasses, { + BDFDB.dotCN = new Proxy({}, { get: function (list, item) { let className = Internal.getDiscordClass(item, true); return (className.indexOf("#") == 0 ? "" : ".") + className; } }); - BDFDB.dotCNS = new Proxy(DiscordClasses, { + BDFDB.dotCNS = new Proxy({}, { get: function (list, item) { let className = Internal.getDiscordClass(item, true); return (className.indexOf("#") == 0 ? "" : ".") + className + " "; } }); - BDFDB.dotCNC = new Proxy(DiscordClasses, { + BDFDB.dotCNC = new Proxy({}, { get: function (list, item) { let className = Internal.getDiscordClass(item, true); return (className.indexOf("#") == 0 ? "" : ".") + className + ","; } }); - BDFDB.notCN = new Proxy(DiscordClasses, { + BDFDB.notCN = new Proxy({}, { get: function (list, item) { return `:not(.${Internal.getDiscordClass(item, true).split(".")[0]})`; } }); - BDFDB.notCNS = new Proxy(DiscordClasses, { + BDFDB.notCNS = new Proxy({}, { get: function (list, item) { return `:not(.${Internal.getDiscordClass(item, true).split(".")[0]}) `; } }); - BDFDB.notCNC = new Proxy(DiscordClasses, { + BDFDB.notCNC = new Proxy({}, { get: function (list, item) { return `:not(.${Internal.getDiscordClass(item, true).split(".")[0]}),`; } diff --git a/Library/_res/0BDFDB.data.json b/Library/_res/0BDFDB.data.json index 3abd2e03d4..081647afca 100644 --- a/Library/_res/0BDFDB.data.json +++ b/Library/_res/0BDFDB.data.json @@ -2740,12 +2740,11 @@ "notice": ["Notice", "notice"], "noticebrand": ["Notice", "colorBrand"], "noticebutton": ["Notice", "button"], + "noticebuttonminor": ["Notice", "buttonMinor"], "noticeclosing": ["BDFDB", "noticeClosing"], "noticecustom": ["Notice", "colorCustom"], "noticedanger": ["Notice", "colorDanger"], - "noticedark": ["Notice", "colorDark"], "noticedefault": ["Notice", "colorDefault"], - "noticedownload": ["Notice", "colorDownload"], "noticedismiss": ["Notice", "closeButton"], "noticedismissicon": ["Notice", "closeIcon"], "noticeicon": ["NoticePlatform", "icon"], @@ -2754,13 +2753,14 @@ "noticeiconwindows": ["NoticePlatform", "iconWindows"], "noticeinfo": ["Notice", "colorInfo"], "noticeneutral": ["Notice", "colorNeutral"], - "noticenotification": ["Notice", "colorNotification"], "noticeplatformicon": ["NoticePlatform", "platformIcon"], + "noticeplaystation": ["Notice", "colorPlayStation"], "noticepremium": ["Notice", "colorPremium"], "noticepremiumaction": ["NoticePlatform", "premiumAction"], "noticepremiumicon": ["NoticePlatform", "premiumIcon"], "noticepremiumlogo": ["NoticePlatform", "premiumLogo"], "noticepremiumtext": ["NoticePlatform", "premiumText"], + "noticepremiumtier0": ["Notice", "colorPremiumTier0"], "noticepremiumtier1": ["Notice", "colorPremiumTier1"], "noticepremiumtier2": ["Notice", "colorPremiumTier2"], "noticespotify": ["Notice", "colorSpotify"], @@ -2775,6 +2775,7 @@ "noticeupdateentry": ["BDFDB", "noticeUpdateEntry"], "noticeupdatetext": ["BDFDB", "noticeUpdateText"], "noticeupdateseparator": ["BDFDB", "noticeUpdateSeparator"], + "noticewarning": ["Notice", "colorWarning"], "noticewrapper": ["BDFDB", "noticeWrapper"], "overflowellipsis": ["BDFDB", "overflowEllipsis"], "pagination": ["BDFDB", "pagination"],