Created
April 2, 2015 16:04
-
-
Save hallvors/8aafa6cd6705a9c83e60 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
function(){ | |
for(var i=0,f; f=document.getElementsByTagName("iframe")[i]; i++){ | |
if(f.src.indexOf("players.brightcove.net")>-1)return "new"; | |
if(f.src.indexOf("c.brightcove.com")>-1)return "old"; | |
} | |
for(var i=0,s; s=document.scripts[i];i++){ | |
if(s.src.indexOf("players.brightcove.net")>-1)return "new"; | |
if(/(brightcove\\.js|BrightcoveExperiences?\\.js|admin\\.brightcove\\.com|c\\.brightcove\\.com)/i.test(s.src))return "old"; | |
} | |
return "none"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment