parent
68d9ee5e0f
commit
a3d4690c75
|
@ -2,7 +2,7 @@
|
||||||
* @name BDFDB
|
* @name BDFDB
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 3.0.0
|
* @version 2.9.9
|
||||||
* @description Required Library for DevilBro's Plugins
|
* @description Required Library for DevilBro's Plugins
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -2384,10 +2384,6 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
Internal.isCorrectModuleButDontPatch = function (type) {
|
|
||||||
if (type == "MessageToolbar" && document.querySelector(BDFDB.dotCN.emojipicker)) return true;
|
|
||||||
return false;
|
|
||||||
};
|
|
||||||
Internal.findModuleViaData = (moduleStorage, dataStorage, item) => {
|
Internal.findModuleViaData = (moduleStorage, dataStorage, item) => {
|
||||||
if (dataStorage[item]) {
|
if (dataStorage[item]) {
|
||||||
let defaultExport = typeof dataStorage[item].exported != "boolean" ? true : dataStorage[item].exported;
|
let defaultExport = typeof dataStorage[item].exported != "boolean" ? true : dataStorage[item].exported;
|
||||||
|
@ -8208,7 +8204,7 @@ module.exports = (_ => {
|
||||||
},
|
},
|
||||||
after: e => {
|
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;
|
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, {
|
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,
|
arguments: e2.methodArguments,
|
||||||
instance: e2.instance,
|
instance: e2.instance,
|
||||||
|
|
Loading…
Reference in New Issue