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