From 4e1165750e7147eb5fd4134b6d88d21eea9f2a6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Glauco=20Cust=C3=B3dio?= Date: Sat, 15 Aug 2020 12:18:00 +0100 Subject: [PATCH] support 'up next' videos when adding to the queue --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 6e2905b..4e434ee 100644 --- a/main.js +++ b/main.js @@ -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() } })