Some websites & video streaming services have a feature that allows you to watch videos in Picture-in-Picture mode, but they lock this feature behind some kind of paywall or make it a perk of having a subscription.
Some websites just don't have this feature altogether!
I find this infuriating, as this is a feature that is built into all modern web browsers and is free to use for those who know how to do it with no special effort, purchases, plugins or hack.
Here's how to do it:
Option 1 - Enter the code via your web browsers dev tools
- Open your web browser's dev tools ( usually press F12 key / right-click & choose Inspect Element)
- Go to the Console tab
- Paste the following code:
// find the video element (may not work on sites with multiple video elements, but works for most of the main sites) var vid = document.querySelector("video"); // remove the attribute that might stop us from launching the video in PiP vid.removeAttribute("disablePictureInPicture"); // finally, request the PiP vid.requestPictureInPicture();
All being well, you should now have the video pop-out
Option 2 - Create a Bookmark button to launch PiP
This code is the same as the example in Option 1, but stripped down to one line to one line so it can be executed as a URL.
To use it, simply:
- Select all of the following and drag and drop into your browser's bookmarks bar, or
- Create a new bookmark called PiP and paste the following as the bookmark's URL:
- Click the bookmark to launch PiP
How does a "Bookmarklet" work?
The magic here, is the addition of