Skip to content

Commit

Permalink
support 'up next' videos when adding to the queue
Browse files Browse the repository at this point in the history
  • Loading branch information
glaucocustodio committed Aug 15, 2020
1 parent d742af3 commit 4e11657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ window.addEventListener('load', function() {
event.target.dispatchEvent(mouseenterEvent);

event.target.querySelectorAll('ytd-thumbnail-overlay-toggle-button-renderer').forEach((current) => {
if(current.innerText == 'ADD TO QUEUE'){
if(current.innerText == 'ADD TO QUEUE' || current.getAttribute('aria-label') == "Add to queue"){
current.querySelector('yt-icon').click()
}
})
Expand Down

0 comments on commit 4e11657

Please sign in to comment.