YouTube Auto Like & Close Window

Automatically likes the video and closes the window when the video has ended.

Author
RichardG
Daily installs
0
Total installs
1
Ratings
0 0 0
Version
1.3
Created
2025-04-10
Updated
2025-04-21
Size
1.28 KB
License
MIT
Applies to

Automatically likes the video and closes the browser tab when the video has ended. Requires YouTube to be in English (US) language or you to adjust the selector (first parameter) in the "waitForElement" function.

Open multiple video tabs in your chrome browser (like a queue or playlist), activate the script on the first video and see how chrome switches browser tabs to the next YouTube video automatically so you don't have to switch tabs and like the videos manually.

Have fun!

Note:
a) Doesn't work with youtube ads enabled. Either you add your own bypass (like monitor switching video elements) or activate uBlock Origin Lite (by the time writing) if possible.
b) Reload the page if Tampermonkey doesn't grab the video page first time (e.g. when navigating from youtube.com to youtube.com/watch?=XYZ)