Greasy Fork is available in English.

Youtube PiP

Enable PiP in YouTube

// ==UserScript==
// @name         Youtube PiP
// @namespace    none
// @version      1.0
// @description  Enable PiP in YouTube
// @author       Johnny Vo
// @match        https://youtube.com/watch?v=*
// @match        https://m.youtube.com/watch?v=*
// @grant        none
// ==/UserScript==
 
(function() {
    'use strict';
    console.log('add pip keyup event listener');
    document.body.addEventListener('keyup', function(e){
        if(e.altKey && e.ctrlKey && e.key === 'p') {
            var video = document.querySelector('video');
            video.requestPictureInPicture();
        }
    })
})();