Skip to content

Instantly share code, notes, and snippets.

Avatar

Andre Torgal andrezero

View GitHub Profile
@andrezero
andrezero / me-vs-europsport.js
Last active Sep 4, 2021
Eurosport Player Keyboard navigation
View me-vs-europsport.js
(() => {
const select = (selector) => () => document.querySelector(selector);
const overlay = select('[class*="overlay-overlay"]');
const controls = select('[class*="styles-centerControls"]');
const pause = select('[class*="playpause"]');
const forward = select('[class*="styles-forward"]');
const rewind = select('[class*="styles-rewind"]');
const live = select('[class*="tyles-liveView"]');
const fullScreen = select(