Release BETA v.17

This commit is contained in:
chylex 2019-11-11 03:33:57 +01:00
parent 9b0ab6216b
commit c64207e52d
4 changed files with 16 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name Discord History Tracker
// @version BETA v.16a
// @version BETA v.17
// @license MIT
// @namespace https://chylex.com
// @homepageURL https://dht.chylex.com/
@ -15,7 +15,12 @@ const start = function(){
var DISCORD = (function(){
var getTopMessageViewElement = function(){
let view = DOM.queryReactClass("messages");
return view && view.children.length && view.children[0];
if (view && view.children.length){
return view.children[0].getAttribute("class").includes("privateChannelPlaceholder-") ? view.children[1] : view.children[0];
}
return null;
};
var observerTimer = 0, waitingForCleanup = 0;
@ -164,6 +169,10 @@ var DISCORD = (function(){
var messages = [];
if (array){
if (array.length == 2 && !array.every(ele => ele && ele.length)){
array = array[1];
}
for(let obj of array){
let nested = obj.props.children;
@ -563,7 +572,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>BETA v.16a, released 20 Sep 2019</sub>
<sub>BETA v.17, released 11 Nov 2019</sub>
</p>`);
// elements

File diff suppressed because one or more lines are too long

View File

@ -8,8 +8,8 @@ import os
import distutils.dir_util
VERSION_SHORT = "BETA v.16a"
VERSION_FULL = VERSION_SHORT + ", released 20 Sep 2019"
VERSION_SHORT = "BETA v.17"
VERSION_FULL = VERSION_SHORT + ", released 11 Nov 2019"
EXEC_UGLIFYJS_WIN = "{2}/lib/uglifyjs.cmd --parse bare_returns --compress --mangle toplevel --mangle-props keep_quoted,reserved=[{3}] --output \"{1}\" \"{0}\""