Revert "Update 0BDFDB.plugin.js"

This reverts commit 68d9ee5e0f.
This commit is contained in:
Mirco Wittrien 2022-11-29 20:35:16 +01:00
parent 68d9ee5e0f
commit a3d4690c75
1 changed files with 2 additions and 6 deletions

View File

@ -2,7 +2,7 @@
* @name BDFDB
* @author DevilBro
* @authorId 278543574059057154
* @version 3.0.0
* @version 2.9.9
* @description Required Library for DevilBro's Plugins
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -2384,10 +2384,6 @@ module.exports = (_ => {
}
return false;
};
Internal.isCorrectModuleButDontPatch = function (type) {
if (type == "MessageToolbar" && document.querySelector(BDFDB.dotCN.emojipicker)) return true;
return false;
};
Internal.findModuleViaData = (moduleStorage, dataStorage, item) => {
if (dataStorage[item]) {
let defaultExport = typeof dataStorage[item].exported != "boolean" ? true : dataStorage[item].exported;
@ -8208,7 +8204,7 @@ module.exports = (_ => {
},
after: e => {
if (!e.methodArguments[0] || typeof e.methodArguments[0] != "function" || (e.methodArguments[0].prototype && typeof e.methodArguments[0].prototype.render == "function") || !PluginStores.modulePatches.after) return;
else for (const type in PluginStores.modulePatches.after) if (Internal.isCorrectModule(e.methodArguments[0], type, true) && !Internal.isCorrectModuleButDontPatch(type)) {
else for (const type in PluginStores.modulePatches.after) if (Internal.isCorrectModule(e.methodArguments[0], type, true)) {
for (let plugin of PluginStores.modulePatches.after[type].flat(10)) BDFDB.PatchUtils.patch(plugin, e.returnValue, "type", {after: e2 => Internal.initiatePatch(plugin, type, {
arguments: e2.methodArguments,
instance: e2.instance,