Created
September 15, 2021 19:39
-
-
Save sauloco/587306fe20e6404463a570c01c3e5d85 to your computer and use it in GitHub Desktop.
Star + // Disney + Picture in Picture
This file contains hidden or 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
// Get videoSelector value using the element selector, then second button over the element, copy > copy selector | |
const videoSelector = '#hudson-player--1631733208198 > video'; | |
const videoEl = document.querySelector(videoSelector); | |
videoEl.disablePictureInPicture = false; | |
videoEl.requestPictureInPicture(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment