mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 06:19:24 +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() {
|
function onYouTubePlayerAPIReady() {
|
||||||
var youTubePlaceholders = document.getElementsByClassName('ytplaceholder');
|
var youTubePlaceholders = document.getElementsByClassName('ytplaceholder');
|
||||||
for(var i = 0; i < youTubePlaceholders.length; i++) {
|
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\-_]+)(?:[?&]|$)/);
|
var videoIDMaybe = videoURL.match(/[?&]v=([A-Za-z0-9\-_]+)(?:[?&]|$)/);
|
||||||
youTubePlaceholders[i].innerText = '';
|
youTubePlaceholders[i].innerText = '';
|
||||||
if(videoIDMaybe) {
|
if(videoIDMaybe) {
|
||||||
|
Loading…
Reference in New Issue
Block a user