Skip to content

Instantly share code, notes, and snippets.

@sauloco
Created September 15, 2021 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sauloco/587306fe20e6404463a570c01c3e5d85 to your computer and use it in GitHub Desktop.
Save sauloco/587306fe20e6404463a570c01c3e5d85 to your computer and use it in GitHub Desktop.
Star + // Disney + Picture in Picture
// 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