Created
December 15, 2014 17:50
-
-
Save davispuh/4f4cdc56fd1516fc6035 to your computer and use it in GitHub Desktop.
podfm
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
var loc = window.document.getElementsByName("embeddedPlayer"); | |
if (loc.length > 0) { | |
window.location = loc[0].src; | |
} else { | |
var a = window.document.getElementsByTagName("audio"); | |
if (a.length > 0) { | |
if (!a[0].src) { | |
document.getElementsByClassName("jp-play")[0].click(); | |
setTimeout(function(){ document.getElementsByClassName("jp-pause")[0].click(); },800); | |
}; | |
window.open(a[0].src); | |
} else { | |
alert("Neatrada <audio>"); | |
}; | |
}; |
Author
davispuh
commented
Dec 15, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment