Skip to content

Instantly share code, notes, and snippets.

@jakehwll
Created March 25, 2024 01:53
Show Gist options
  • Save jakehwll/5c5d47ee50c97c0a926595ae52a75794 to your computer and use it in GitHub Desktop.
Save jakehwll/5c5d47ee50c97c0a926595ae52a75794 to your computer and use it in GitHub Desktop.
Disney Plus `disablePictureInPicture` Fix

Remove disablePictureInPicture attribute (Disney Plus)

Fork of a project which removes the disablePictureInPicture attribute from <video> tags. This set of changes removes it on the shadow DOM for <disney-web-player />

Simply create a bookmark with the below contents to use it, this will remove the attribute and request picture and picture.

javascript:
var video=document.querySelector('disney-web-player').shadowRoot.querySelector('video');
video.removeAttribute("disablePictureInPicture");
video.requestPictureInPicture()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment