Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- document.evaluate('//*[text()="' + "Regarder la télé" + '"]', document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE).snapshotItem(0).click();
- setTimeout(function() {
- v = document.querySelector("video")
- v.style.position="absolute";
- v.style.zIndex="50000";
- v.style.top=0;
- v.style.bottom=0;
- v.style.left=0;
- v.style.right=0;
- e = document.createEvent("KeyboardEvent");
- Object.defineProperty(e, 'keyCode', {
- get : function() {
- return 84;
- }
- });
- e.initKeyboardEvent('keydown', true, true, window, false, false, false, false, 84, 0);
- document.addEventListener("keydown",(e) => {
- if(e.keyCode == 84) {
- t = document.querySelector("[data-tracking-screen=remote]")
- t.parentElement.parentElement.style.display="none";
- setTimeout(function() {
- c = t.querySelectorAll("img + img")
- zap(0);
- }, 500);
- }
- })
- document.dispatchEvent(e)
- }, 500);
- currentChannel = 0;
- function zap(channel) {
- c[channel].click();
- }
- document.addEventListener("keydown", function(e) {
- switch(e.code) {
- case "KeyJ":
- zap(--currentChannel);
- break;
- case "KeyK":
- zap(++currentChannel);
- break;
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement