Skip to content

Instantly share code, notes, and snippets.

@joshbode
Last active September 14, 2022 02:02
Show Gist options
  • Save joshbode/08fad421aada6286bc56f5efae6aa41d to your computer and use it in GitHub Desktop.
Save joshbode/08fad421aada6286bc56f5efae6aa41d to your computer and use it in GitHub Desktop.
Picture-in-Picture (PiP) Bookmarklet

Bookmarklet to enable picture-in-picture controls for Firefox in Google Meet, and other sites that disable PiP

Create a new bookmark with the following "URL":

javascript:(function() {var i, elements = document.querySelectorAll("body video"); for (i = 0; i < elements.length; i++) {elements[i].style.pointerEvents = "all"}})()

Note: this embeds the following function:

function() {
  var i, elements = document.querySelectorAll("body video");
  for (i = 0; i < elements.length; i++) {
    elements[i].style.pointerEvents = "all";
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment