stuff
This commit is contained in:
parent
e27e1b5f0a
commit
70a743c6a5
|
@ -2,7 +2,7 @@
|
|||
* @name BDFDB
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 2.7.0
|
||||
* @version 2.7.1
|
||||
* @description Required Library for DevilBro's Plugins
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -1104,7 +1104,7 @@ module.exports = (_ => {
|
|||
libraryCSS = css;
|
||||
|
||||
const backupObj = getBackup(dataFileName, dataFilePath);
|
||||
if (backupObj.backup && backupObj.hashIsSame) parseData(backupObj.backup);
|
||||
if (backupObj.backup && backupObj.hashIsSame || true) parseData(backupObj.backup);
|
||||
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) {
|
||||
|
@ -2383,12 +2383,15 @@ module.exports = (_ => {
|
|||
else if (useCache && Cache && Cache.modules && Cache.modules.patch && Cache.modules.patch[type] == module) return true;
|
||||
else {
|
||||
let foundModule = 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].strings) foundModule = Internal.checkModuleStrings(module._originalFunction || module, InternalData.PatchModules[type].strings) ? 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 (foundModule) {
|
||||
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 (useCache) {
|
||||
if (!Cache.modules.patch) Cache.modules.patch = {};
|
||||
|
|
|
@ -323,24 +323,28 @@
|
|||
"VideoForwardRef": {"strings": ["HTMLSourceElement", "autoPlay"], "funcStrings": ["externalRef"]}
|
||||
},
|
||||
"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"]},
|
||||
"AnalyticsContext": {"props": ["ObjectTypes", "Objects", "Pages", "Sections"]},
|
||||
"BlobMask": {"protos": ["getBadgePositionInterpolation", "getUpperBadgeStyles"]},
|
||||
"DiscordTag": {"strings": ["hidePersonalInformation", "isVerifiedBot", "botType"]},
|
||||
"DMUserContextMenu": {"strings": ["USER_ACTIONS_MENU_LABEL", "navId:\"user", ".DM_USER_MENU"]},
|
||||
"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"]},
|
||||
"GuildSidebar": {"strings": ["\"guildsnav\"", "unreadMentionsIndicatorBottom"]},
|
||||
"InboxHeader": {"strings": [".UNREADS", ".TODOS", ".controls"]},
|
||||
"LayerProvider": {"strings": ["layerContainerElement", "getContextValue"]},
|
||||
"MemberListItem": {"protos": ["renderOwner", "renderDecorators", "renderPremium"]},
|
||||
"Menu": {"strings": ["\"empty\"", "getItemProps", "isUsingKeyboardNavigation"]},
|
||||
"MessageContextMenu": {"strings": ["MESSAGE_ACTIONS_MENU_LABEL", "navId:\"message", "getGuildId"]},
|
||||
"MessageHeader": {"strings": ["showTimestampOnHover", "usernameClassName", "isVisibleOnlyOnHover:"]},
|
||||
"MessageSearchResultContextMenu": {"strings": ["MESSAGE_ACTIONS_MENU_LABEL", "navId:\"message"], "nonStrings": ["getGuildId"]},
|
||||
"PanelButton": {"strings": ["Masks.PANEL_BUTTON"]},
|
||||
"ParticipantsForSelectedParticipant": {"strings": ["ACTIVITY", "maxVisibleUsers", "participantType"]},
|
||||
"PrivateChannel": {"strings": ["LEAVE_GROUP_DM_MANAGED_BODY", "handleCloseButtonMouseDown", "handleLeaveGroup"]},
|
||||
|
@ -353,7 +357,6 @@
|
|||
"TransitionGroup": {"protos": ["performAppear", "performEnter", "performLeave"]},
|
||||
"UnreadDMs": {"strings": ["getMutablePrivateChannels", "selectedVoiceGuildId", ".selectedVoiceChannelId"]},
|
||||
"UseCopyIdItem": {"strings": ["\"devmode-copy-id\""]},
|
||||
"UserGenericContextMenu": {"strings": ["USER_ACTIONS_MENU_LABEL", "navId:\"user", ".USER_GENERIC_MENU"]},
|
||||
"UsernameSection": {"strings": [".shouldCopyOnClick", ".userTagDiscriminatorNoNickname"]},
|
||||
"UserPopoutAvatar": {"strings": ["isNonUserBot", "avatarHintInnerText", "avatarDecorationHint"]},
|
||||
"UserPopoutInfo": {"strings": [".hasCustomStatus", ".premiumGuildSince", "openPremiumSettings"]},
|
||||
|
|
Loading…
Reference in New Issue