mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-06-04 09:31:05 +03:00
Fix skipping to next channel not working after a Discord update (browser script)
This commit is contained in:
parent
9f34c9dffa
commit
d362c96b80
@ -297,11 +297,15 @@ var DISCORD = (function(){
|
||||
if (nextChannel === null){
|
||||
return false;
|
||||
}
|
||||
else{
|
||||
nextChannel.children[0].click();
|
||||
nextChannel.scrollIntoView(true);
|
||||
return true;
|
||||
|
||||
const nextChannelLink = nextChannel.querySelector("a[href^='/channels/']");
|
||||
if (!nextChannelLink) {
|
||||
return false;
|
||||
}
|
||||
|
||||
nextChannelLink.click();
|
||||
nextChannel.scrollIntoView(true);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user