From 5d7be9bff216b818116818ec6cbf2c9bf057dbd7 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Thu, 28 Mar 2019 18:46:15 +0100 Subject: [PATCH] ZEEEEEERTHOOOOOOOOX --- Plugins/PluginRepo/PluginRepo.plugin.js | 9 +++++++-- Plugins/PluginRepo/res/PluginList.txt | 5 ++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Plugins/PluginRepo/PluginRepo.plugin.js b/Plugins/PluginRepo/PluginRepo.plugin.js index a6b8eb3e05..e174708d76 100644 --- a/Plugins/PluginRepo/PluginRepo.plugin.js +++ b/Plugins/PluginRepo/PluginRepo.plugin.js @@ -771,9 +771,14 @@ class PluginRepo { var WebModulesFindByProperties = (properties) => { return WebModulesFind(module => properties.every(prop => module[prop] !== undefined)); }; + var React = WebModulesFindByProperties(['createElement', 'cloneElement']); + var ReactDOM = WebModulesFindByProperties(['render', 'findDOMNode']); global.BDV2 = {}; - global.BDV2.react = WebModulesFindByProperties(['createElement', 'cloneElement']); - global.BDV2.reactDom = WebModulesFindByProperties(['render', 'findDOMNode']); + global.BDV2.react = React; + global.BDV2.reactDom = ReactDOM; + global.BdApi = {}; + global.BdApi.React = React; + global.BdApi.ReactDOM = ReactDOM; var p = new ` + name + `(); var data = { "getName":getString(p.getName()), diff --git a/Plugins/PluginRepo/res/PluginList.txt b/Plugins/PluginRepo/res/PluginList.txt index e038969980..63fe83b1b1 100644 --- a/Plugins/PluginRepo/res/PluginList.txt +++ b/Plugins/PluginRepo/res/PluginList.txt @@ -206,6 +206,5 @@ https://raw.githubusercontent.com/tony311/betterdiscord-plugins/master/auto-sele https://raw.githubusercontent.com/tony311/betterdiscord-plugins/master/tts-events.plugin.js https://raw.githubusercontent.com/XFoxPrower/Notice-Me-Senpai/master/Notice%20Me%2C%20Senpai.plugin.js https://raw.githubusercontent.com/XFoxPrower/Quick-Open-Link/master/Quick%20Open%20Link.plugin.js -https://raw.githubusercontent.com/Zerthox/BetterDiscord-Plugins/master/plugins/BetterReplyer.plugin.js -https://raw.githubusercontent.com/Zerthox/BetterDiscord-Plugins/master/plugins/GuildSeparators.plugin.js -https://raw.githubusercontent.com/Zerthox/BetterDiscord-Plugins/master/plugins/LinkTooltips.plugin.js +https://raw.githubusercontent.com/Zerthox/BetterDiscord-Plugins/master/v1/BetterReplyer.plugin.js +https://raw.githubusercontent.com/Zerthox/BetterDiscord-Plugins/master/v1/GuildSeparators.plugin.js