Last active
September 5, 2023 10:19
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(()%3D%3E%7B%5B...document.querySelectorAll(%22video%22)%5D.map((e%3D%3Ee.removeAttribute(%22disablepictureinpicture%22)))%3B%7D)() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[...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