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:
parent
39f5bbdc8b
commit
bef96ebc51
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user