mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-06-12 05:12:10 +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){
|
if (nextChannel === null){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
nextChannel.children[0].click();
|
const nextChannelLink = nextChannel.querySelector("a[href^='/channels/']");
|
||||||
nextChannel.scrollIntoView(true);
|
if (!nextChannelLink) {
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nextChannelLink.click();
|
||||||
|
nextChannel.scrollIntoView(true);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user