Created
February 9, 2022 10:01
-
-
Save fiqryq/3a7c7ccae87430a9e6f50750701ae588 to your computer and use it in GitHub Desktop.
hide play button embbed video
This file contains 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
*::-webkit-media-controls-panel { | |
display: none!important; | |
-webkit-appearance: none; | |
} | |
/* Old shadow dom for play button */ | |
*::-webkit-media-controls-play-button { | |
display: none!important; | |
-webkit-appearance: none; | |
} | |
/* New shadow dom for play button */ | |
/* This one works! */ | |
*::-webkit-media-controls-start-playback-button { | |
display: none!important; | |
-webkit-appearance: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment