How can I stop a video with Javascript in Youtube?

前端 未结 3 1493
离开以前
离开以前 2020-11-29 03:52

Situation: here, where I pressed some video.

Problem: I try to stop the video by Javascript in the console of Firebug:

<         


        
3条回答
  •  一生所求
    2020-11-29 04:21

    So this is quickest way to do it!

    Open Developer Options

    Hover over YouTube play button.

    Press Control/Command + Shift + C

    Select the Button

    Add id to it.

    Go to console and run the following

    var x = document.getElementById('id'); x.click();

    That's it!

提交回复
热议问题