Skip to content

Instantly share code, notes, and snippets.

@AppleBetas
Last active July 6, 2018 16:00
Show Gist options
  • Save AppleBetas/9d8d2f509768e3926498a513c291cc15 to your computer and use it in GitHub Desktop.
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!
// 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