Here's the JS for PiP video, the shortcut command is "Run JS in web page":
var videos = document.getElementsByTagName("video");
if (videos) {
var video = videos[0];
video.webkitSetPresentationMode(video.webkitPresentationMode === "picture-in-picture" ? "inline" : "picture-in-picture");
}
completion({"success": true});