1
0
mirror of https://github.com/chylex/Discord-History-Tracker.git synced 2024-10-18 02:42:53 +02:00

Compare commits

..

No commits in common. "a20ce8ee71ff4f20e7a469080c5e004f7d306c59" and "3cca16779350a981c36247e16289c88aab0ffcff" have entirely different histories.

6 changed files with 10 additions and 37 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name Discord History Tracker
// @version v.31e
// @version v.31d
// @license MIT
// @namespace https://chylex.com
// @homepageURL https://dht.chylex.com/
@ -228,21 +228,8 @@ var DISCORD = (function(){
};
}
else if (obj.guild_id) {
let guild;
for (const child of getReactProps(document.querySelector("nav header [class*='headerContent-']")).children) {
if (child && child.props && child.props.guild) {
guild = child.props.guild;
break;
}
}
if (!guild || typeof guild.name !== "string" || obj.guild_id !== guild.id) {
return null;
}
return {
"server": guild.name,
"server": document.querySelector("nav header h1[class*='name-']").innerText,
"channel": obj.name,
"id": obj.id,
"type": "SERVER",
@ -664,7 +651,7 @@ ${radio("asm", "pause", "Pause Tracking")}
${radio("asm", "switch", "Switch to Next Channel")}
<p id='dht-cfg-note'>
It is recommended to disable link and image previews to avoid putting unnecessary strain on your browser.<br><br>
<sub>v.31e, released 10 October 2022</sub>
<sub>v.31d, released 19 June 2022</sub>
</p>`);
// elements

File diff suppressed because one or more lines are too long

View File

@ -8,8 +8,8 @@ import os
import re
import distutils.dir_util
VERSION_SHORT = "v.31e"
VERSION_FULL = VERSION_SHORT + ", released 10 October 2022"
VERSION_SHORT = "v.31d"
VERSION_FULL = VERSION_SHORT + ", released 19 June 2022"
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}\""

View File

@ -71,4 +71,3 @@ msSaveBlob
messageReference
message_id
guild_id
guild

View File

@ -214,21 +214,8 @@ var DISCORD = (function(){
};
}
else if (obj.guild_id) {
let guild;
for (const child of getReactProps(document.querySelector("nav header [class*='headerContent-']")).children) {
if (child && child.props && child.props.guild) {
guild = child.props.guild;
break;
}
}
if (!guild || typeof guild.name !== "string" || obj.guild_id !== guild.id) {
return null;
}
return {
"server": guild.name,
"server": document.querySelector("nav header h1[class*='name-']").innerText,
"channel": obj.name,
"id": obj.id,
"type": "SERVER",