Plugin
CustomStatusPresets
Allows you to save Custom Statuses as Quick Select and select them by right-clicking the Status Bubble
Installation: Datei herunterladen und in deinen BetterDiscord-Ordner legen —
%appdata%\\BetterDiscord\\plugins
(Windows) bzw. über Discord: Einstellungen → Plugins → Plugin-Ordner öffnen.
CustomStatusPresets.plugin.js · 618 Zeilen · 25.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
/*
FILE META START
name: CustomStatusPresets.plugin.js
version: 0.0.10
description: Multi-surface admin, cloud, bot host, login, and secure chat server.
lastModified: 2026-05-04T20:22:59.634Z
checksum: 706303e05695cdb535363c2c5e20cefa728c8ea8cc0f0594956893cef85a7ed6
FILE META END
*/
/**
* @name CustomStatusPresets
* @author HeadX
* @authorId 808385710700494919
* @description Allows you to save Custom Statuses as Quick Select and select them by right-clicking the Status Bubble
* @version 1.3.7
* @invite J6wTJJ5fp
* @website https://headcraft.cloud/better-discord
* @source https://headcraft.cloud/better-discord/CustomStatusPresets.plugin.js
* @updateUrl https://headcraft.cloud/better-discord/CustomStatusPresets.plugin.js
*/
module.exports = (_ => {
const changeLog = {
};
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
constructor (meta) {for (let key in meta) this[key] = meta[key];}
getName () {return this.name;}
getAuthor () {return this.author;}
getVersion () {return this.version;}
getDescription () {return `The Library Plugin needed for ${this.name} is missing. Open the Plugin Settings to download it. \n\n${this.description}`;}
downloadLibrary () {
BdApi.Net.fetch("https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js").then(r => {
if (!r || r.status != 200) throw new Error();
else return r.text();
}).then(b => {
if (!b) throw new Error();
else return require("fs").writeFile(require("path").join(BdApi.Plugins.folder, "0BDFDB.plugin.js"), b, _ => BdApi.UI.showToast("Finished downloading BDFDB Library", {type: "success"}));
}).catch(error => {
BdApi.UI.alert("Error", "Could not download BDFDB Library Plugin. Try again later or download it manually from GitHub: https://mwittrien.github.io/downloader/?library");
});
}
load () {
if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue: []});
if (!window.BDFDB_Global.downloadModal) {
window.BDFDB_Global.downloadModal = true;
BdApi.UI.showConfirmationModal("Library Missing", `The Library Plugin needed for ${this.name} is missing. Please click "Download Now" to install it.`, {
confirmText: "Download Now",
cancelText: "Cancel",
onCancel: _ => {delete window.BDFDB_Global.downloadModal;},
onConfirm: _ => {
delete window.BDFDB_Global.downloadModal;
this.downloadLibrary();
}
});
}
if (!window.BDFDB_Global.pluginQueue.includes(this.name)) window.BDFDB_Global.pluginQueue.push(this.name);
}
start () {this.load();}
stop () {}
getSettingsPanel () {
let template = document.createElement("template");
template.innerHTML = `<div style="color: var(--text-strong); font-size: 16px; font-weight: 300; white-space: pre; line-height: 22px;">The Library Plugin needed for ${this.name} is missing.\nPlease click <a style="font-weight: 500;">Download Now</a> to install it.</div>`;
template.content.firstElementChild.querySelector("a").addEventListener("click", this.downloadLibrary);
return template.content.firstElementChild;
}
} : (([Plugin, BDFDB]) => {
var _this;
var presets = {};
const ClearAfterValues = {
HOURS_1: 3600000,
HOURS_4: 14400000,
MINUTES_30: 1800000,
DONT_CLEAR: "DONT_CLEAR",
TODAY: "TODAY"
};
const CustomStatusInputComponent = class CustomStatusInput extends BdApi.React.Component {
render() {
return BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCN.emojiinputcontainer,
children: [
BDFDB.ReactUtils.createElement("div", {
key: "EMOJIINPUT",
className: BDFDB.disCN.emojiinputbuttoncontainer,
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.EmojiPickerButton, {
emoji: this.props.emoji,
onSelect: value => {
this.props.emoji = value;
this.props.onChange(this.props);
BDFDB.ReactUtils.forceUpdate(this);
}
}, true)
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TextInput, {
key: "TEXTINPUT",
inputClassName: BDFDB.disCN.emojiinput,
maxLength: 128,
value: this.props.text,
placeholder: this.props.text,
onChange: value => {
this.props.text = value;
this.props.onChange(this.props);
BDFDB.ReactUtils.forceUpdate(this);
}
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Button, {
size: BDFDB.LibraryComponents.Button.Sizes.NONE,
look: BDFDB.LibraryComponents.Button.Looks.BLANK,
className: BDFDB.disCN.emojiinputclearbutton,
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, {
className: BDFDB.disCN.emojiinputclearicon,
name: BDFDB.LibraryComponents.SvgIcon.Names.CLOSE_CIRCLE
}),
onClick: (e, instance) => {
this.props.text = "";
delete this.props.emoji;
this.props.onChange(this.props);
BDFDB.ReactUtils.forceUpdate(this);
}
})
]
});
}
};
const SortableListComponent = class SortableList extends BdApi.React.Component {
createDragPreview(div, event) {
if (!Node.prototype.isPrototypeOf(div)) return;
let dragPreview = div.cloneNode(true);
BDFDB.DOMUtils.addClass(dragPreview, BDFDB.disCN._customstatuspresetsdragpreview);
BDFDB.DOMUtils.hide(dragPreview);
dragPreview.style.setProperty("pointer-events", "none", "important");
dragPreview.style.setProperty("left", event.clientX - 25 + "px", "important");
dragPreview.style.setProperty("top", event.clientY - 25 + "px", "important");
document.querySelector(BDFDB.dotCN.appmount).appendChild(dragPreview);
this.props.dragPreview = dragPreview;
}
updateDragPreview(event) {
if (!Node.prototype.isPrototypeOf(this.props.dragPreview)) return;
BDFDB.DOMUtils.show(this.props.dragPreview);
this.props.dragPreview.style.setProperty("left", event.clientX - 25 + "px", "important");
this.props.dragPreview.style.setProperty("top", event.clientY - 25 + "px", "important");
}
render() {
return !Object.keys(this.props.entries).length ? BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TextElement, {
children: "You haven't added any Custom Status Presets. You can add some via the Custom Status Modal, where you usually configure your Custom Status."
}) : Object.keys(BDFDB.ObjectUtils.sort(this.props.entries, this.props.sortKey)).map(id => [
this.props.hovered == id && BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCN._customstatuspresetssortdivider
}),
this.props.dragged != id && BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCN._customstatuspresetssortablecard,
cardId: id,
onMouseDown: event => {
event = event.nativeEvent || event;
let target = BDFDB.DOMUtils.containsClass(event.target, BDFDB.disCN.hovercard) ? event.target.parentElement : event.target;
if (!BDFDB.DOMUtils.containsClass(target, BDFDB.disCN._customstatuspresetssortablecard)) return;
let mouseMove = event2 => {
if (Math.sqrt((event.pageX - event2.pageX)**2) > 20 || Math.sqrt((event.pageY - event2.pageY)**2) > 20) {
BDFDB.ListenerUtils.stopEvent(event);
this.createDragPreview(target, event2);
this.props.dragged = id;
BDFDB.ReactUtils.forceUpdate(this);
document.removeEventListener("mousemove", mouseMove);
document.removeEventListener("mouseup", mouseUp);
let dragging = event3 => {
this.updateDragPreview(event3);
let hoveredId = BDFDB.DOMUtils.getParent(BDFDB.dotCN._customstatuspresetssortablecard, event3.target);
hoveredId = hoveredId && hoveredId.getAttribute("cardId");
let update = hoveredId != this.props.hovered;
this.props.hovered = hoveredId;
if (update) BDFDB.ReactUtils.forceUpdate(this);
};
let releasing = event3 => {
BDFDB.ListenerUtils.stopEvent(event3);
BDFDB.DOMUtils.remove(this.props.dragPreview);
if (this.props.hovered) {
presets[id][this.props.sortKey] = presets[this.props.hovered][this.props.sortKey] - 0.5;
let pos = 0, sortedPresets = BDFDB.ObjectUtils.sort(presets, this.props.sortKey);
for (let sortId in sortedPresets) presets[sortId][this.props.sortKey] = pos++;
this.props.entries = presets;
BDFDB.DataUtils.save(presets, _this, "presets");
}
delete this.props.dragged;
delete this.props.hovered;
BDFDB.ReactUtils.forceUpdate(this);
document.removeEventListener("mousemove", dragging);
document.removeEventListener("mouseup", releasing);
};
document.addEventListener("mousemove", dragging);
document.addEventListener("mouseup", releasing);
}
};
let mouseUp = _ => {
document.removeEventListener("mousemove", mouseMove);
document.removeEventListener("mouseup", mouseUp);
};
document.addEventListener("mousemove", mouseMove);
document.addEventListener("mouseup", mouseUp);
},
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Card, {
horizontal: true,
children: [
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Flex.Child, {
wrap: true,
children: BDFDB.ReactUtils.createElement(CustomStatusInputComponent, {
text: presets[id].text,
emoji: presets[id].emojiInfo,
onChange: value => {
presets[id].text = value.text;
presets[id].emojiInfo = value.emoji;
BDFDB.DataUtils.save(presets, _this, "presets");
}
})
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Select, {
className: BDFDB.disCN.flexchild,
value: ClearAfterValues[presets[id].clearAfter] || presets[id].clearAfter,
options: Object.entries(ClearAfterValues).map(entry => ({value: entry[1], label: !entry[1] || entry[1] == ClearAfterValues.DONT_CLEAR ? BDFDB.LanguageUtils.LanguageStrings.NEVER : entry[1] == ClearAfterValues.TODAY ? BDFDB.LanguageUtils.LanguageStrings.TODAY : BDFDB.LanguageUtils.LanguageStringsFormat("CLEAR_AFTER", `${entry[1]/3600000}h`)})),
onChange: value => {
presets[id].clearAfter = value;
BDFDB.DataUtils.save(presets, _this, "presets");
}
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Flex.Child, {
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Switch, {
value: !presets[id].disabled,
onChange: value => {
presets[id].disabled = !value;
BDFDB.DataUtils.save(presets, _this, "presets");
}
})
})
],
onRemove: _ => {
delete presets[id];
BDFDB.DataUtils.save(presets, _this, "presets");
this.props.entries = presets;
BDFDB.ReactUtils.forceUpdate(this);
}
})
})
]).flat().filter(n => n);
}
};
return class CustomStatusPresets extends Plugin {
onLoad () {
_this = this;
this.modulePatches = {
before: [
"ModalRoot"
],
after: [
"CustomStatusModalWithPreview",
"UserPopoutStatusBubble",
"UserPopoutStatusBubbleEmpty"
]
};
this.css = `
${BDFDB.dotCN.modalcontainer}:has(${BDFDB.dotCN.customstatusmodalprofilepreview}) {
min-width: 640px;
max-width: unset;
width: unset;
}
${BDFDB.dotCN.animationcontainerscale + BDFDB.dotCN.animationcontainerrender} {
transform: unset !important;
}
${BDFDB.dotCN.menu} #account-edit-custom-status ${BDFDB.dotCN.menuiconcontainer} {
margin-right: 8px;
margin-left: 0;
order: -1;
}
#status-picker${BDFDB.dotCN.menu} #status-picker-custom-status${BDFDB.dotCN.menulabelcontainer} {
padding-left: 0;
}
#status-picker${BDFDB.dotCN.menu} #status-picker-custom-status ${BDFDB.dotCN.menulabel} {
overflow: visible;
white-space: unset;
}
${BDFDB.dotCN._customstatuspresetscustomstatusitem} {
display: flex;
align-items: center;
}
${BDFDB.dotCNS._customstatuspresetscustomstatusitem + BDFDB.dotCN.menuiconcontainer} {
margin-left: 0;
margin-right: 6px;
}
${BDFDB.dotCN._customstatuspresetsdeletebutton} {
display: flex;
margin-right: 6px;
}
${BDFDB.dotCN._customstatuspresetsstatus} {
margin-right: 6px;
flex: 0 0 auto;
}
${BDFDB.dotCN._customstatuspresetssortdivider} {
background: ${BDFDB.DiscordConstants.Colors.GREEN};
height: 2px;
margin: 0 26px 8px 0;
}
${BDFDB.dotCN._customstatuspresetsdragpreview} {
pointer-events: none !important;
position: absolute !important;
opacity: 0.5 !important;
z-index: 10000 !important;
}
`;
}
onStart () {
this.forceUpdateAll();
}
onStop () {
this.forceUpdateAll();
}
getSettingsPanel (collapseStates = {}) {
let settingsPanel, settingsItems = [];
settingsItems.push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SettingsPanelList, {
title: "Custom Status Presets:",
dividerTop: true,
children: BDFDB.ReactUtils.createElement(SortableListComponent, {
entries: presets,
sortKey: "pos"
})
}));
return settingsPanel = BDFDB.PluginUtils.createSettingsPanel(this, settingsItems);
}
forceUpdateAll () {
presets = BDFDB.DataUtils.load(this, "presets");
for (let i in presets) if (presets[i].text && presets[i].text.text) presets[i] = Object.assign({}, presets[i], presets[i].text);
BDFDB.DataUtils.save(presets, this, "presets");
BDFDB.PatchUtils.forceAllUpdates(this);
}
processUserPopoutStatusBubble (e) {
this.processUserPopoutStatusBubbleEmpty(Object.assign({}, e, {returnvalue: BDFDB.ReactUtils.findChild(e.returnvalue, {props: [["className", BDFDB.disCN.userpopoutstatusbubbleeditable]]})}));
}
processUserPopoutStatusBubbleEmpty (e) {
if (e.instance.returnvalue) return;
let bubble = BDFDB.ReactUtils.findChild(e.returnvalue, {props: [["className", BDFDB.disCN.userpopoutstatusbubbleeditable]]}) || e.returnvalue;
if (!bubble) return;
let onContextMenu = bubble.props.onContextMenu;
bubble.props.onContextMenu = BDFDB.TimeUtils.suppress(event => {
onContextMenu && onContextMenu(event);
let enabledPresets = BDFDB.ObjectUtils.filter(presets, id => !presets[id].disabled, true);
BDFDB.ContextMenuUtils.open(this, event, BDFDB.ContextMenuUtils.createItem(BDFDB.LibraryComponents.MenuItems.MenuGroup, {
children: !Object.keys(enabledPresets).length ? BDFDB.ContextMenuUtils.createItem(BDFDB.LibraryComponents.MenuItems.MenuItem, {
id: BDFDB.ContextMenuUtils.createItemId(this.name, "no-presets"),
label: this.labels.contextmenu_no_presets,
disabled: true
}) : Object.keys(BDFDB.ObjectUtils.sort(enabledPresets, "pos")).map(id => {
let imageUrl = presets[id].emojiInfo && (presets[id].emojiInfo.id ? BDFDB.LibraryModules.IconUtils.getEmojiURL(presets[id].emojiInfo) : BDFDB.LibraryModules.EmojiStateUtils.getURL(presets[id].emojiInfo.name));
let clearAfter = ClearAfterValues[presets[id].clearAfter] || presets[id].clearAfter;
return BDFDB.ContextMenuUtils.createItem(BDFDB.LibraryComponents.MenuItems.MenuItem, {
id: BDFDB.ContextMenuUtils.createItemId(this.name, "custom-status-preset", id),
label: BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCN._customstatuspresetscustomstatusitem,
children: [
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
text: BDFDB.LanguageUtils.LanguageStrings.CLEAR_CUSTOM_STATUS,
tooltipConfig: {
zIndex: 2001
},
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Clickable, {
className: BDFDB.disCN._customstatuspresetsdeletebutton,
onClick: _ => {
delete presets[id];
let pos = 0, sortedPresets = BDFDB.ObjectUtils.sort(presets, "pos");
for (let id in sortedPresets) presets[id].pos = pos++;
BDFDB.DataUtils.save(presets, this, "presets");
},
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, {
className: BDFDB.disCN._customstatuspresetsdeleteicon,
name: BDFDB.LibraryComponents.SvgIcon.Names.CLOSE_CIRCLE,
width: 14,
height: 14
})
})
}),
!imageUrl ? null : BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCN.menuiconcontainer,
children: BDFDB.ReactUtils.createElement("img", {
className: BDFDB.disCN.menuicon,
src: imageUrl,
alt: ""
})
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TextScroller, {
children: presets[id].text
})
]
}),
icon: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.MenuItems.MenuHint, {
hint: !clearAfter || clearAfter == ClearAfterValues.DONT_CLEAR ? BDFDB.LanguageUtils.LanguageStrings.NEVER : clearAfter == ClearAfterValues.TODAY ? BDFDB.LanguageUtils.LanguageStrings.TODAY : BDFDB.LanguageUtils.LanguageStringsFormat("AFTER_PLACEHOLDER", `${clearAfter/3600000}h`)
}),
action: _ => {
if (!presets[id]) return;
let expiresAt = clearAfter && clearAfter != ClearAfterValues.DONT_CLEAR ? clearAfter : null;
if (clearAfter === ClearAfterValues.TODAY) {
let date = new Date;
expiresAt = new Date(date.getFullYear(), date.getMonth(), date.getDate() + 1).getTime() - date.getTime();
}
if (presets[id].status) BDFDB.DiscordUtils.setSetting("status", "status", presets[id].status);
BDFDB.DiscordUtils.setSetting("status", "customStatus", {
text: presets[id].text && presets[id].text.length > 0 ? presets[id].text : "",
expiresAtMs: expiresAt ? BDFDB.DiscordObjects.Timestamp().add(expiresAt, "ms").toDate().getTime().toString() : "0",
emojiId: presets[id].emojiInfo ? presets[id].emojiInfo.id : "0",
emojiName: presets[id].emojiInfo ? presets[id].emojiInfo.name : ""
});
}
});
})
}));
}, "", this);
}
processModalRoot (e) {
if (!BDFDB.ReactUtils.findChild(e.instance, {props: [["className", BDFDB.disCN.customstatusmodalprofilepreview]]})) return;
e.instance.props.size = BDFDB.LibraryComponents.ModalComponents.ModalSize.MEDIUM;
}
processCustomStatusModalWithPreview (e) {
e.returnvalue.props.actions.splice(-1, 0, {
text: this.labels.modal_savepreset,
onClick: event => {
BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.CustomStatusStore, "update", {instead: e2 => {
let id = BDFDB.NumberUtils.generateId(Object.keys(presets));
presets[id] = {
pos: Object.keys(presets).length,
clearAfter: e2.methodArguments[0].clearAfter,
emojiInfo: e2.methodArguments[0].emojiInfo,
text: e2.methodArguments[0].text
};
BDFDB.DataUtils.save(presets, this, "presets");
if (!event.shiftKey) e.instance.props.onClose();
else id = BDFDB.NumberUtils.generateId(Object.keys(presets));
}}, {once: true});
e.returnvalue.props.actions[e.returnvalue.props.actions.length-1].onClick();
}
});
}
setLabelsByLanguage () {
switch (BDFDB.LanguageUtils.getLanguage().id) {
case "bg": // Bulgarian
return {
contextmenu_no_presets: "Няма запазени бързи избори",
modal_savepreset: "Запазване като бърз избор"
};
case "cs": // Czech
return {
contextmenu_no_presets: "Nebyly uloženy žádné rychlé volby",
modal_savepreset: "Uložit jako Rychlý výběr"
};
case "da": // Danish
return {
contextmenu_no_presets: "Ingen hurtige valg er gemt",
modal_savepreset: "Gem som hurtigvalg"
};
case "de": // German
return {
contextmenu_no_presets: "Keine Schnellauswahl gespeichert",
modal_savepreset: "Als Schnellauswahl speichern"
};
case "el": // Greek
return {
contextmenu_no_presets: "Δεν έχουν αποθηκευτεί Γρήγορες Επιλογές",
modal_savepreset: "Αποθήκευση ως Γρήγορη επιλογή"
};
case "es": // Spanish
return {
contextmenu_no_presets: "No se han guardado selecciones rápidas",
modal_savepreset: "Guardar como selección rápida"
};
case "es-419": // Spanish (Latin America)
return {
contextmenu_no_presets: "No se han guardado selecciones rápidas",
modal_savepreset: "Guardar como selección rápida"
};
case "fi": // Finnish
return {
contextmenu_no_presets: "Pikavalintoja ei ole tallennettu",
modal_savepreset: "Tallenna pikavalintana"
};
case "fr": // French
return {
contextmenu_no_presets: "Aucune sélection rapide enregistrée",
modal_savepreset: "Enregistrer en tant que sélection rapide"
};
case "hi": // Hindi
return {
contextmenu_no_presets: "कोई त्वरित चयन सहेजा नहीं गया",
modal_savepreset: "त्वरित चयन के रूप में सहेजें"
};
case "hr": // Croatian
return {
contextmenu_no_presets: "Nema spremljenih brzih odabira",
modal_savepreset: "Spremi kao brzi odabir"
};
case "hu": // Hungarian
return {
contextmenu_no_presets: "Nincs mentett gyorskiválasztás",
modal_savepreset: "Mentés gyorskiválasztásként"
};
case "it": // Italian
return {
contextmenu_no_presets: "Nessuna selezione rapida salvata",
modal_savepreset: "Salva come selezione rapida"
};
case "ja": // Japanese
return {
contextmenu_no_presets: "クイック選択は保存されませんでした",
modal_savepreset: "クイック選択として保存"
};
case "ko": // Korean
return {
contextmenu_no_presets: "빠른 선택이 저장되지 않았습니다.",
modal_savepreset: "빠른 선택으로 저장"
};
case "lt": // Lithuanian
return {
contextmenu_no_presets: "Greitųjų pasirinkimų neišsaugota",
modal_savepreset: "Išsaugoti kaip greitąjį pasirinkimą"
};
case "nl": // Dutch
return {
contextmenu_no_presets: "Geen snelle selecties opgeslagen",
modal_savepreset: "Opslaan als Snelselectie"
};
case "no": // Norwegian
return {
contextmenu_no_presets: "Ingen hurtigvalg lagret",
modal_savepreset: "Lagre som hurtigvalg"
};
case "pl": // Polish
return {
contextmenu_no_presets: "Nie zapisano żadnych szybkich wyborów",
modal_savepreset: "Zapisz jako Szybki wybór"
};
case "pt-BR": // Portuguese (Brazil)
return {
contextmenu_no_presets: "Nenhuma seleção rápida salva",
modal_savepreset: "Salvar como seleção rápida"
};
case "ro": // Romanian
return {
contextmenu_no_presets: "Nicio selecție rapidă salvată",
modal_savepreset: "Salvați ca Selectare rapidă"
};
case "ru": // Russian
return {
contextmenu_no_presets: "Быстрый выбор не сохранен.",
modal_savepreset: "Сохранить как быстрый выбор"
};
case "sv": // Swedish
return {
contextmenu_no_presets: "Inga snabbval sparade",
modal_savepreset: "Spara som snabbval"
};
case "th": // Thai
return {
contextmenu_no_presets: "ไม่มีการบันทึกการเลือกด่วน",
modal_savepreset: "บันทึกเป็นการเลือกด่วน"
};
case "tr": // Turkish
return {
contextmenu_no_presets: "Hiçbir Hızlı Seçim kaydedilmedi",
modal_savepreset: "Hızlı Seçim olarak kaydet"
};
case "uk": // Ukrainian
return {
contextmenu_no_presets: "Немає збережених пунктів швидкого вибору",
modal_savepreset: "Зберегти як швидкий вибір"
};
case "vi": // Vietnamese
return {
contextmenu_no_presets: "Không có lựa chọn nhanh nào được lưu",
modal_savepreset: "Lưu dưới dạng Chọn nhanh"
};
case "zh-CN": // Chinese (China)
return {
contextmenu_no_presets: "未保存快速选择",
modal_savepreset: "另存为快速选择"
};
case "zh-TW": // Chinese (Taiwan)
return {
contextmenu_no_presets: "未儲存快速選擇",
modal_savepreset: "另存為快速選擇"
};
default: // English
return {
contextmenu_no_presets: "No Quick Selects saved",
modal_savepreset: "Save as Quick Select"
};
}
}
};
})(window.BDFDB_Global.PluginUtils.buildPlugin(changeLog));
})();