parent
70a743c6a5
commit
aca8768711
|
@ -2,7 +2,7 @@
|
||||||
* @name BDFDB
|
* @name BDFDB
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 2.7.1
|
* @version 2.7.0
|
||||||
* @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
|
||||||
|
@ -1104,7 +1104,7 @@ module.exports = (_ => {
|
||||||
libraryCSS = css;
|
libraryCSS = css;
|
||||||
|
|
||||||
const backupObj = getBackup(dataFileName, dataFilePath);
|
const backupObj = getBackup(dataFileName, dataFilePath);
|
||||||
if (backupObj.backup && backupObj.hashIsSame || true) parseData(backupObj.backup);
|
if (backupObj.backup && backupObj.hashIsSame) parseData(backupObj.backup);
|
||||||
else request.get(`https://mwittrien.github.io/BetterDiscordAddons/Library/_res/${dataFileName}`, (e, r, b) => {
|
else request.get(`https://mwittrien.github.io/BetterDiscordAddons/Library/_res/${dataFileName}`, (e, r, b) => {
|
||||||
if ((e || !b || r.statusCode != 200) && tryAgain) return BDFDB.TimeUtils.timeout(_ => requestLibraryData(), 10000);
|
if ((e || !b || r.statusCode != 200) && tryAgain) return BDFDB.TimeUtils.timeout(_ => requestLibraryData(), 10000);
|
||||||
if (!e && b && r.statusCode == 200) {
|
if (!e && b && r.statusCode == 200) {
|
||||||
|
@ -2383,15 +2383,12 @@ module.exports = (_ => {
|
||||||
else if (useCache && Cache && Cache.modules && Cache.modules.patch && Cache.modules.patch[type] == module) return true;
|
else if (useCache && Cache && Cache.modules && Cache.modules.patch && Cache.modules.patch[type] == module) return true;
|
||||||
else {
|
else {
|
||||||
let foundModule = null;
|
let foundModule = null;
|
||||||
if (InternalData.PatchModules[type].strings) foundModule = Internal.checkModuleStrings(module._originalFunction || module, InternalData.PatchModules[type].strings) ? module : null;
|
if (InternalData.PatchModules[type].strings) foundModule = Internal.checkModuleStrings(module, InternalData.PatchModules[type].strings) ? module : null;
|
||||||
|
if (InternalData.PatchModules[type].nonStrings) foundModule = Internal.checkModuleStrings(module, InternalData.PatchModules[type].nonStrings, {hasNot: true}) ? module : null;
|
||||||
if (InternalData.PatchModules[type].props) foundModule = Internal.checkModuleProps(module, InternalData.PatchModules[type].props) ? module : null;
|
if (InternalData.PatchModules[type].props) foundModule = Internal.checkModuleProps(module, InternalData.PatchModules[type].props) ? module : null;
|
||||||
|
if (InternalData.PatchModules[type].nonProps) foundModule = Internal.checkModuleProps(module, InternalData.PatchModules[type].nonProps, {hasNot: true}) ? module : null;
|
||||||
if (InternalData.PatchModules[type].protos) foundModule = Internal.checkModuleProtos(module, InternalData.PatchModules[type].protos) ? module : null;
|
if (InternalData.PatchModules[type].protos) foundModule = Internal.checkModuleProtos(module, InternalData.PatchModules[type].protos) ? module : null;
|
||||||
if (foundModule) {
|
if (InternalData.PatchModules[type].nonProtos) foundModule = Internal.checkModuleProtos(module, InternalData.PatchModules[type].nonProtos, {hasNot: true}) ? module : null;
|
||||||
if (InternalData.PatchModules[type].nonStrings) foundModule = Internal.checkModuleStrings(module._originalFunction || module, InternalData.PatchModules[type].nonStrings, {hasNot: true}) ? module : null;
|
|
||||||
if (InternalData.PatchModules[type].nonProps) foundModule = Internal.checkModuleProps(module, InternalData.PatchModules[type].nonProps, {hasNot: true}) ? module : null;
|
|
||||||
if (InternalData.PatchModules[type].nonProtos) foundModule = Internal.checkModuleProtos(module, InternalData.PatchModules[type].nonProtos, {hasNot: true}) ? module : null;
|
|
||||||
}
|
|
||||||
if (type == "GuildChannelUserContextMenu" && module._originalFunction) console.log(foundModule, module);
|
|
||||||
if (foundModule) {
|
if (foundModule) {
|
||||||
if (useCache) {
|
if (useCache) {
|
||||||
if (!Cache.modules.patch) Cache.modules.patch = {};
|
if (!Cache.modules.patch) Cache.modules.patch = {};
|
||||||
|
|
|
@ -323,28 +323,24 @@
|
||||||
"VideoForwardRef": {"strings": ["HTMLSourceElement", "autoPlay"], "funcStrings": ["externalRef"]}
|
"VideoForwardRef": {"strings": ["HTMLSourceElement", "autoPlay"], "funcStrings": ["externalRef"]}
|
||||||
},
|
},
|
||||||
"PatchModules": {
|
"PatchModules": {
|
||||||
"DMUserContextMenu": {"strings": ["USER_ACTIONS_MENU_LABEL", "navId:\"user", ".closePrivateChannel"]},
|
|
||||||
"GroupDMUserContextMenu": {"strings": ["USER_ACTIONS_MENU_LABEL", "navId:\"user", ".REMOVE_FROM_GROUP"]},
|
|
||||||
"GuildContextMenu": {"strings": ["GUILD_ACTIONS_MENU_LABEL", "navId:\"guild", "GuildContextMenu"]},
|
|
||||||
"GuildChannelListContextMenu": {"strings": ["GUILD_ACTIONS_MENU_LABEL", "\"guild-context\",\"aria-label\""]},
|
|
||||||
"GuildChannelUserContextMenu": {"strings": ["USER_ACTIONS_MENU_LABEL", "navId:\"user", ".GUILD_CHANNEL"]},
|
|
||||||
"GuildEntryContextMenu": {"strings": ["GUILD_ACTIONS_MENU_LABEL", "navId:\"guild-entry"]},
|
|
||||||
"GuildHeaderContextMenu": {"strings": ["GUILD_ACTIONS_MENU_LABEL", "navId:\"guild-header-popout"]},
|
|
||||||
"MessageContextMenu": {"strings": ["MESSAGE_ACTIONS_MENU_LABEL", "navId:\"message", "getGuildId"]},
|
|
||||||
"MessageSearchResultContextMenu": {"strings": ["MESSAGE_ACTIONS_MENU_LABEL", "navId:\"message"], "nonStrings": ["getGuildId"]},
|
|
||||||
"UserGenericContextMenu": {"strings": ["USER_ACTIONS_MENU_LABEL", "navId:\"user"], "nonStrings": [".closePrivateChannel", ".REMOVE_FROM_GROUP", ".GUILD_CHANNEL"]},
|
|
||||||
"Account": {"protos": ["renderAvatarWithPopout", "renderCopiableNameTag", "renderCopiedSuccess"]},
|
"Account": {"protos": ["renderAvatarWithPopout", "renderCopiableNameTag", "renderCopiedSuccess"]},
|
||||||
"AnalyticsContext": {"props": ["ObjectTypes", "Objects", "Pages", "Sections"]},
|
"AnalyticsContext": {"props": ["ObjectTypes", "Objects", "Pages", "Sections"]},
|
||||||
"BlobMask": {"protos": ["getBadgePositionInterpolation", "getUpperBadgeStyles"]},
|
"BlobMask": {"protos": ["getBadgePositionInterpolation", "getUpperBadgeStyles"]},
|
||||||
"DiscordTag": {"strings": ["hidePersonalInformation", "isVerifiedBot", "botType"]},
|
"DiscordTag": {"strings": ["hidePersonalInformation", "isVerifiedBot", "botType"]},
|
||||||
|
"DMUserContextMenu": {"strings": ["USER_ACTIONS_MENU_LABEL", "navId:\"user", ".DM_USER_MENU"]},
|
||||||
"EmojiPickerListRow": {"strings": ["emojiSize", "surrogateCodePoint", "EMOJI_FAVORITE_TOOLTIP"]},
|
"EmojiPickerListRow": {"strings": ["emojiSize", "surrogateCodePoint", "EMOJI_FAVORITE_TOOLTIP"]},
|
||||||
|
"GroupDMUserContextMenu": {"strings": ["USER_ACTIONS_MENU_LABEL", "navId:\"user", ".GROUP_DM_USER_MENU"]},
|
||||||
|
"GuildContextMenu": {"strings": ["GUILD_ACTIONS_MENU_LABEL", "navId:\"guild", "GuildContextMenu"]},
|
||||||
|
"GuildChannelUserContextMenu": {"strings": ["USER_ACTIONS_MENU_LABEL", "navId:\"user", ".GUILD_CHANNEL_USER_MENU"]},
|
||||||
"GuildsBar": {"strings": ["unreadMentionsIndicatorTop", "disableAppDownload", ".GUILD_MEMBER_VERIFICATION"]},
|
"GuildsBar": {"strings": ["unreadMentionsIndicatorTop", "disableAppDownload", ".GUILD_MEMBER_VERIFICATION"]},
|
||||||
"GuildSidebar": {"strings": ["\"guildsnav\"", "unreadMentionsIndicatorBottom"]},
|
"GuildSidebar": {"strings": ["\"guildsnav\"", "unreadMentionsIndicatorBottom"]},
|
||||||
"InboxHeader": {"strings": [".UNREADS", ".TODOS", ".controls"]},
|
"InboxHeader": {"strings": [".UNREADS", ".TODOS", ".controls"]},
|
||||||
"LayerProvider": {"strings": ["layerContainerElement", "getContextValue"]},
|
"LayerProvider": {"strings": ["layerContainerElement", "getContextValue"]},
|
||||||
"MemberListItem": {"protos": ["renderOwner", "renderDecorators", "renderPremium"]},
|
"MemberListItem": {"protos": ["renderOwner", "renderDecorators", "renderPremium"]},
|
||||||
"Menu": {"strings": ["\"empty\"", "getItemProps", "isUsingKeyboardNavigation"]},
|
"Menu": {"strings": ["\"empty\"", "getItemProps", "isUsingKeyboardNavigation"]},
|
||||||
|
"MessageContextMenu": {"strings": ["MESSAGE_ACTIONS_MENU_LABEL", "navId:\"message", "getGuildId"]},
|
||||||
"MessageHeader": {"strings": ["showTimestampOnHover", "usernameClassName", "isVisibleOnlyOnHover:"]},
|
"MessageHeader": {"strings": ["showTimestampOnHover", "usernameClassName", "isVisibleOnlyOnHover:"]},
|
||||||
|
"MessageSearchResultContextMenu": {"strings": ["MESSAGE_ACTIONS_MENU_LABEL", "navId:\"message"], "nonStrings": ["getGuildId"]},
|
||||||
"PanelButton": {"strings": ["Masks.PANEL_BUTTON"]},
|
"PanelButton": {"strings": ["Masks.PANEL_BUTTON"]},
|
||||||
"ParticipantsForSelectedParticipant": {"strings": ["ACTIVITY", "maxVisibleUsers", "participantType"]},
|
"ParticipantsForSelectedParticipant": {"strings": ["ACTIVITY", "maxVisibleUsers", "participantType"]},
|
||||||
"PrivateChannel": {"strings": ["LEAVE_GROUP_DM_MANAGED_BODY", "handleCloseButtonMouseDown", "handleLeaveGroup"]},
|
"PrivateChannel": {"strings": ["LEAVE_GROUP_DM_MANAGED_BODY", "handleCloseButtonMouseDown", "handleLeaveGroup"]},
|
||||||
|
@ -357,6 +353,7 @@
|
||||||
"TransitionGroup": {"protos": ["performAppear", "performEnter", "performLeave"]},
|
"TransitionGroup": {"protos": ["performAppear", "performEnter", "performLeave"]},
|
||||||
"UnreadDMs": {"strings": ["getMutablePrivateChannels", "selectedVoiceGuildId", ".selectedVoiceChannelId"]},
|
"UnreadDMs": {"strings": ["getMutablePrivateChannels", "selectedVoiceGuildId", ".selectedVoiceChannelId"]},
|
||||||
"UseCopyIdItem": {"strings": ["\"devmode-copy-id\""]},
|
"UseCopyIdItem": {"strings": ["\"devmode-copy-id\""]},
|
||||||
|
"UserGenericContextMenu": {"strings": ["USER_ACTIONS_MENU_LABEL", "navId:\"user", ".USER_GENERIC_MENU"]},
|
||||||
"UsernameSection": {"strings": [".shouldCopyOnClick", ".userTagDiscriminatorNoNickname"]},
|
"UsernameSection": {"strings": [".shouldCopyOnClick", ".userTagDiscriminatorNoNickname"]},
|
||||||
"UserPopoutAvatar": {"strings": ["isNonUserBot", "avatarHintInnerText", "avatarDecorationHint"]},
|
"UserPopoutAvatar": {"strings": ["isNonUserBot", "avatarHintInnerText", "avatarDecorationHint"]},
|
||||||
"UserPopoutInfo": {"strings": [".hasCustomStatus", ".premiumGuildSince", "openPremiumSettings"]},
|
"UserPopoutInfo": {"strings": [".hasCustomStatus", ".premiumGuildSince", "openPremiumSettings"]},
|
||||||
|
|
Loading…
Reference in New Issue