stuff
This commit is contained in:
parent
51cbbd2864
commit
826f3477ad
|
@ -447,7 +447,7 @@
|
|||
"HomeButtonDefault": {"strings": ["BUTTON_HOME", ".homeIcon", ".DISCODO_ENABLED"]},
|
||||
"I18nLoader": {"strings": [".Messages.I18N_LOCALE_LOADING_ERROR", ".loading"]},
|
||||
"ImageModal": {"strings": ["renderLinkComponent", ".Messages.OPEN_IN_BROWSER", "animated"], "noSearch": true},
|
||||
"ImageVideoModal": {"strings": ["renderLinkComponent", ".Messages.OPEN_IN_BROWSER", "videoWrapper"]},
|
||||
"ImageVideoModal": {"strings": ["renderLinkComponent", ".Messages.OPEN_IN_BROWSER", "videoWrapper"], "noSearch": true},
|
||||
"InboxHeader": {"strings": [".UNREADS", ".TODOS", ".controls"]},
|
||||
"IncomingCallModal": {"strings": [".Messages.INCOMING_VIDEO_CALL_ELLIPSIS", ".isFocused", "maxX:window.innerWidth"]},
|
||||
"InviteGuildName": {"strings": [".guild;return", "().guildName", "().guildNameWrapper"]},
|
||||
|
@ -519,7 +519,7 @@
|
|||
"SearchResultsPagination": {"strings": [".pageLength", ".changePage", "maxVisiblePages"]},
|
||||
"SettingsView": {"strings": ["tabBarItemContainer", "PROFILE_CUSTOMIZATION", "badgeCount"]},
|
||||
"Shakeable": {"protos": ["shake", "getDefaultAnimProps", "stop"]},
|
||||
"Spoiler": {"strings": ["revealSpoiler", ".onReveal"]},
|
||||
"Spoiler": {"strings": [".removeObscurity", ".onReveal"]},
|
||||
"SpoilerWarning": {"strings": [".spoilerWarning", ".SPOILER"]},
|
||||
"StandardSidebarView": {"strings": ["standardSidebarView", ".sidebarTheme", "mobileSidebarHeader"]},
|
||||
"SystemMessageThreadCreated": {"strings": ["threadOnClick:", ".SYSTEM_MESSAGE_THREAD_CREATED", "viewThreadsOnClick:"]},
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @name RevealAllSpoilers
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 1.1.0
|
||||
* @version 1.1.1
|
||||
* @description Allows you to reveal all Spoilers within a Message/Status by holding the Ctrl Key and clicking a Spoiler
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -74,12 +74,11 @@ module.exports = (_ => {
|
|||
}
|
||||
|
||||
processSpoiler (e) {
|
||||
BDFDB.PatchUtils.patch(this, e.instance, "revealSpoiler", {after: e2 => {
|
||||
if (e2.methodArguments[0].ctrlKey) {
|
||||
BDFDB.ListenerUtils.stopEvent(e2.methodArguments[0]);
|
||||
let parent = BDFDB.DOMUtils.getParent(e2.methodArguments[0].shiftKey ? BDFDB.dotCN.messageswrapper : BDFDB.dotCN.message, e2.methodArguments[0].target) || e2.methodArguments[0].target.parentElement;
|
||||
if (parent) for (let spoiler of parent.querySelectorAll(BDFDB.dotCN.spoilerhidden)) if (!BDFDB.DOMUtils.getParent(BDFDB.dotCN.messagerepliedmessagepreview, spoiler)) spoiler.click();
|
||||
}
|
||||
BDFDB.PatchUtils.patch(this, e.instance, "removeObscurity", {after: e2 => {
|
||||
if (!e2.methodArguments[0].ctrlKey) return;
|
||||
BDFDB.ListenerUtils.stopEvent(e2.methodArguments[0]);
|
||||
let parent = BDFDB.DOMUtils.getParent(e2.methodArguments[0].shiftKey ? BDFDB.dotCN.messageswrapper : BDFDB.dotCN.message, e2.methodArguments[0].target) || e2.methodArguments[0].target.parentElement;
|
||||
if (parent) for (let spoiler of parent.querySelectorAll(BDFDB.dotCN.spoilerhidden)) if (!BDFDB.DOMUtils.getParent(BDFDB.dotCN.messagerepliedmessagepreview, spoiler)) spoiler.click();
|
||||
}}, {noCache: true});
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue