Last active
July 6, 2018 16:00
-
-
Save AppleBetas/9d8d2f509768e3926498a513c291cc15 to your computer and use it in GitHub Desktop.
Netflix PIP Bookmarklet - Paste this into a Safari bookmarklet, and enjoy PIP Netflix!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NETFLIX PIP BOOKMARKLET | |
// Paste the following into a bookmarklet, and from the Safari Develop menu, check "Allow JavaScript from Smart Search Field". Whenever you open this bookmarklet with a Netflix video playing, it will pop into Picture in Picture. | |
// Some accounts have different UIs for some reason so use the one that matches yours | |
// New UI: | |
javascript:document.querySelector(".NFPlayer > .video-container > div > video").webkitSetPresentationMode("picture-in-picture"); | |
// Old UI: | |
javascript:document.querySelector(".player-video-wrapper video").webkitSetPresentationMode("picture-in-picture"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment