Release v.23

This commit is contained in:
chylex 2020-05-19 07:40:40 +02:00
parent 98a67ca57e
commit e800e7e25e
4 changed files with 8 additions and 8 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.22
// @version v.23
// @license MIT
// @namespace https://chylex.com
// @homepageURL https://dht.chylex.com/
@ -14,7 +14,7 @@ const start = function(){
var DISCORD = (function(){
var getMessageContainerElement = function(){
return document.querySelector("[data-ref-id='messages']");
return DOM.id("messages") || document.querySelector("[data-ref-id='messages']");
};
var getMessageScrollerElement = function(){
@ -143,7 +143,7 @@ var DISCORD = (function(){
"server": name,
"channel": name,
"id": link,
"type": (icon && icon.src.includes("/channel-icons/")) ? "GROUP" : "DM"
"type": (icon && (icon.src.includes("/channel-icons/") || icon.src.includes("/assets/"))) ? "GROUP" : "DM"
};
}
else{
@ -593,7 +593,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.22, released 6 May 2020</sub>
<sub>v.23, released 19 May 2020</sub>
</p>`);
// elements

File diff suppressed because one or more lines are too long

View File

@ -9,8 +9,8 @@ import re
import distutils.dir_util
VERSION_SHORT = "v.22"
VERSION_FULL = VERSION_SHORT + ", released 6 May 2020"
VERSION_SHORT = "v.23"
VERSION_FULL = VERSION_SHORT + ", released 19 May 2020"
EXEC_UGLIFYJS_WIN = "{2}/lib/uglifyjs.cmd --parse bare_returns --compress --mangle toplevel --mangle-props keep_quoted,reserved=[{3}] --output \"{1}\" \"{0}\""