2020-10-20 23:25:34 +02:00
/ * *
* @ name DisplayLargeMessages
* @ authorId 278543574059057154
* @ invite Jx3TjNS
2020-11-19 16:45:36 +01:00
* @ 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-01-14 16:14:44 +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 } ` ; }
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 ;
2020-11-19 16:45:36 +01:00
require ( "request" ) . get ( "https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js" , ( e , r , b ) => {
2020-10-20 23:25:34 +02:00
if ( ! e && b && b . indexOf ( ` * @name BDFDB ` ) > - 1 ) require ( "fs" ) . writeFile ( require ( "path" ) . join ( BdApi . Plugins . folder , "0BDFDB.plugin.js" ) , b , _ => { } ) ;
2021-01-14 16:14:44 +01:00
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-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. \n Please click <a style="font-weight: 500;">Download Now</a> to install it.</div> ` ;
2020-11-28 23:12:09 +01:00
template . content . firstElementChild . querySelector ( "a" ) . addEventListener ( "click" , _ => {
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 , _ => { } ) ;
2021-01-14 16:14:44 +01:00
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-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 : 24 px ;
height : 24 px ;
margin - left : 4 px ;
margin - right : 4 px ;
}
$ { 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 : 8 px ;
margin - bottom : 8 px ;
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 , {
2020-12-21 19:56:36 +01:00
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 , {
2020-12-21 19:56:36 +01:00
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 ,
subheader : "" ,
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 ) {
2020-12-21 19:56:36 +01:00
case "bg" : // Bulgarian
2020-09-19 20:49:33 +02:00
return {
2020-12-21 19:56:36 +01:00
button _injectattachmenty : "Заредете съдържанието на съобщението" ,
context _uninjectattachment : "Премахнете зареденото съдържание на съобщението"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "da" : // Danish
2020-09-19 20:49:33 +02:00
return {
2020-12-21 19:56:36 +01:00
button _injectattachmenty : "Indlæs beskedindhold" ,
context _uninjectattachment : "Fjern indlæst beskedindhold"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "de" : // German
2020-09-19 20:49:33 +02:00
return {
2020-12-21 19:56:36 +01:00
button _injectattachment : "Nachrichteninhalt laden" ,
context _uninjectattachment : "Geladenen Nachrichteninhalt entfernen" ,
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "el" : // Greek
2020-09-19 20:49:33 +02:00
return {
2020-12-21 19:56:36 +01:00
button _injectattachmenty : "Φόρτωση περιεχομένου μηνύματος" ,
context _uninjectattachment : "Καταργήστε το φορτωμένο περιεχόμενο μηνυμάτων"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "es" : // Spanish
2020-09-19 20:49:33 +02:00
return {
2020-12-21 19:56:36 +01:00
button _injectattachmenty : "Cargar el contenido del mensaje" ,
context _uninjectattachment : "Eliminar el contenido del mensaje cargado"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "fi" : // Finnish
2020-09-19 20:49:33 +02:00
return {
2020-12-21 19:56:36 +01:00
button _injectattachmenty : "Lataa viestin sisältö" ,
context _uninjectattachment : "Poista ladattu viestin sisältö"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "fr" : // French
2020-09-19 20:49:33 +02:00
return {
2020-12-21 19:56:36 +01:00
button _injectattachmenty : "Charger le contenu du message" ,
context _uninjectattachment : "Supprimer le contenu du message chargé"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "hr" : // Croatian
2020-09-19 20:49:33 +02:00
return {
2020-12-21 19:56:36 +01:00
button _injectattachmenty : "Učitaj sadržaj poruke" ,
context _uninjectattachment : "Uklonite učitani sadržaj poruke"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "hu" : // Hungarian
2020-09-19 20:49:33 +02:00
return {
2020-12-21 19:56:36 +01:00
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
} ;
2020-12-21 19:56:36 +01:00
case "it" : // Italian
2020-09-19 20:49:33 +02:00
return {
2020-12-21 19:56:36 +01:00
button _injectattachmenty : "Carica il contenuto del messaggio" ,
context _uninjectattachment : "Rimuovi il contenuto del messaggio caricato"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "ja" : // Japanese
2020-09-19 20:49:33 +02:00
return {
2020-12-21 19:56:36 +01:00
button _injectattachmenty : "メッセージコンテンツをロードする" ,
context _uninjectattachment : "ロードされたメッセージコンテンツを削除する"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "ko" : // Korean
2020-09-19 20:49:33 +02:00
return {
2020-12-21 19:56:36 +01:00
button _injectattachmenty : "메시지 내용로드" ,
context _uninjectattachment : "로드 된 메시지 내용 제거"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "lt" : // Lithuanian
2020-09-19 20:49:33 +02:00
return {
2020-12-21 19:56:36 +01:00
button _injectattachmenty : "Įkelti pranešimo turinį" ,
context _uninjectattachment : "Pašalinkite įkeltą pranešimo turinį"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "nl" : // Dutch
2020-09-19 20:49:33 +02:00
return {
2020-12-21 19:56:36 +01:00
button _injectattachmenty : "Laad berichtinhoud" ,
context _uninjectattachment : "Verwijder de geladen berichtinhoud"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "no" : // Norwegian
2020-09-19 20:49:33 +02:00
return {
2020-12-21 19:56:36 +01:00
button _injectattachmenty : "Last inn meldingsinnhold" ,
context _uninjectattachment : "Fjern innlastet meldingsinnhold"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "pl" : // Polish
2020-09-19 20:49:33 +02:00
return {
2020-12-21 19:56:36 +01:00
button _injectattachmenty : "Załaduj treść wiadomości" ,
context _uninjectattachment : "Usuń wczytaną treść wiadomości"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "pt-BR" : // Portuguese (Brazil)
2020-09-19 20:49:33 +02:00
return {
2020-12-21 19:56:36 +01:00
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
} ;
2020-12-21 19:56:36 +01:00
case "ro" : // Romanian
2020-09-19 20:49:33 +02:00
return {
2020-12-21 19:56:36 +01:00
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
} ;
2020-12-21 19:56:36 +01:00
case "ru" : // Russian
2020-09-19 20:49:33 +02:00
return {
2020-12-21 19:56:36 +01:00
button _injectattachmenty : "Загрузить содержимое сообщения" ,
context _uninjectattachment : "Удалить загруженное содержимое сообщения"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "sv" : // Swedish
2020-09-19 20:49:33 +02:00
return {
2020-12-21 19:56:36 +01:00
button _injectattachmenty : "Ladda meddelandens innehåll" ,
context _uninjectattachment : "Ta bort laddat meddelandeinnehåll"
2020-09-19 20:49:33 +02:00
} ;
2020-12-21 19:56:36 +01:00
case "th" : // Thai
2020-09-19 20:49:33 +02:00
return {
2020-12-21 19:56:36 +01:00
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"
} ;
case "zh" : // Chinese
return {
button _injectattachmenty : "加载消息内容" ,
context _uninjectattachment : "删除已加载的邮件内容"
} ;
case "zh-TW" : // Chinese (Traditional)
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
} ) ( ) ;