This repository contains a simple JavaScript bookmarklet that enables Picture-in-Picture (PiP) mode on websites that normally disallow this feature.
- Create a new bookmark in your Chrome browser.
- Name the bookmark "PiP Hack" (or any name you prefer).
- In the URL field, paste the following code:
javascript:var video=document.getElementsByTagName('video');video.removeAttribute('disablePictureInPicture');video.requestPictureInPicture()
- Save the bookmark.
- Navigate to a video website that disables PiP.
- Click on the "PiP Hack" bookmark you created.
- The video should now enter Picture-in-Picture mode.
This hack is not recommended for regular use due to the following reasons:
- It bypasses website restrictions, which may violate terms of service.
- Captions do not appear in the PiP window, making it inaccessible for users who rely on captions.
- Some streaming platforms, like Hulu, intentionally disable PiP to ensure a complete viewing experience, including captions and interactive elements. Use this hack responsibly and be aware of potential limitations and legal implications.
This bookmarklet is provided for educational purposes only. Use at your own risk and respect the terms of service of the websites you visit.