Skip to content

Commit

Permalink
Added button message if ignoring shorts
Browse files Browse the repository at this point in the history
  • Loading branch information
NikkelM committed Nov 4, 2023
1 parent 2f936fb commit 68c3bce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ async function shuffleVideos() {
var hasBeenShuffled = false;
setDOMTextWithDelay(shuffleButtonTextElement, "\xa0Shuffling...", 1000, () => { return (shuffleButtonTextElement.innerText === "\xa0Shuffle" && !hasBeenShuffled); });
setDOMTextWithDelay(shuffleButtonTextElement, "\xa0Still on it...", 5000, () => { return (shuffleButtonTextElement.innerText === "\xa0Shuffling..." && !hasBeenShuffled); });
if (configSync.shuffleIgnoreShortsOption) {
setDOMTextWithDelay(shuffleButtonTextElement, "\xa0Sorting shorts...", 8000, () => { return (shuffleButtonTextElement.innerText === "\xa0Still on it..." && !hasBeenShuffled); });
}

await chooseRandomVideo(channelId, false, shuffleButtonTextElement);
hasBeenShuffled = true;
Expand Down

0 comments on commit 68c3bce

Please sign in to comment.