mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-06-06 02:13:29 +03:00
Release v.31
This commit is contained in:
parent
af3f914660
commit
233e37a1c8
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Discord History Tracker
|
// @name Discord History Tracker
|
||||||
// @version v.30
|
// @version v.31
|
||||||
// @license MIT
|
// @license MIT
|
||||||
// @namespace https://chylex.com
|
// @namespace https://chylex.com
|
||||||
// @homepageURL https://dht.chylex.com/
|
// @homepageURL https://dht.chylex.com/
|
||||||
@ -594,7 +594,7 @@ ${radio("asm", "pause", "Pause Tracking")}
|
|||||||
${radio("asm", "switch", "Switch to Next Channel")}
|
${radio("asm", "switch", "Switch to Next Channel")}
|
||||||
<p id='dht-cfg-note'>
|
<p id='dht-cfg-note'>
|
||||||
It is recommended to disable link and image previews to avoid putting unnecessary strain on your browser.<br><br>
|
It is recommended to disable link and image previews to avoid putting unnecessary strain on your browser.<br><br>
|
||||||
<sub>v.30, released 28 Mar 2021</sub>
|
<sub>v.31, released 3 April 2021</sub>
|
||||||
</p>`);
|
</p>`);
|
||||||
|
|
||||||
// elements
|
// elements
|
||||||
@ -691,8 +691,8 @@ It is recommended to disable link and image previews to avoid putting unnecessar
|
|||||||
* u: <user index of the sender>,
|
* u: <user index of the sender>,
|
||||||
* t: <message timestamp>,
|
* t: <message timestamp>,
|
||||||
* m: <message content>, // only present if not empty
|
* m: <message content>, // only present if not empty
|
||||||
* f: <message flags>, // only present if edited in which case it equals 1, deprecated (use 'te' instead),
|
* f: <message flags>, // only present if edited in which case it equals 1, deprecated (use 'te' instead)
|
||||||
* te: <edit timestamp>, // only present if edited,
|
* te: <edit timestamp>, // only present if edited
|
||||||
* e: [ // omit for no embeds
|
* e: [ // omit for no embeds
|
||||||
* {
|
* {
|
||||||
* url: <embed url>,
|
* url: <embed url>,
|
||||||
@ -706,7 +706,15 @@ It is recommended to disable link and image previews to avoid putting unnecessar
|
|||||||
* url: <attachment url>
|
* url: <attachment url>
|
||||||
* }, ...
|
* }, ...
|
||||||
* ],
|
* ],
|
||||||
* r: <reply message id> // only present if referencing another message (reply)
|
* r: <reply message id>, // only present if referencing another message (reply)
|
||||||
|
* re: [ // omit for no reactions
|
||||||
|
* {
|
||||||
|
* c: <react count>
|
||||||
|
* n: <emoji name>,
|
||||||
|
* id: <emoji id>, // only present for custom emoji
|
||||||
|
* an: <emoji is animated>, // only present for custom animated emoji
|
||||||
|
* }, ...
|
||||||
|
* ]
|
||||||
* }, ...
|
* }, ...
|
||||||
* }, ...
|
* }, ...
|
||||||
* }
|
* }
|
||||||
@ -750,7 +758,7 @@ class SAVEFILE{
|
|||||||
channelkeys: new Set(),
|
channelkeys: new Set(),
|
||||||
messagekeys: new Set(),
|
messagekeys: new Set(),
|
||||||
freshmsgs: new Set()
|
freshmsgs: new Set()
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
static isValid(parsedObj){
|
static isValid(parsedObj){
|
||||||
@ -888,6 +896,25 @@ class SAVEFILE{
|
|||||||
obj.r = discordMessage.messageReference.message_id;
|
obj.r = discordMessage.messageReference.message_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (discordMessage.reactions.length > 0) {
|
||||||
|
obj.re = discordMessage.reactions.map(reaction => {
|
||||||
|
let conv = {
|
||||||
|
c: reaction.count,
|
||||||
|
n: reaction.emoji.name
|
||||||
|
};
|
||||||
|
|
||||||
|
if (reaction.emoji.id !== null) {
|
||||||
|
conv.id = reaction.emoji.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (reaction.emoji.animated) {
|
||||||
|
conv.an = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return conv;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
4
build.py
4
build.py
@ -8,8 +8,8 @@ import os
|
|||||||
import re
|
import re
|
||||||
import distutils.dir_util
|
import distutils.dir_util
|
||||||
|
|
||||||
VERSION_SHORT = "v.30"
|
VERSION_SHORT = "v.31"
|
||||||
VERSION_FULL = VERSION_SHORT + ", released 28 Mar 2021"
|
VERSION_FULL = VERSION_SHORT + ", released 3 April 2021"
|
||||||
|
|
||||||
EXEC_UGLIFYJS_WIN = "{2}/lib/uglifyjs.cmd --parse bare_returns --compress --mangle toplevel --mangle-props keep_quoted,reserved=[{3}] --output \"{1}\" \"{0}\""
|
EXEC_UGLIFYJS_WIN = "{2}/lib/uglifyjs.cmd --parse bare_returns --compress --mangle toplevel --mangle-props keep_quoted,reserved=[{3}] --output \"{1}\" \"{0}\""
|
||||||
EXEC_UGLIFYJS_AUTO = "uglifyjs --parse bare_returns --compress --mangle toplevel --mangle-props keep_quoted,reserved=[{3}] --output \"{1}\" \"{0}\""
|
EXEC_UGLIFYJS_AUTO = "uglifyjs --parse bare_returns --compress --mangle toplevel --mangle-props keep_quoted,reserved=[{3}] --output \"{1}\" \"{0}\""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user