Skip to content

Instantly share code, notes, and snippets.

@hidao80
Last active September 5, 2023 10:19
Show Gist options
  • Save hidao80/11548b98dd5296c6b822e453de2c335f to your computer and use it in GitHub Desktop.
Save hidao80/11548b98dd5296c6b822e453de2c335f to your computer and use it in GitHub Desktop.
Bookmarklet to remove the disablepictureinpicture attribute from all video tags in a page.
javascript:(()%3D%3E%7B%5B...document.querySelectorAll(%22video%22)%5D.map((e%3D%3Ee.removeAttribute(%22disablepictureinpicture%22)))%3B%7D)()
[...document.querySelectorAll("video")].map(v => v.removeAttribute("disablepictureinpicture"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment