BetterDiscordAddons/Plugins/DisplayLargeMessages/DisplayLargeMessages.plugin.js

469 lines
19 KiB
JavaScript
Raw Normal View History

2020-10-20 23:25:34 +02:00
/**
* @name DisplayLargeMessages
* @authorId 278543574059057154
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
* @patreon https://www.patreon.com/MircoWittrien
* @website https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/DisplayLargeMessages
* @source https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/DisplayLargeMessages/DisplayLargeMessages.plugin.js
* @updateUrl https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/DisplayLargeMessages/DisplayLargeMessages.plugin.js
2020-10-20 23:25:34 +02:00
*/
2020-04-14 18:27:51 +02:00
2020-09-19 20:49:33 +02:00
module.exports = (_ => {
2020-10-09 21:09:35 +02:00
const config = {
2020-09-19 20:49:33 +02:00
"info": {
"name": "DisplayLargeMessages",
"author": "DevilBro",
2020-12-02 20:23:41 +01:00
"version": "1.0.7",
2020-10-16 10:25:30 +02:00
"description": "Inject the contents of large messages that were sent by discord via 'message.txt'"
2020-12-02 20:23:41 +01:00
},
"changelog": {
"added": {
"Open in popout": "Added an option to add a button that allows you to preview the contents of a 'message.txt' in a popup"
}
2020-04-19 14:01:52 +02:00
}
2020-09-19 20:49:33 +02:00
};
2020-11-13 19:47:44 +01:00
2020-10-09 21:09:35 +02:00
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
2021-01-06 12:38:36 +01:00
getName () {return config.info.name;}
getAuthor () {return config.info.author;}
getVersion () {return config.info.version;}
2021-02-01 17:13:13 +01:00
getDescription () {return `The Library Plugin needed for ${config.info.name} is missing. Open the Plugin Settings to download it. \n\n${config.info.description}`;}
downloadLibrary () {
require("request").get("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js", (e, r, b) => {
if (!e && b && b.indexOf(`* @name BDFDB`) > -1) require("fs").writeFile(require("path").join(BdApi.Plugins.folder, "0BDFDB.plugin.js"), b, _ => {});
else BdApi.alert("Error", "Could not download BDFDB Library Plugin, try again later or download it manually from GitHub: https://github.com/mwittrien/BetterDiscordAddons/tree/master/Library/");
});
}
2020-09-19 20:49:33 +02:00
2021-01-06 12:38:36 +01:00
load () {
2020-11-19 16:51:14 +01:00
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
2020-09-19 20:49:33 +02:00
if (!window.BDFDB_Global.downloadModal) {
window.BDFDB_Global.downloadModal = true;
2021-01-14 16:14:44 +01:00
BdApi.showConfirmationModal("Library Missing", `The Library Plugin needed for ${config.info.name} is missing. Please click "Download Now" to install it.`, {
2020-09-19 20:49:33 +02:00
confirmText: "Download Now",
cancelText: "Cancel",
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
2020-09-20 08:15:13 +02:00
onConfirm: _ => {
delete window.BDFDB_Global.downloadModal;
2021-02-01 17:13:13 +01:00
this.downloadLibrary();
2020-09-20 08:15:13 +02:00
}
2020-09-19 20:49:33 +02:00
});
}
if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name);
2020-10-09 21:09:35 +02:00
}
2021-01-06 12:38:36 +01:00
start () {this.load();}
stop () {}
getSettingsPanel () {
2020-11-28 23:12:09 +01:00
let template = document.createElement("template");
2021-01-14 16:14:44 +01:00
template.innerHTML = `<div style="color: var(--header-primary); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${config.info.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
2021-02-01 17:13:13 +01:00
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
2020-11-28 23:12:09 +01:00
return template.content.firstElementChild;
}
2020-10-09 21:09:35 +02:00
} : (([Plugin, BDFDB]) => {
2020-09-19 20:49:33 +02:00
var encodedMessages, requestedMessages, pendingRequests, oldMessages, updateTimeout;
var settings = {}, amounts = {};
2020-10-09 21:09:35 +02:00
return class DisplayLargeMessages extends Plugin {
2021-01-06 12:38:36 +01:00
onLoad () {
2020-09-19 20:49:33 +02:00
this.defaults = {
settings: {
2020-12-02 20:23:41 +01:00
onDemand: {value: false, description: "Inject the content of 'message.txt' on demand and not automatically"},
addOpenButton: {value: true, description: "Add a button to preview the contents of 'message.txt' in a popup"}
2020-09-19 20:49:33 +02:00
},
amounts: {
2020-12-02 20:23:41 +01:00
maxFileSize: {value: 10, min: 0, description: "Max Filesize a file will be read automatically", note: "in KB / 0 = inject all / ignored in On-Demand"}
2020-09-19 20:49:33 +02:00
}
};
2020-04-19 14:01:52 +02:00
2020-09-19 20:49:33 +02:00
this.patchedModules = {
after: {
Messages: "type",
Attachment: "default"
}
};
this.css = `
2020-12-02 20:23:41 +01:00
${BDFDB.dotCN._displaylargemessagesinjectbuttonwrapper},
${BDFDB.dotCN._displaylargemessagespopoutbuttonwrapper} {
display: block;
width: 24px;
height: 24px;
margin-left: 4px;
margin-right: 4px;
}
${BDFDB.dotCN._displaylargemessagesinjectbutton},
${BDFDB.dotCN._displaylargemessagespopoutbutton} {
2020-09-19 20:49:33 +02:00
color: var(--interactive-normal);
cursor: pointer;
}
2020-12-02 20:23:41 +01:00
${BDFDB.dotCN._displaylargemessagesinjectbutton}:hover,
${BDFDB.dotCN._displaylargemessagespopoutbutton}:hover {
2020-09-19 20:49:33 +02:00
color: var(--interactive-hover);
}
2020-12-02 20:23:41 +01:00
${BDFDB.dotCN._displaylargemessagespreviewmessage} {
margin-top: 8px;
margin-bottom: 8px;
pointer-events: all;
}
2020-09-19 20:49:33 +02:00
`;
2020-04-14 18:27:51 +02:00
}
2020-09-19 20:49:33 +02:00
2021-01-06 12:38:36 +01:00
onStart () {
2020-09-19 20:49:33 +02:00
encodedMessages = {};
requestedMessages = [];
pendingRequests = [];
oldMessages = {};
2020-04-19 14:01:52 +02:00
2020-09-11 19:31:36 +02:00
BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.MessageUtils, "startEditMessage", {before: e => {
2020-04-19 14:01:52 +02:00
let encodedContent = encodedMessages[e.methodArguments[1]];
if (encodedContent != null) e.methodArguments[2] = encodedContent.content;
}});
2020-09-11 19:31:36 +02:00
BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.MessageUtils, "editMessage", {before: e => {
2020-04-19 14:01:52 +02:00
let encodedContent = encodedMessages[e.methodArguments[1]];
2020-05-23 11:45:38 +02:00
let oldMessage = oldMessages[e.methodArguments[1]];
2020-04-19 14:01:52 +02:00
if (encodedContent != null) encodedContent.content = e.methodArguments[2].content;
2020-05-23 11:45:38 +02:00
if (oldMessage != null) oldMessage.content = e.methodArguments[2].content;
2020-04-19 14:01:52 +02:00
}});
2020-04-14 18:27:51 +02:00
2020-04-19 14:01:52 +02:00
this.forceUpdateAll();
2020-04-14 18:27:51 +02:00
}
2020-09-19 20:49:33 +02:00
2021-01-06 12:38:36 +01:00
onStop () {
2020-04-19 14:01:52 +02:00
this.forceUpdateAll();
2020-04-14 18:27:51 +02:00
}
2020-09-19 20:49:33 +02:00
getSettingsPanel (collapseStates = {}) {
let settingsPanel, settingsItems = [];
for (let key in settings) settingsItems.push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SettingsSaveItem, {
type: "Switch",
plugin: this,
keys: ["settings", key],
label: this.defaults.settings[key].description,
value: settings[key],
onChange: _ => {
if (key == "onDemand") BDFDB.PluginUtils.refreshSettingsPanel(this, settingsPanel, collapseStates);
}
}));
for (let key in amounts) settingsItems.push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SettingsSaveItem, {
type: "TextInput",
childProps: {
type: "number"
},
plugin: this,
keys: ["amounts", key],
disabled: key == "maxFileSize" && settings.onDemand,
label: this.defaults.amounts[key].description,
note: this.defaults.amounts[key].note,
basis: "20%",
min: this.defaults.amounts[key].min,
max: this.defaults.amounts[key].max,
value: amounts[key]
}));
return settingsPanel = BDFDB.PluginUtils.createSettingsPanel(this, settingsItems);
2020-04-19 14:01:52 +02:00
}
2021-01-06 12:38:36 +01:00
onSettingsClosed () {
2020-09-19 20:49:33 +02:00
if (this.SettingsUpdated) {
delete this.SettingsUpdated;
encodedMessages = {};
requestedMessages = [];
pendingRequests = [];
this.forceUpdateAll();
2020-05-23 11:45:38 +02:00
}
}
2020-09-19 20:49:33 +02:00
2021-01-06 12:38:36 +01:00
forceUpdateAll () {
2020-09-19 20:49:33 +02:00
settings = BDFDB.DataUtils.get(this, "settings");
amounts = BDFDB.DataUtils.get(this, "amounts");
BDFDB.PatchUtils.forceAllUpdates(this);
BDFDB.MessageUtils.rerenderAll();
}
2020-05-23 11:45:38 +02:00
2020-09-19 20:49:33 +02:00
onMessageContextMenu (e) {
if (e.instance.props.message && !requestedMessages.includes(e.instance.props.message.id)) {
let encodedContent = encodedMessages[e.instance.props.message.id];
if (encodedContent) {
let [children, index] = BDFDB.ContextMenuUtils.findItem(e.returnvalue, {id: "devmode-copy-id", group: true});
children.splice(index > -1 ? index : 0, 0, BDFDB.ContextMenuUtils.createItem(BDFDB.LibraryComponents.MenuItems.MenuGroup, {
children: BDFDB.ContextMenuUtils.createItem(BDFDB.LibraryComponents.MenuItems.MenuItem, {
label: this.labels.context_uninjectattachment,
2020-09-19 20:49:33 +02:00
id: BDFDB.ContextMenuUtils.createItemId(this.name, "uninject-attachment"),
action: _ => {
delete encodedMessages[e.instance.props.message.id];
BDFDB.MessageUtils.rerenderAll(true);
}
})
}));
2020-04-19 14:01:52 +02:00
}
2020-04-14 18:27:51 +02:00
}
}
2020-09-19 20:49:33 +02:00
processMessages (e) {
e.returnvalue.props.children.props.channelStream = [].concat(e.returnvalue.props.children.props.channelStream);
for (let i in e.returnvalue.props.children.props.channelStream) {
let message = e.returnvalue.props.children.props.channelStream[i].content;
if (message) {
if (BDFDB.ArrayUtils.is(message.attachments)) this.checkMessage(e.instance, e.returnvalue.props.children.props.channelStream[i], message);
else if (BDFDB.ArrayUtils.is(message)) for (let j in message) {
let childMessage = message[j].content;
if (childMessage && BDFDB.ArrayUtils.is(childMessage.attachments)) this.checkMessage(e.instance, message[j], childMessage);
}
}
2020-05-23 14:00:14 +02:00
}
}
2020-09-19 20:49:33 +02:00
checkMessage (instance, stream, message) {
let encodedContent = encodedMessages[message.id];
if (encodedContent != null) {
if (message.content.indexOf(encodedContent.attachment) == -1) {
stream.content.content = (message.content && (message.content + "\n\n") || "") + encodedContent.attachment;
stream.content.attachments = message.attachments.filter(n => n.filename != "message.txt");
}
}
else if (oldMessages[message.id] && Object.keys(message).some(key => !BDFDB.equals(oldMessages[message.id][key], message[key]))) {
stream.content.content = oldMessages[message.id].content;
stream.content.attachments = oldMessages[message.id].attachments;
delete oldMessages[message.id];
}
else if (!settings.onDemand && !requestedMessages.includes(message.id)) for (let attachment of message.attachments) {
if (attachment.filename == "message.txt" && (!amounts.maxFileSize || (amounts.maxFileSize >= attachment.size/1024))) {
requestedMessages.push(message.id);
BDFDB.LibraryRequires.request(attachment.url, (error, response, body) => {
encodedMessages[message.id] = {
content: message.content || "",
attachment: body || ""
};
BDFDB.TimeUtils.clear(updateTimeout);
updateTimeout = BDFDB.TimeUtils.timeout(_ => {BDFDB.ReactUtils.forceUpdate(instance);}, 1000);
});
}
2020-05-23 14:00:14 +02:00
}
}
2020-09-19 20:49:33 +02:00
processAttachment (e) {
if (e.instance.props.filename == "message.txt" && (settings.onDemand || amounts.maxFileSize && (amounts.maxFileSize < e.instance.props.size/1024))) {
2020-12-02 20:23:41 +01:00
e.returnvalue.props.children.splice(2, 0, [
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
text: this.labels.button_injectattachment,
2020-12-02 20:23:41 +01:00
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Anchor, {
className: BDFDB.disCN._displaylargemessagesinjectbuttonwrapper,
rel: "noreferrer noopener",
target: "_blank",
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, {
className: BDFDB.disCN._displaylargemessagesinjectbutton,
name: BDFDB.LibraryComponents.SvgIcon.Names.RAW_TEXT,
width: 22,
height: 22
}),
onClick: event => {
BDFDB.ListenerUtils.stopEvent(event);
let target = event.target;
let message = BDFDB.ReactUtils.findValue(target, "message", {up: true});
if (message && !pendingRequests.includes(message.id)) {
pendingRequests.push(message.id);
BDFDB.LibraryRequires.request(e.instance.props.url, (error, response, body) => {
BDFDB.ArrayUtils.remove(pendingRequests, message.id, true);
oldMessages[message.id] = new BDFDB.DiscordObjects.Message(message);
encodedMessages[message.id] = {
content: message.content || "",
attachment: body || ""
};
BDFDB.MessageUtils.rerenderAll(true);
});
}
}
})
}),
settings.addOpenButton && BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
text: BDFDB.LanguageUtils.LanguageStrings.OPEN,
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Anchor, {
className: BDFDB.disCN._displaylargemessagespopoutbuttonwrapper,
rel: "noreferrer noopener",
target: "_blank",
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, {
className: BDFDB.disCN._displaylargemessagespopoutbutton,
name: BDFDB.LibraryComponents.SvgIcon.Names.OPEN_EXTERNAL
}),
onClick: event => {
BDFDB.ListenerUtils.stopEvent(event);
let target = event.target;
let message = BDFDB.ReactUtils.findValue(target, "message", {up: true});
let channel = message && BDFDB.LibraryModules.ChannelStore.getChannel(message.channel_id);
if (message && channel && !pendingRequests.includes(message.id)) {
pendingRequests.push(message.id);
BDFDB.LibraryRequires.request(e.instance.props.url, (error, response, body) => {
BDFDB.ArrayUtils.remove(pendingRequests, message.id, true);
BDFDB.ModalUtils.open(this, {
size: "LARGE",
header: BDFDB.LanguageUtils.LanguageStrings.MESSAGE_PREVIEW,
2021-01-23 18:50:24 +01:00
subHeader: "",
2020-12-02 20:23:41 +01:00
children: BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCNS.messagepopout + BDFDB.disCN._displaylargemessagespreviewmessage,
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.MessageGroup, {
message: new BDFDB.DiscordObjects.Message({
author: message.author,
channel_id: channel.id,
content: body
}),
channel: channel
})
})
});
});
}
2020-09-19 20:49:33 +02:00
}
2020-12-02 20:23:41 +01:00
})
2020-09-19 20:49:33 +02:00
})
2020-12-02 20:23:41 +01:00
]);
e.returnvalue.props.children = e.returnvalue.props.children.flat(10).filter(n => n);
2020-09-19 20:49:33 +02:00
}
2020-06-22 10:31:47 +02:00
}
2020-05-23 11:45:38 +02:00
2021-01-06 12:38:36 +01:00
setLabelsByLanguage () {
2020-09-19 20:49:33 +02:00
switch (BDFDB.LanguageUtils.getLanguage().id) {
case "bg": // Bulgarian
2020-09-19 20:49:33 +02:00
return {
button_injectattachmenty: "Заредете съдържанието на съобщението",
context_uninjectattachment: "Премахнете зареденото съдържание на съобщението"
2020-09-19 20:49:33 +02:00
};
case "da": // Danish
2020-09-19 20:49:33 +02:00
return {
button_injectattachmenty: "Indlæs beskedindhold",
context_uninjectattachment: "Fjern indlæst beskedindhold"
2020-09-19 20:49:33 +02:00
};
case "de": // German
2020-09-19 20:49:33 +02:00
return {
button_injectattachment: "Nachrichteninhalt laden",
context_uninjectattachment: "Geladenen Nachrichteninhalt entfernen",
2020-09-19 20:49:33 +02:00
};
case "el": // Greek
2020-09-19 20:49:33 +02:00
return {
button_injectattachmenty: "Φόρτωση περιεχομένου μηνύματος",
context_uninjectattachment: "Καταργήστε το φορτωμένο περιεχόμενο μηνυμάτων"
2020-09-19 20:49:33 +02:00
};
case "es": // Spanish
2020-09-19 20:49:33 +02:00
return {
button_injectattachmenty: "Cargar el contenido del mensaje",
context_uninjectattachment: "Eliminar el contenido del mensaje cargado"
2020-09-19 20:49:33 +02:00
};
case "fi": // Finnish
2020-09-19 20:49:33 +02:00
return {
button_injectattachmenty: "Lataa viestin sisältö",
context_uninjectattachment: "Poista ladattu viestin sisältö"
2020-09-19 20:49:33 +02:00
};
case "fr": // French
2020-09-19 20:49:33 +02:00
return {
button_injectattachmenty: "Charger le contenu du message",
context_uninjectattachment: "Supprimer le contenu du message chargé"
2020-09-19 20:49:33 +02:00
};
case "hr": // Croatian
2020-09-19 20:49:33 +02:00
return {
button_injectattachmenty: "Učitaj sadržaj poruke",
context_uninjectattachment: "Uklonite učitani sadržaj poruke"
2020-09-19 20:49:33 +02:00
};
case "hu": // Hungarian
2020-09-19 20:49:33 +02:00
return {
button_injectattachmenty: "Üzenet tartalmának betöltése",
context_uninjectattachment: "Távolítsa el a betöltött üzenet tartalmát"
2020-09-19 20:49:33 +02:00
};
case "it": // Italian
2020-09-19 20:49:33 +02:00
return {
button_injectattachmenty: "Carica il contenuto del messaggio",
context_uninjectattachment: "Rimuovi il contenuto del messaggio caricato"
2020-09-19 20:49:33 +02:00
};
case "ja": // Japanese
2020-09-19 20:49:33 +02:00
return {
button_injectattachmenty: "メッセージコンテンツをロードする",
context_uninjectattachment: "ロードされたメッセージコンテンツを削除する"
2020-09-19 20:49:33 +02:00
};
case "ko": // Korean
2020-09-19 20:49:33 +02:00
return {
button_injectattachmenty: "메시지 내용로드",
context_uninjectattachment: "로드 된 메시지 내용 제거"
2020-09-19 20:49:33 +02:00
};
case "lt": // Lithuanian
2020-09-19 20:49:33 +02:00
return {
button_injectattachmenty: "Įkelti pranešimo turinį",
context_uninjectattachment: "Pašalinkite įkeltą pranešimo turinį"
2020-09-19 20:49:33 +02:00
};
case "nl": // Dutch
2020-09-19 20:49:33 +02:00
return {
button_injectattachmenty: "Laad berichtinhoud",
context_uninjectattachment: "Verwijder de geladen berichtinhoud"
2020-09-19 20:49:33 +02:00
};
case "no": // Norwegian
2020-09-19 20:49:33 +02:00
return {
button_injectattachmenty: "Last inn meldingsinnhold",
context_uninjectattachment: "Fjern innlastet meldingsinnhold"
2020-09-19 20:49:33 +02:00
};
case "pl": // Polish
2020-09-19 20:49:33 +02:00
return {
button_injectattachmenty: "Załaduj treść wiadomości",
context_uninjectattachment: "Usuń wczytaną treść wiadomości"
2020-09-19 20:49:33 +02:00
};
case "pt-BR": // Portuguese (Brazil)
2020-09-19 20:49:33 +02:00
return {
button_injectattachmenty: "Carregar o conteúdo da mensagem",
context_uninjectattachment: "Remover o conteúdo da mensagem carregada"
2020-09-19 20:49:33 +02:00
};
case "ro": // Romanian
2020-09-19 20:49:33 +02:00
return {
button_injectattachmenty: "Încărcați conținutul mesajului",
context_uninjectattachment: "Eliminați conținutul mesajului încărcat"
2020-09-19 20:49:33 +02:00
};
case "ru": // Russian
2020-09-19 20:49:33 +02:00
return {
button_injectattachmenty: "Загрузить содержимое сообщения",
context_uninjectattachment: "Удалить загруженное содержимое сообщения"
2020-09-19 20:49:33 +02:00
};
case "sv": // Swedish
2020-09-19 20:49:33 +02:00
return {
button_injectattachmenty: "Ladda meddelandens innehåll",
context_uninjectattachment: "Ta bort laddat meddelandeinnehåll"
2020-09-19 20:49:33 +02:00
};
case "th": // Thai
2020-09-19 20:49:33 +02:00
return {
button_injectattachmenty: "โหลดเนื้อหาข้อความ",
context_uninjectattachment: "ลบเนื้อหาข้อความที่โหลด"
};
case "tr": // Turkish
return {
button_injectattachmenty: "Mesaj içeriğini yükle",
context_uninjectattachment: "Yüklenen mesaj içeriğini kaldırın"
};
case "uk": // Ukrainian
return {
button_injectattachmenty: "Завантажити вміст повідомлення",
context_uninjectattachment: "Видалити завантажений вміст повідомлення"
};
case "vi": // Vietnamese
return {
button_injectattachmenty: "Tải nội dung tin nhắn",
context_uninjectattachment: "Xóa nội dung tin nhắn đã tải"
};
2021-01-15 17:54:22 +01:00
case "zh-CN": // Chinese (China)
return {
button_injectattachmenty: "加载消息内容",
context_uninjectattachment: "删除已加载的邮件内容"
};
2021-01-15 17:54:22 +01:00
case "zh-TW": // Chinese (Taiwan)
return {
button_injectattachmenty: "加載消息內容",
context_uninjectattachment: "刪除已加載的郵件內容"
};
default: // English
return {
button_injectattachmenty: "Load message content",
context_uninjectattachment: "Remove loaded message content"
2020-09-19 20:49:33 +02:00
};
}
2020-05-23 11:45:38 +02:00
}
2020-09-19 20:49:33 +02:00
};
2020-10-09 21:09:35 +02:00
})(window.BDFDB_Global.PluginUtils.buildPlugin(config));
2020-09-19 20:49:33 +02:00
})();