V
V
Vokulenov302020-11-18 22:06:48
Programming
Vokulenov30, 2020-11-18 22:06:48

YouTube search and click "on air" button script?

Good day. I will describe the essence of the idea. We need such a script, a clicker, anything (the main thing is that it would work in the background and not pull the mouse cursor) that would press the "On air - Skip and go to live broadcast" button in the YouTube player (such a button near the volume slider) in several windows browser, and he did it at a random interval (or, if possible, when the "Live" button turns gray.) The script is needed so that during the stream, it has at least 10 such "bots", in addition to live of people. If you just open the stream in several tabs, literally after 30 seconds a red dot flies off "On the air" and the viewer is not taken into account. I think it will be easy to write such a script, having basic knowledge in programming languages, but I just don’t have them. Please help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-11-18
@Vokulenov30

Write a chrome extension. In fact, everything is very simple. The extension on the desired page finds a button with the ytp-live-badge class, then a click is made on the js. There are a lot of videos from articles about how to write an extension. In addition to this, you need to have minimal knowledge of js. In fact, the code there will be very simple.

setInterval(() => {
 document.querySelector('.ytp-live-badge').click();
}, 30000);

You just have to write everything you need in manifest.json and load the extension into the browser (in developer mode)
Although, in addition to this, you can simply paste the code above on each open page with YouTube in the browser in the developer console (right button, see the code, console and paste the code there)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question