mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-07-17 16:31:37 +03:00
Compare commits
No commits in common. "8f7b566db737d5d623d88c0f815721265c29296f" and "c31155738e6b2c6e87066a03c7f805fa9d5520f2" have entirely different histories.
8f7b566db7
...
c31155738e
@ -232,21 +232,16 @@ class DISCORD {
|
|||||||
|
|
||||||
if (dms) {
|
if (dms) {
|
||||||
const currentChannel = DOM.queryReactClass("selected", dms);
|
const currentChannel = DOM.queryReactClass("selected", dms);
|
||||||
const currentChannelContainer = currentChannel && currentChannel.closest("[class*='channel-']");
|
const nextChannel = currentChannel && currentChannel.nextElementSibling;
|
||||||
const nextChannel = currentChannelContainer && currentChannelContainer.nextElementSibling;
|
|
||||||
|
|
||||||
if (!nextChannel || !nextChannel.getAttribute("class").includes("channel-")) {
|
if (!nextChannel || !nextChannel.getAttribute("class").includes("channel-") || !("href" in nextChannel) || !nextChannel.href.includes("/@me/")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
const nextChannelLink = nextChannel.querySelector("a[href*='/@me/']");
|
nextChannel.click();
|
||||||
if (!nextChannelLink) {
|
nextChannel.scrollIntoView(true);
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
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 = "34.0.0.0";
|
public const string Tag = "32.2.0.0";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user