Last active
December 16, 2017 07:36
-
-
Save rekyuu/7d8fd5d0d059a2ac984ad2145fb40574 to your computer and use it in GitHub Desktop.
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
var glyphs = document.querySelectorAll("span.glyphicon-facetime-video"); | |
[].forEach.call(glyphs, function(elem){ | |
var row_link = elem.parentElement.parentElement.getAttribute("data-target"); | |
var run_url = "https://www.speedrun.com" + row_link | |
elem.classList.remove("glyphicon") | |
elem.classList.remove("glyphicon-facetime-video") | |
elem.innerHTML = "<a href='" + run_url + "'>VOD</a>" | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment