Created
February 11, 2023 11:48
-
-
Save gangjun06/c0af16e225f173ee550d25b1133646b7 to your computer and use it in GitHub Desktop.
Turn off every notification of youtube channels.
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
// Simple script for turn off all notification of youtube channels. | |
// It was created on 2023-02-11. May not working correctly | |
// 1. Visit https://www.youtube.com/feed/channels | |
// 2. Open developer tools console | |
// 3. Paste and run following script. | |
var delay = () => new Promise((res) => setTimeout(res, 10)) | |
(async () => { | |
for(const item of list){ | |
item.click() | |
await delay() | |
document.querySelector("tp-yt-paper-listbox > ytd-menu-service-item-renderer:nth-child(3)").click() | |
await delay() | |
}})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment