chrome/script.js
/**
 * watching Picture-in-Picture mode
 */
watching Picture-in-Picture mode
watching Picture - in - Picture mode
async function watch() {
  let videos = findVideo();
  let position = 0;
  videoLength = videos.length;
  if (videoLength === 0) {
    return;
  }
  document.body.setAttribute('__pip_watch__', true);
  if (pipNotMultiple === true) {
    if (videos.length > 1) { 
      videos = videos.slice(1);
    }
  }
  enterPiP(videos, position);
}
async function watch ( ) { let videos = findVideo ( ) ; let position = 0 ; videoLength = videos . length ; if ( videoLength === 0 ) { return ; } document . body . setAttribute ( '__pip_watch__' , true ) ; if ( pipNotMultiple === true ) { if ( videos . length > 1 ) { videos = videos . slice ( 1 ) ; } } enterPiP ( videos , position ) ; }
watching Picture-in-Picture mode
watching Picture - in - Picture mode