Answer the question
In order to leave comments, you need to log in
Google extension how to run video in frame?
I am writing a Google extension, I have an embedded YouTube video on my site, the extension should click on it and start the video. The click itself is simple, getElementsByClassName("play button")[0].click()
The video starts, but it immediately stops, how to solve the problem? In the manifest, I specified access to all_frame
Answer the question
In order to leave comments, you need to log in
Everything works:
document.querySelector('button[aria-label="Смотреть"]').click();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question