Created
August 18, 2020 03:13
-
-
Save Lyuji282/37eb8978dbf75a7cc2315c4154e39cb0 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
a = document.getElementsByClassName("html5-video-info-panel-content")[0] | |
document.getElementsByClassName("html5-video-info-panel-content")[0].setAttribute("style","display: block") | |
b = a.getElementsByTagName("span")[0] | |
c = b.textContent | |
d = "https://www.youtube.com/watch?v=" + c.match(/[^\s]+/g)[0] | |
window.open(d) | |
document.getElementsByClassName("html5-video-info-panel-content")[0].setAttribute("style","display: none") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
コピーしずらいから作った