stuff
This commit is contained in:
parent
83bda59ecc
commit
2d2b40d2c6
Plugins
BDFDB.jsBDFDB.min.js
BadgesEverywhere
BetterFriendCount
BetterNsfwTag
BetterSearchPage
CharCounter
ChatAliases
ChatFilter
CompleteTimestamps
CopyRawMessage
CreationDate
DisplayServersAsChannels
EditChannels
EditServers
EditUsers
EmojiStatistics
ForceImagePreviews
FriendNotifications
GoogleSearchReplace
GoogleTranslateOption
ImageGallery
ImageZoom
JoinedAtDate
LastMessageDate
MessageUtilities
MoveablePopups
NotificationSounds
OldTitleBar
OwnerTag
PersonalPins
PinDMs
PluginRepo
ReadAllNotificationsButton
RemoveNicknames
RepoControls
RevealAllSpoilersOption
ReverseImageSearch
SendLargeMessages
ServerFolders
ServerHider
ShowHiddenChannels
ShowImageDetails
SpellCheck
StalkerNotifications
SteamProfileLink
ThemeRepo
ThemeSettings
TimedLightDarkMode
TopRoleEverywhere
UserNotes
WriteUpperCase
937
Plugins/BDFDB.js
937
Plugins/BDFDB.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -190,7 +190,7 @@ class BadgesEverywhere {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
|
|
@ -53,7 +53,7 @@ class BetterFriendCount {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this, "TabBar");
|
BDFDB.ModuleUtils.forceAllUpdates(this, "TabBar");
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
|
|
@ -48,7 +48,7 @@ class BetterNsfwTag {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
|
|
@ -109,7 +109,7 @@ class BetterSearchPage {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
|
|
@ -104,7 +104,7 @@ class CharCounter {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -170,7 +170,7 @@ class ChatAliases {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
@ -310,7 +310,7 @@ class ChatAliases {
|
||||||
label: "Add to ChatAliases",
|
label: "Add to ChatAliases",
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-addalias-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-addalias-contextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(menu);
|
BDFDB.ContextMenuUtils.close(menu);
|
||||||
this.openAddModal(text);
|
this.openAddModal(text);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -183,7 +183,7 @@ class ChatFilter {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
@ -302,7 +302,7 @@ class ChatFilter {
|
||||||
label: "Add to ChatFilter",
|
label: "Add to ChatFilter",
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-addalias-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-addalias-contextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(menu);
|
BDFDB.ContextMenuUtils.close(menu);
|
||||||
this.openAddModal(text);
|
this.openAddModal(text);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -131,7 +131,7 @@ class CompleteTimestamps {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ class CopyRawMessage {
|
||||||
if (this.started) return;
|
if (this.started) return;
|
||||||
BDFDB.PluginUtils.init(this);
|
BDFDB.PluginUtils.init(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
@ -70,7 +70,7 @@ class CopyRawMessage {
|
||||||
hint: BDFDB.BDUtils.isPluginEnabled("MessageUtilities") ? BDFDB.BDUtils.getPlugin("MessageUtilities").getActiveShortcutString("Copy_Raw") : null,
|
hint: BDFDB.BDUtils.isPluginEnabled("MessageUtilities") ? BDFDB.BDUtils.getPlugin("MessageUtilities").getActiveShortcutString("Copy_Raw") : null,
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-copyraw-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-copyraw-contextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(menu);
|
BDFDB.ContextMenuUtils.close(menu);
|
||||||
BDFDB.LibraryRequires.electron.clipboard.write({text:instance.props.message.content});
|
BDFDB.LibraryRequires.electron.clipboard.write({text:instance.props.message.content});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -127,7 +127,7 @@ class CreationDate {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@ class DisplayServersAsChannels {
|
||||||
if (e.currentTarget.querySelector(BDFDB.dotCN.guildpillwrapper + BDFDB.notCN.dmpill + "+ *") && !document.querySelector(BDFDB.dotCN.guildpillwrapper + BDFDB.notCN.dmpill + "+ *:hover")) BDFDB.DOMUtils.removeLocalStyle("HideAllToolTips" + this.name);
|
if (e.currentTarget.querySelector(BDFDB.dotCN.guildpillwrapper + BDFDB.notCN.dmpill + "+ *") && !document.querySelector(BDFDB.dotCN.guildpillwrapper + BDFDB.notCN.dmpill + "+ *:hover")) BDFDB.DOMUtils.removeLocalStyle("HideAllToolTips" + this.name);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
|
|
@ -115,7 +115,7 @@ class EditChannels {
|
||||||
|
|
||||||
this.forceUpdateAll();
|
this.forceUpdateAll();
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
@ -152,7 +152,7 @@ class EditChannels {
|
||||||
label: this.labels.submenu_channelsettings_text,
|
label: this.labels.submenu_channelsettings_text,
|
||||||
className: `BDFDB-ContextMenuItem ${this.name}-ContextMenuItem ${this.name}-channelsettings-ContextMenuItem`,
|
className: `BDFDB-ContextMenuItem ${this.name}-ContextMenuItem ${this.name}-channelsettings-ContextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(menu);
|
BDFDB.ContextMenuUtils.close(menu);
|
||||||
this.showChannelSettings(instance.props.channel);
|
this.showChannelSettings(instance.props.channel);
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
@ -161,7 +161,7 @@ class EditChannels {
|
||||||
className: `BDFDB-ContextMenuItem ${this.name}-ContextMenuItem ${this.name}-resetsettings-ContextMenuItem`,
|
className: `BDFDB-ContextMenuItem ${this.name}-ContextMenuItem ${this.name}-resetsettings-ContextMenuItem`,
|
||||||
disabled: !BDFDB.DataUtils.load(this, "channels", instance.props.channel.id),
|
disabled: !BDFDB.DataUtils.load(this, "channels", instance.props.channel.id),
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(menu);
|
BDFDB.ContextMenuUtils.close(menu);
|
||||||
BDFDB.DataUtils.remove(this, "channels", instance.props.channel.id);
|
BDFDB.DataUtils.remove(this, "channels", instance.props.channel.id);
|
||||||
this.forceUpdateAll();
|
this.forceUpdateAll();
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,7 +105,7 @@ class EditServers {
|
||||||
|
|
||||||
this.forceUpdateAll();
|
this.forceUpdateAll();
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
@ -143,7 +143,7 @@ class EditServers {
|
||||||
label: this.labels.submenu_serversettings_text,
|
label: this.labels.submenu_serversettings_text,
|
||||||
className: `BDFDB-ContextMenuItem ${this.name}-ContextMenuItem ${this.name}-serversettings-ContextMenuItem`,
|
className: `BDFDB-ContextMenuItem ${this.name}-ContextMenuItem ${this.name}-serversettings-ContextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(menu);
|
BDFDB.ContextMenuUtils.close(menu);
|
||||||
this.showServerSettings(instance.props.guild);
|
this.showServerSettings(instance.props.guild);
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
@ -152,7 +152,7 @@ class EditServers {
|
||||||
className: `BDFDB-ContextMenuItem ${this.name}-ContextMenuItem ${this.name}-resetsettings-ContextMenuItem`,
|
className: `BDFDB-ContextMenuItem ${this.name}-ContextMenuItem ${this.name}-resetsettings-ContextMenuItem`,
|
||||||
disabled: !BDFDB.DataUtils.load(this, "servers", instance.props.guild.id),
|
disabled: !BDFDB.DataUtils.load(this, "servers", instance.props.guild.id),
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(menu);
|
BDFDB.ContextMenuUtils.close(menu);
|
||||||
BDFDB.DataUtils.remove(this, "servers", instance.props.guild.id);
|
BDFDB.DataUtils.remove(this, "servers", instance.props.guild.id);
|
||||||
this.forceUpdateAll(instance.props.guild.id);
|
this.forceUpdateAll(instance.props.guild.id);
|
||||||
}
|
}
|
||||||
|
|
|
@ -161,7 +161,7 @@ class EditUsers {
|
||||||
|
|
||||||
this.forceUpdateAll();
|
this.forceUpdateAll();
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -199,7 +199,7 @@ class EditUsers {
|
||||||
label: this.labels.submenu_usersettings_text,
|
label: this.labels.submenu_usersettings_text,
|
||||||
className: `BDFDB-ContextMenuItem ${this.name}-ContextMenuItem ${this.name}-usersettings-ContextMenuItem`,
|
className: `BDFDB-ContextMenuItem ${this.name}-ContextMenuItem ${this.name}-usersettings-ContextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(menu);
|
BDFDB.ContextMenuUtils.close(menu);
|
||||||
this.showUserSettings(instance.props.user);
|
this.showUserSettings(instance.props.user);
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
@ -208,7 +208,7 @@ class EditUsers {
|
||||||
className: `BDFDB-ContextMenuItem ${this.name}-ContextMenuItem ${this.name}-resetsettings-ContextMenuItem`,
|
className: `BDFDB-ContextMenuItem ${this.name}-ContextMenuItem ${this.name}-resetsettings-ContextMenuItem`,
|
||||||
disabled: !BDFDB.DataUtils.load(this, "users", instance.props.user.id),
|
disabled: !BDFDB.DataUtils.load(this, "users", instance.props.user.id),
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(menu);
|
BDFDB.ContextMenuUtils.close(menu);
|
||||||
BDFDB.DataUtils.remove(this, "users", instance.props.user.id);
|
BDFDB.DataUtils.remove(this, "users", instance.props.user.id);
|
||||||
this.forceUpdateAll();
|
this.forceUpdateAll();
|
||||||
}
|
}
|
||||||
|
|
|
@ -182,7 +182,7 @@ class EmojiStatistics {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
|
|
@ -47,7 +47,7 @@ class ForceImagePreviews {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
|
|
@ -322,7 +322,7 @@ class FriendNotifications {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
|
|
@ -83,7 +83,7 @@ class GoogleSearchReplace {
|
||||||
if (this.started) return;
|
if (this.started) return;
|
||||||
BDFDB.PluginUtils.init(this);
|
BDFDB.PluginUtils.init(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
@ -117,7 +117,7 @@ class GoogleSearchReplace {
|
||||||
label: this.defaults.engines[key].name,
|
label: this.defaults.engines[key].name,
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-engine-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-engine-contextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
if (!e.shiftKey) BDFDB.closeContextMenu(menu);
|
if (!e.shiftKey) BDFDB.ContextMenuUtils.close(menu);
|
||||||
if (key == "_all") {
|
if (key == "_all") {
|
||||||
for (let key2 in engines) if (key2 != "_all" && engines[key2]) window.open(this.defaults.engines[key2].url.replace(this.textUrlReplaceString, encodeURIComponent(text)), "_blank");
|
for (let key2 in engines) if (key2 != "_all" && engines[key2]) window.open(this.defaults.engines[key2].url.replace(this.textUrlReplaceString, encodeURIComponent(text)), "_blank");
|
||||||
}
|
}
|
||||||
|
|
|
@ -135,7 +135,7 @@ class GoogleTranslateOption {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
@ -166,7 +166,7 @@ class GoogleTranslateOption {
|
||||||
hint: BDFDB.BDUtils.isPluginEnabled("MessageUtilities") ? BDFDB.BDUtils.getPlugin("MessageUtilities").getActiveShortcutString("__Translate_Message") : null,
|
hint: BDFDB.BDUtils.isPluginEnabled("MessageUtilities") ? BDFDB.BDUtils.getPlugin("MessageUtilities").getActiveShortcutString("__Translate_Message") : null,
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-${translated ? "untranslate" : "translate"}-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-${translated ? "untranslate" : "translate"}-contextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(menu);
|
BDFDB.ContextMenuUtils.close(menu);
|
||||||
this.translateMessage(instance.props.message, instance.props.target, instance.props.channel);
|
this.translateMessage(instance.props.message, instance.props.target, instance.props.channel);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -188,7 +188,7 @@ class GoogleTranslateOption {
|
||||||
};
|
};
|
||||||
if (foundtranslation && foundinput && foundoutput) {
|
if (foundtranslation && foundinput && foundoutput) {
|
||||||
if (document.querySelector(".googletranslate-tooltip")) {
|
if (document.querySelector(".googletranslate-tooltip")) {
|
||||||
BDFDB.closeContextMenu(menu);
|
BDFDB.ContextMenuUtils.close(menu);
|
||||||
window.open(this.getGoogleTranslatePageURL(foundinput.id, foundoutput.id, text), "_blank");
|
window.open(this.getGoogleTranslatePageURL(foundinput.id, foundoutput.id, text), "_blank");
|
||||||
}
|
}
|
||||||
else createTooltip();
|
else createTooltip();
|
||||||
|
|
|
@ -67,7 +67,7 @@ class ImageGallery {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
|
|
@ -70,7 +70,7 @@ class ImageZoom {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
@ -133,7 +133,7 @@ class ImageZoom {
|
||||||
className: `BDFDB-contextMenuItemGroup ${this.name}-contextMenuItemGroup`,
|
className: `BDFDB-contextMenuItemGroup ${this.name}-contextMenuItemGroup`,
|
||||||
children: items
|
children: items
|
||||||
});
|
});
|
||||||
BDFDB.openContextMenu(this, e, itemGroup);
|
BDFDB.ContextMenuUtils.open(this, e, itemGroup);
|
||||||
};
|
};
|
||||||
settingslink.addEventListener("click", openContext);
|
settingslink.addEventListener("click", openContext);
|
||||||
settingslink.addEventListener("contextmenu", openContext);
|
settingslink.addEventListener("contextmenu", openContext);
|
||||||
|
|
|
@ -128,7 +128,7 @@ class JoinedAtDate {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -135,7 +135,7 @@ class LastMessageDate {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -127,7 +127,7 @@ class MessageUtilities {
|
||||||
this.onKeyDown(e, e.which, "onKeyDown");
|
this.onKeyDown(e, e.which, "onKeyDown");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
|
|
@ -84,7 +84,7 @@ class MoveablePopups {
|
||||||
});
|
});
|
||||||
BDFDB.ObserverUtils.connect(this, BDFDB.ReactUtils.findDOMNode(BDFDB.ReactUtils.findOwner(document.querySelector(BDFDB.dotCN.app), {name:"Modals"})), {name:"modalObserver", instance:observer}, {childList: true});
|
BDFDB.ObserverUtils.connect(this, BDFDB.ReactUtils.findDOMNode(BDFDB.ReactUtils.findOwner(document.querySelector(BDFDB.dotCN.app), {name:"Modals"})), {name:"modalObserver", instance:observer}, {childList: true});
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -271,7 +271,7 @@ class NotificationSounds {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -164,7 +164,7 @@ class OldTitleBar {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,7 @@ class OwnerTag {
|
||||||
|
|
||||||
this.addHideCSS();
|
this.addHideCSS();
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
|
|
@ -176,7 +176,7 @@ class PersonalPins {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -218,7 +218,7 @@ class PersonalPins {
|
||||||
hint: BDFDB.BDUtils.isPluginEnabled("MessageUtilities") ? BDFDB.BDUtils.getPlugin("MessageUtilities").getActiveShortcutString("__Note_Message") : null,
|
hint: BDFDB.BDUtils.isPluginEnabled("MessageUtilities") ? BDFDB.BDUtils.getPlugin("MessageUtilities").getActiveShortcutString("__Note_Message") : null,
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-${note ? "unpin" : "pin"}-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-${note ? "unpin" : "pin"}-contextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(menu);
|
BDFDB.ContextMenuUtils.close(menu);
|
||||||
this.addMessageToNotes(instance.props.message, instance.props.target, instance.props.channel);
|
this.addMessageToNotes(instance.props.message, instance.props.target, instance.props.channel);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -232,7 +232,7 @@ class PersonalPins {
|
||||||
label: this.labels.context_updateoption_text,
|
label: this.labels.context_updateoption_text,
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-update-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-update-contextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(menu);
|
BDFDB.ContextMenuUtils.close(menu);
|
||||||
this.updateNoteData(note, newmarkup, newaccessory);
|
this.updateNoteData(note, newmarkup, newaccessory);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -161,7 +161,7 @@ class PinDMs {
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
delete this.forceAdding;
|
delete this.forceAdding;
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
@ -231,7 +231,7 @@ class PinDMs {
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-${pinnedInChannel ? "unpin" : "pin"}channel-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-${pinnedInChannel ? "unpin" : "pin"}channel-contextMenuItem`,
|
||||||
danger: pinnedInChannel,
|
danger: pinnedInChannel,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(menu);
|
BDFDB.ContextMenuUtils.close(menu);
|
||||||
if (!pinnedInChannel) {
|
if (!pinnedInChannel) {
|
||||||
let dmsscrollerinstance = BDFDB.ReactUtils.getInstance(document.querySelector(BDFDB.dotCNS.dmchannels + BDFDB.dotCN.scroller));
|
let dmsscrollerinstance = BDFDB.ReactUtils.getInstance(document.querySelector(BDFDB.dotCNS.dmchannels + BDFDB.dotCN.scroller));
|
||||||
if (dmsscrollerinstance) {
|
if (dmsscrollerinstance) {
|
||||||
|
@ -252,7 +252,7 @@ class PinDMs {
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-${pinnedInGuild ? "unpin" : "pin"}guild-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-${pinnedInGuild ? "unpin" : "pin"}guild-contextMenuItem`,
|
||||||
danger: pinnedInGuild,
|
danger: pinnedInGuild,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(menu);
|
BDFDB.ContextMenuUtils.close(menu);
|
||||||
if (!pinnedInGuild) {
|
if (!pinnedInGuild) {
|
||||||
this.addPinnedRecent(id);
|
this.addPinnedRecent(id);
|
||||||
this.updatePinnedPositions("pinnedRecents");
|
this.updatePinnedPositions("pinnedRecents");
|
||||||
|
@ -350,14 +350,14 @@ class PinDMs {
|
||||||
label: this.labels.context_pinguild_text,
|
label: this.labels.context_pinguild_text,
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-pinguild-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-pinguild-contextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(BDFDB.DOMUtils.getParent(BDFDB.dotCN.contextmenu, e.target));
|
BDFDB.ContextMenuUtils.close(BDFDB.DOMUtils.getParent(BDFDB.dotCN.contextmenu, e.target));
|
||||||
this.addPinnedRecent(instance.props.channel.id);
|
this.addPinnedRecent(instance.props.channel.id);
|
||||||
this.updatePinnedPositions("pinnedRecents");
|
this.updatePinnedPositions("pinnedRecents");
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
BDFDB.openContextMenu(this, e, itemGroup);
|
BDFDB.ContextMenuUtils.open(this, e, itemGroup);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
wrapper.addEventListener("contextmenu", wrapper.PinDMsContextMenuListener);
|
wrapper.addEventListener("contextmenu", wrapper.PinDMsContextMenuListener);
|
||||||
|
@ -532,7 +532,7 @@ class PinDMs {
|
||||||
danger: true,
|
danger: true,
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-unpinguild-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-unpinguild-contextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(BDFDB.DOMUtils.getParent(BDFDB.dotCN.contextmenu, e.target));
|
BDFDB.ContextMenuUtils.close(BDFDB.DOMUtils.getParent(BDFDB.dotCN.contextmenu, e.target));
|
||||||
BDFDB.DOMUtils.remove(dmdiv);
|
BDFDB.DOMUtils.remove(dmdiv);
|
||||||
this.unhideNativeDM(id);
|
this.unhideNativeDM(id);
|
||||||
BDFDB.DataUtils.remove(this, "pinnedRecents", id);
|
BDFDB.DataUtils.remove(this, "pinnedRecents", id);
|
||||||
|
@ -541,7 +541,7 @@ class PinDMs {
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
BDFDB.openContextMenu(this, e, itemGroup);
|
BDFDB.ContextMenuUtils.open(this, e, itemGroup);
|
||||||
});
|
});
|
||||||
dmdiv.addEventListener("mousedown", e => {
|
dmdiv.addEventListener("mousedown", e => {
|
||||||
let x = e.pageX, y = e.pageY;
|
let x = e.pageX, y = e.pageY;
|
||||||
|
|
|
@ -307,7 +307,7 @@ class PluginRepo {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -339,7 +339,7 @@ class PluginRepo {
|
||||||
label: "Plugin Repo",
|
label: "Plugin Repo",
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-repo-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-repo-contextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
if (!this.loading.is) BDFDB.closeContextMenu(menu);
|
if (!this.loading.is) BDFDB.ContextMenuUtils.close(menu);
|
||||||
this.openPluginRepoModal();
|
this.openPluginRepoModal();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -113,7 +113,7 @@ class ReadAllNotificationsButton {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
@ -149,7 +149,7 @@ class ReadAllNotificationsButton {
|
||||||
label: this.labels.context_unreadguilds_text,
|
label: this.labels.context_unreadguilds_text,
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-unreadguilds-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-unreadguilds-contextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(BDFDB.DOMUtils.getParent(BDFDB.dotCN.contextmenu, e.target));
|
BDFDB.ContextMenuUtils.close(BDFDB.DOMUtils.getParent(BDFDB.dotCN.contextmenu, e.target));
|
||||||
BDFDB.GuildUtils.markAsRead(BDFDB.GuildUtils.getUnread());
|
BDFDB.GuildUtils.markAsRead(BDFDB.GuildUtils.getUnread());
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
@ -157,7 +157,7 @@ class ReadAllNotificationsButton {
|
||||||
label: this.labels.context_pingedguilds_text,
|
label: this.labels.context_pingedguilds_text,
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-pingedguilds-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-pingedguilds-contextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(BDFDB.DOMUtils.getParent(BDFDB.dotCN.contextmenu, e.target));
|
BDFDB.ContextMenuUtils.close(BDFDB.DOMUtils.getParent(BDFDB.dotCN.contextmenu, e.target));
|
||||||
BDFDB.GuildUtils.markAsRead(BDFDB.GuildUtils.getPinged());
|
BDFDB.GuildUtils.markAsRead(BDFDB.GuildUtils.getPinged());
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
@ -165,7 +165,7 @@ class ReadAllNotificationsButton {
|
||||||
label: this.labels.context_mutedguilds_text,
|
label: this.labels.context_mutedguilds_text,
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-mutedguilds-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-mutedguilds-contextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(BDFDB.DOMUtils.getParent(BDFDB.dotCN.contextmenu, e.target));
|
BDFDB.ContextMenuUtils.close(BDFDB.DOMUtils.getParent(BDFDB.dotCN.contextmenu, e.target));
|
||||||
BDFDB.GuildUtils.markAsRead(BDFDB.GuildUtils.getMuted());
|
BDFDB.GuildUtils.markAsRead(BDFDB.GuildUtils.getMuted());
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
@ -173,7 +173,7 @@ class ReadAllNotificationsButton {
|
||||||
label: this.labels.context_guilds_text,
|
label: this.labels.context_guilds_text,
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-guilds-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-guilds-contextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(BDFDB.DOMUtils.getParent(BDFDB.dotCN.contextmenu, e.target));
|
BDFDB.ContextMenuUtils.close(BDFDB.DOMUtils.getParent(BDFDB.dotCN.contextmenu, e.target));
|
||||||
this.addPinnedRecent(instance.props.channel.id);
|
this.addPinnedRecent(instance.props.channel.id);
|
||||||
BDFDB.GuildUtils.markAsRead(BDFDB.GuildUtils.getAll());
|
BDFDB.GuildUtils.markAsRead(BDFDB.GuildUtils.getAll());
|
||||||
}
|
}
|
||||||
|
@ -182,13 +182,13 @@ class ReadAllNotificationsButton {
|
||||||
label: this.labels.context_dms_text,
|
label: this.labels.context_dms_text,
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-dms-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-dms-contextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(BDFDB.DOMUtils.getParent(BDFDB.dotCN.contextmenu, e.target));
|
BDFDB.ContextMenuUtils.close(BDFDB.DOMUtils.getParent(BDFDB.dotCN.contextmenu, e.target));
|
||||||
BDFDB.DMUtils.markAsRead(BDFDB.DMUtils.getAll());
|
BDFDB.DMUtils.markAsRead(BDFDB.DMUtils.getAll());
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
BDFDB.openContextMenu(this, e, itemGroup);
|
BDFDB.ContextMenuUtils.open(this, e, itemGroup);
|
||||||
});
|
});
|
||||||
BDFDB.DOMUtils.addClass(wrapper, "RAN-added");
|
BDFDB.DOMUtils.addClass(wrapper, "RAN-added");
|
||||||
}
|
}
|
||||||
|
|
|
@ -90,7 +90,7 @@ class RemoveNicknames {
|
||||||
this.reseting = false;
|
this.reseting = false;
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -177,7 +177,7 @@ class RepoControls {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ class RevealAllSpoilersOption {
|
||||||
if (this.started) return;
|
if (this.started) return;
|
||||||
BDFDB.PluginUtils.init(this);
|
BDFDB.PluginUtils.init(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
@ -73,7 +73,7 @@ class RevealAllSpoilersOption {
|
||||||
hint: BDFDB.BDUtils.isPluginEnabled("MessageUtilities") ? BDFDB.BDUtils.getPlugin("MessageUtilities").getActiveShortcutString("__Reveal_Spoilers") : null,
|
hint: BDFDB.BDUtils.isPluginEnabled("MessageUtilities") ? BDFDB.BDUtils.getPlugin("MessageUtilities").getActiveShortcutString("__Reveal_Spoilers") : null,
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-reveal-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-reveal-contextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(menu);
|
BDFDB.ContextMenuUtils.close(menu);
|
||||||
this.revealAllSpoilers(messagediv);
|
this.revealAllSpoilers(messagediv);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -90,7 +90,7 @@ class ReverseImageSearch {
|
||||||
if (this.started) return;
|
if (this.started) return;
|
||||||
BDFDB.PluginUtils.init(this);
|
BDFDB.PluginUtils.init(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
@ -152,7 +152,7 @@ class ReverseImageSearch {
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-engine-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-engine-contextMenuItem`,
|
||||||
danger: key == "_all",
|
danger: key == "_all",
|
||||||
action: e => {
|
action: e => {
|
||||||
if (!e.shiftKey) BDFDB.closeContextMenu(menu);
|
if (!e.shiftKey) BDFDB.ContextMenuUtils.close(menu);
|
||||||
if (key == "_all") {
|
if (key == "_all") {
|
||||||
for (let key2 in engines) if (key2 != "_all" && engines[key2]) window.open(this.defaults.engines[key2].url.replace(this.imgUrlReplaceString, encodeURIComponent(url)), "_blank");
|
for (let key2 in engines) if (key2 != "_all" && engines[key2]) window.open(this.defaults.engines[key2].url.replace(this.imgUrlReplaceString, encodeURIComponent(url)), "_blank");
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,7 +107,7 @@ class SendLargeMessages {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -265,7 +265,7 @@ class ServerFolders {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
@ -350,7 +350,7 @@ class ServerFolders {
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-removefolder-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-removefolder-contextMenuItem`,
|
||||||
danger: true,
|
danger: true,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(BDFDB.DOMUtils.getParent(BDFDB.dotCN.contextmenu, e.target));
|
BDFDB.ContextMenuUtils.close(BDFDB.DOMUtils.getParent(BDFDB.dotCN.contextmenu, e.target));
|
||||||
BDFDB.ModalUtils.confirm(this, `Are you sure you want to remove the folder${folder.folderName ? (" '" + folder.folderName + '"') : ""}?`, () => {this.removeFolder(folderid);});
|
BDFDB.ModalUtils.confirm(this, `Are you sure you want to remove the folder${folder.folderName ? (" '" + folder.folderName + '"') : ""}?`, () => {this.removeFolder(folderid);});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -366,7 +366,7 @@ class ServerFolders {
|
||||||
label: folders[i].folderName || (this.labels.modal_tabheader1_text + " #" + parseInt(i+1)),
|
label: folders[i].folderName || (this.labels.modal_tabheader1_text + " #" + parseInt(i+1)),
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-addtofolder-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-addtofolder-contextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(menu);
|
BDFDB.ContextMenuUtils.close(menu);
|
||||||
this.addGuildToFolder(folders[i].folderId, guildid);
|
this.addGuildToFolder(folders[i].folderId, guildid);
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
@ -384,7 +384,7 @@ class ServerFolders {
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-removefromfolder-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-removefromfolder-contextMenuItem`,
|
||||||
danger: true,
|
danger: true,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(menu);
|
BDFDB.ContextMenuUtils.close(menu);
|
||||||
this.removeGuildFromFolder(folder.folderId, guildid);
|
this.removeGuildFromFolder(folder.folderId, guildid);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -394,7 +394,7 @@ class ServerFolders {
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-createfolder-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-createfolder-contextMenuItem`,
|
||||||
disabled: !openguilds.length,
|
disabled: !openguilds.length,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(menu);
|
BDFDB.ContextMenuUtils.close(menu);
|
||||||
this.openFolderCreationMenu(openguilds, guildid);
|
this.openFolderCreationMenu(openguilds, guildid);
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -124,7 +124,7 @@ class ServerHider {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
@ -167,7 +167,7 @@ class ServerHider {
|
||||||
label: this.labels.submenu_openhidemenu_text,
|
label: this.labels.submenu_openhidemenu_text,
|
||||||
className: `BDFDB-ContextMenuItem ${this.name}-ContextMenuItem ${this.name}-hidemenu-ContextMenuItem`,
|
className: `BDFDB-ContextMenuItem ${this.name}-ContextMenuItem ${this.name}-hidemenu-ContextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(menu);
|
BDFDB.ContextMenuUtils.close(menu);
|
||||||
this.showServerModal();
|
this.showServerModal();
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
@ -176,7 +176,7 @@ class ServerHider {
|
||||||
className: `BDFDB-ContextMenuItem ${this.name}-ContextMenuItem ${this.name}-hideserver-ContextMenuItem`,
|
className: `BDFDB-ContextMenuItem ${this.name}-ContextMenuItem ${this.name}-hideserver-ContextMenuItem`,
|
||||||
disabled: !(instance.props.guild && !instance.props.target.getAttribute("folder")),
|
disabled: !(instance.props.guild && !instance.props.target.getAttribute("folder")),
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(menu);
|
BDFDB.ContextMenuUtils.close(menu);
|
||||||
this.toggleServer(instance.props.guild, instance.props.target, false);
|
this.toggleServer(instance.props.guild, instance.props.target, false);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -156,7 +156,7 @@ class ShowHiddenChannels {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this, "Channels");
|
BDFDB.ModuleUtils.forceAllUpdates(this, "Channels");
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
|
|
@ -91,7 +91,7 @@ class ShowImageDetails {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
|
|
@ -120,7 +120,7 @@ class SpellCheck {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
@ -175,7 +175,7 @@ class SpellCheck {
|
||||||
label: suggestion,
|
label: suggestion,
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-suggestion-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-suggestion-contextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(menu);
|
BDFDB.ContextMenuUtils.close(menu);
|
||||||
this.replaceWord(textarea, word, suggestion);
|
this.replaceWord(textarea, word, suggestion);
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
@ -195,7 +195,7 @@ class SpellCheck {
|
||||||
hint: word,
|
hint: word,
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-addword-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-addword-contextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(menu);
|
BDFDB.ContextMenuUtils.close(menu);
|
||||||
this.addToOwnDictionary(word);
|
this.addToOwnDictionary(word);
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -69,7 +69,7 @@ class StalkerNotifications {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
|
|
@ -48,7 +48,7 @@ class SteamProfileLink {
|
||||||
if (news && news.url && news.url.includes("steam")) this.openInSteam(e, news.url);
|
if (news && news.url && news.url.includes("steam")) this.openInSteam(e, news.url);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -373,7 +373,7 @@ class ThemeRepo {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -399,7 +399,7 @@ class ThemeRepo {
|
||||||
label: "Theme Repo",
|
label: "Theme Repo",
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-repo-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-repo-contextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
if (!this.loading.is) BDFDB.closeContextMenu(menu);
|
if (!this.loading.is) BDFDB.ContextMenuUtils.close(menu);
|
||||||
this.openThemeRepoModal();
|
this.openThemeRepoModal();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -49,7 +49,7 @@ class ThemeSettings {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
|
|
@ -61,7 +61,7 @@ class TimedLightDarkMode {
|
||||||
|
|
||||||
this.startInterval();
|
this.startInterval();
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
|
|
@ -93,7 +93,7 @@ class TopRoleEverywhere {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
|
|
@ -108,7 +108,7 @@ class UserNotes {
|
||||||
if (this.started) return;
|
if (this.started) return;
|
||||||
BDFDB.PluginUtils.init(this);
|
BDFDB.PluginUtils.init(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ class UserNotes {
|
||||||
label: BDFDB.LanguageUtils.LanguageStrings.USERS + " " + BDFDB.LanguageUtils.LanguageStrings.NOTE,
|
label: BDFDB.LanguageUtils.LanguageStrings.USERS + " " + BDFDB.LanguageUtils.LanguageStrings.NOTE,
|
||||||
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-usernote-contextMenuItem`,
|
className: `BDFDB-contextMenuItem ${this.name}-contextMenuItem ${this.name}-usernote-contextMenuItem`,
|
||||||
action: e => {
|
action: e => {
|
||||||
BDFDB.closeContextMenu(menu);
|
BDFDB.ContextMenuUtils.close(menu);
|
||||||
this.openNotesModal(instance.props.user);
|
this.openNotesModal(instance.props.user);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -46,7 +46,7 @@ class WriteUpperCase {
|
||||||
|
|
||||||
BDFDB.ModuleUtils.forceAllUpdates(this);
|
BDFDB.ModuleUtils.forceAllUpdates(this);
|
||||||
}
|
}
|
||||||
else console.error(`%c[${this.getName()}]%c`, 'color: #3a71c1; font-weight: 700;', '', 'Fatal Error: Could not load BD functions!');
|
else console.error(`%c[${this.getName()}]%c`, "color: #3a71c1; font-weight: 700;", "", "Fatal Error: Could not load BD functions!");
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
|
|
Loading…
Reference in New Issue