mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-07-17 00:21:03 +03:00
Compare commits
2 Commits
c31155738e
...
8f7b566db7
Author | SHA1 | Date | |
---|---|---|---|
|
8f7b566db7 | ||
|
70a2a01ec3 |
@ -232,16 +232,21 @@ class DISCORD {
|
|||||||
|
|
||||||
if (dms) {
|
if (dms) {
|
||||||
const currentChannel = DOM.queryReactClass("selected", dms);
|
const currentChannel = DOM.queryReactClass("selected", dms);
|
||||||
const nextChannel = currentChannel && currentChannel.nextElementSibling;
|
const currentChannelContainer = currentChannel && currentChannel.closest("[class*='channel-']");
|
||||||
|
const nextChannel = currentChannelContainer && currentChannelContainer.nextElementSibling;
|
||||||
|
|
||||||
if (!nextChannel || !nextChannel.getAttribute("class").includes("channel-") || !("href" in nextChannel) || !nextChannel.href.includes("/@me/")) {
|
if (!nextChannel || !nextChannel.getAttribute("class").includes("channel-")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
nextChannel.click();
|
const nextChannelLink = nextChannel.querySelector("a[href*='/@me/']");
|
||||||
nextChannel.scrollIntoView(true);
|
if (!nextChannelLink) {
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nextChannelLink.click();
|
||||||
|
nextChannelLink.scrollIntoView(true);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const channelListEle = document.getElementById("channels");
|
const channelListEle = document.getElementById("channels");
|
||||||
|
@ -7,6 +7,6 @@ using DHT.Utils;
|
|||||||
|
|
||||||
namespace DHT.Utils {
|
namespace DHT.Utils {
|
||||||
static class Version {
|
static class Version {
|
||||||
public const string Tag = "32.2.0.0";
|
public const string Tag = "34.0.0.0";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user