Safar’s picture-in-picture feature is one of the best features of Safari, but most websites (e.g. Netflix, CBS, etc) disable the native video controls and do not provide a mechanism to trigger picture-in-picture.

Good news! You can create a bookmark to run a small amount of JavaScript to trigger picture-in-picture on any website. Create a bookmark with the following address then when you’re on the page with the video click the bookmark.

javascript:Array.prototype.slice.call(document.getElementsByTagName("video")).forEach(function(e) { e.webkitSetPresentationMode("picture-in-picture"); });