Created
January 1, 2021 13:08
-
-
Save lordmegamax/564719655354a1f0ef61d9fa7fab0fda to your computer and use it in GitHub Desktop.
Скрипт Chrome для удаления всех видео из плейлиста "Смотреть позже"
This file contains hidden or 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
| setInterval(function () { | |
| document.querySelector('#primary button[aria-label="Меню действий"]').click(); | |
| var things = document.evaluate( | |
| '//span[contains(text(),"Удалить из плейлиста ")]', | |
| document, | |
| null, | |
| XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, | |
| null | |
| ); | |
| for (var i = 0; i < things.snapshotLength; i++) { | |
| things.snapshotItem(i).click(); | |
| } | |
| }, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment