3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 03:33:07 +01:00

So apparently some people still use Firefox?

This commit is contained in:
Psychedelic Squid 2012-03-12 22:07:08 +00:00
parent 39f5bbdc8b
commit bef96ebc51

View File

@ -7,7 +7,7 @@ document.getElementsByTagName('script')[0].parentNode.insertBefore(apiEmbed, doc
function onYouTubePlayerAPIReady() {
var youTubePlaceholders = document.getElementsByClassName('ytplaceholder');
for(var i = 0; i < youTubePlaceholders.length; i++) {
var videoURL = youTubePlaceholders[i].innerText;
var videoURL = youTubePlaceholders[i].innerHTML;
var videoIDMaybe = videoURL.match(/[?&]v=([A-Za-z0-9\-_]+)(?:[?&]|$)/);
youTubePlaceholders[i].innerText = '';
if(videoIDMaybe) {