Created
November 9, 2014 21:24
-
-
Save reubn/8858242dc1e882392d23 to your computer and use it in GitHub Desktop.
BBC iPlayer Auto HD
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 autoHD() { | |
var evt = document.createEvent("MouseEvents"); | |
evt.initMouseEvent("click", true, true, window, | |
0, 0, 0, 0, 0, false, false, false, false, 0, null); | |
var cb = document.getElementsByClassName("hd")[0]; | |
var canceled = !cb.dispatchEvent(evt); | |
} | |
window.document.onload = autoHD; | |
autoHD(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment