Created
June 12, 2022 07:27
-
-
Save arkon108/2179d1f0979199be55ac0f2b8041d9b6 to your computer and use it in GitHub Desktop.
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
// find the first video tag, select the src attr in the source tag which matches "video/mp4" | |
const s = document.querySelectorAll("video:first-child source[type='video/mp4'"); | |
window.location = s[0].src; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment