Created
August 5, 2021 03:11
-
-
Save Zyzto/8ce729669d66658d1cbb48d87c5e5a5a to your computer and use it in GitHub Desktop.
Delete All Watch Later Videos Youtube 2021
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This Will remove all watch later videos when on watch late page by clickin two buttons if this doesn't work for you change the selectors below | |
// using this extenstions https://chrome.google.com/webstore/detail/cpnkcffhllafbdbljkmhebnpbnlhapmd to get the full path | |
// change the first two path with the outer button the "..." vertical button | |
// change the last path with list button that say "Remove video from watch later" | |
setInterval(function () { | |
if ( | |
document.querySelector( | |
"body > ytd-app:nth-child(4) > div#content.style-scope.ytd-app:nth-child(12) > ytd-page-manager#page-manager.style-scope.ytd-app:nth-child(4) > ytd-browse.style-scope.ytd-page-manager:nth-child(1) > ytd-two-column-browse-results-renderer.style-scope.ytd-browse.grid:nth-child(8) > div#primary.style-scope.ytd-two-column-browse-results-renderer:nth-child(1) > ytd-section-list-renderer.style-scope.ytd-two-column-browse-results-renderer > div#contents.style-scope.ytd-section-list-renderer:nth-child(2) > ytd-item-section-renderer.style-scope.ytd-section-list-renderer > div#contents.style-scope.ytd-item-section-renderer:nth-child(3) > ytd-playlist-video-list-renderer.style-scope.ytd-item-section-renderer > div#contents.style-scope.ytd-playlist-video-list-renderer:nth-child(3) > ytd-playlist-video-renderer.style-scope.ytd-playlist-video-list-renderer:nth-child(1) > div#menu.style-scope.ytd-playlist-video-renderer:nth-child(3) > ytd-menu-renderer.style-scope.ytd-playlist-video-renderer > yt-icon-button#button.dropdown-trigger.style-scope.ytd-menu-renderer:nth-child(2) > button#button:nth-child(1)" | |
) != null | |
) { | |
document | |
.querySelector( | |
"body > ytd-app:nth-child(4) > div#content.style-scope.ytd-app:nth-child(12) > ytd-page-manager#page-manager.style-scope.ytd-app:nth-child(4) > ytd-browse.style-scope.ytd-page-manager:nth-child(1) > ytd-two-column-browse-results-renderer.style-scope.ytd-browse.grid:nth-child(8) > div#primary.style-scope.ytd-two-column-browse-results-renderer:nth-child(1) > ytd-section-list-renderer.style-scope.ytd-two-column-browse-results-renderer > div#contents.style-scope.ytd-section-list-renderer:nth-child(2) > ytd-item-section-renderer.style-scope.ytd-section-list-renderer > div#contents.style-scope.ytd-item-section-renderer:nth-child(3) > ytd-playlist-video-list-renderer.style-scope.ytd-item-section-renderer > div#contents.style-scope.ytd-playlist-video-list-renderer:nth-child(3) > ytd-playlist-video-renderer.style-scope.ytd-playlist-video-list-renderer:nth-child(1) > div#menu.style-scope.ytd-playlist-video-renderer:nth-child(3) > ytd-menu-renderer.style-scope.ytd-playlist-video-renderer > yt-icon-button#button.dropdown-trigger.style-scope.ytd-menu-renderer:nth-child(2) > button#button:nth-child(1)" | |
) | |
.click(); | |
setTimeout(() => { | |
document | |
.querySelector( | |
"body > ytd-app:nth-child(4) > ytd-popup-container.style-scope.ytd-app:nth-child(13) > tp-yt-iron-dropdown.style-scope.ytd-popup-container > div#contentWrapper.style-scope.tp-yt-iron-dropdown > ytd-menu-popup-renderer.style-scope.ytd-popup-container > tp-yt-paper-listbox#items.style-scope.ytd-menu-popup-renderer:nth-child(1) > ytd-menu-service-item-renderer.style-scope.ytd-menu-popup-renderer:nth-child(3) > tp-yt-paper-item" | |
) | |
.click(); | |
}, 80); | |
} | |
}, 50); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment