Skip to content

Instantly share code, notes, and snippets.

@davispuh

davispuh/podfm.js

Created Dec 15, 2014
Embed
What would you like to do?
podfm
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>");
};
};
@davispuh

This comment has been minimized.

Copy link
Owner Author

@davispuh davispuh commented Dec 15, 2014

javascript:void%20function(){var%20e=window.document.getElementsByName(%22embeddedPlayer%22);if(e.length%3E0)window.location=e[0].src;else{var%20t=window.document.getElementsByTagName(%22audio%22);t.length%3E0%3F(t[0].src||(document.getElementsByClassName(%22jp-play%22)[0].click(),setTimeout(function(){document.getElementsByClassName(%22jp-pause%22)[0].click()},800)),window.open(t[0].src)):alert(%22Neatrada%20%3Caudio%3E%22)}}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.