YouTube.com add PIP picture in picture pop-out button (Mobile / Desktop)

Adds a pop out to PIP button below the video. Works on mobile, tablet (m.youtube.com) and on desktop.

These are versions of this script where the code was updated. Show all versions.

  • v1.3 01.01.2025.

    Change innerHTML to innerText for safety reasons ("Failed to set the 'innerHTML' property on 'Element': This document requires 'TrustedHTML' assignment.")

  • v1.2 20.06.2024.

    Bigger button

  • v1.1 11.02.2024.

    1) Add support for tablet and desktop. 2) Fix classname bug.

  • v1.0 05.02.2024.