mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-06-09 11:52:09 +03:00
Release BETA v.17
This commit is contained in:
parent
9b0ab6216b
commit
c64207e52d
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 BETA v.16a
|
// @version BETA v.17
|
||||||
// @license MIT
|
// @license MIT
|
||||||
// @namespace https://chylex.com
|
// @namespace https://chylex.com
|
||||||
// @homepageURL https://dht.chylex.com/
|
// @homepageURL https://dht.chylex.com/
|
||||||
@ -15,7 +15,12 @@ const start = function(){
|
|||||||
var DISCORD = (function(){
|
var DISCORD = (function(){
|
||||||
var getTopMessageViewElement = function(){
|
var getTopMessageViewElement = function(){
|
||||||
let view = DOM.queryReactClass("messages");
|
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;
|
var observerTimer = 0, waitingForCleanup = 0;
|
||||||
@ -164,6 +169,10 @@ var DISCORD = (function(){
|
|||||||
var messages = [];
|
var messages = [];
|
||||||
|
|
||||||
if (array){
|
if (array){
|
||||||
|
if (array.length == 2 && !array.every(ele => ele && ele.length)){
|
||||||
|
array = array[1];
|
||||||
|
}
|
||||||
|
|
||||||
for(let obj of array){
|
for(let obj of array){
|
||||||
let nested = obj.props.children;
|
let nested = obj.props.children;
|
||||||
|
|
||||||
@ -563,7 +572,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>BETA v.16a, released 20 Sep 2019</sub>
|
<sub>BETA v.17, released 11 Nov 2019</sub>
|
||||||
</p>`);
|
</p>`);
|
||||||
|
|
||||||
// elements
|
// elements
|
||||||
|
File diff suppressed because one or more lines are too long
4
build.py
4
build.py
@ -8,8 +8,8 @@ import os
|
|||||||
import distutils.dir_util
|
import distutils.dir_util
|
||||||
|
|
||||||
|
|
||||||
VERSION_SHORT = "BETA v.16a"
|
VERSION_SHORT = "BETA v.17"
|
||||||
VERSION_FULL = VERSION_SHORT + ", released 20 Sep 2019"
|
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}\""
|
EXEC_UGLIFYJS_WIN = "{2}/lib/uglifyjs.cmd --parse bare_returns --compress --mangle toplevel --mangle-props keep_quoted,reserved=[{3}] --output \"{1}\" \"{0}\""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user