Skip to content

Instantly share code, notes, and snippets.

@Dbof
Created March 2, 2019 14:49
Show Gist options
  • Save Dbof/286ea00835d6da295b9808759a45e202 to your computer and use it in GitHub Desktop.
Save Dbof/286ea00835d6da295b9808759a45e202 to your computer and use it in GitHub Desktop.
Extract HD stream Heute Show (bookmarklet)
function createQR() {
var s = document.querySelector('.zdfplayer-anchor-tag-img').style;
var url = s.backgroundImage.match('"(.*\.jpg)')[1];
var id = url.match(/([\d]*)_sendung_hsh/)[1];
var result = `https://zdfvodnone-vh.akamaihd.net/i/meta-files/zdf/smil/m3u8/300/${id.substr(0,2)}/${id.substr(2,2)}/${id}_sendung_hsh/3/${id}_sendung_hsh.smil/index_3296000_av.m3u8`;
window.open('https://duckduckgo.com/?q=qr%20'+result)
}
function createButton() {
var button = document.createElement("input");
button.type = "button";
button.style = "width: 500px; height: 500px";
button.value = "QR Stream";
button.onclick = createQR;
document.body.insertBefore(button, document.body.firstChild);
}
createButton();
// create bookmarklet with https://mrcoles.com/bookmarklet/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment