Bookmarklet that removes disablePictureInPicture attributes from videos.
Useful for Disney Plus and other websites.
- To create the bookmarklet, edit any existing bookmark and change the URL to the code inside bookmarklet.js. As for bookmark name, choose anything.
- Click on the bookmarklet to clear "disablePictureInPicture" attributes.
- Activate PiP mode using your preferred method.
javascript:document.querySelectorAll("video").forEach(video => {
/* https://github.com/polywock/removeDisablePiPAttribute */
video.removeAttribute("disablePictureInPicture");
})
https://greasyfork.org/en/scripts/426660-remove-pip-disable-attributes