Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-05-08 | Add license (GNU GPLv3+) | Teddy Wing | |
2020-05-08 | Use `const` variable declarations where possible | Teddy Wing | |
2020-05-08 | Remove old development comments | Teddy Wing | |
Old notes while I was working out elements and selectors to use. | |||
2020-05-08 | Automatically click the "Watch Credits" button | Teddy Wing | |
TV series on Netflix now display a "Watch Credits" button when the credits start rolling. We can hide this button using CSS and the credits will continue playing to the end, but while it's displayed, the player controls are hidden. Automatically click the button to make it go away and reactivate the player controls. The tricky thing, though, is that the "Watch Credits" button doesn't have a click handler. Instead, it listens to the "pointerdown" event, so we have to construct one programmatically (and turn on `bubbles`, otherwise the button doesn't react to the event) and dispatch it. Moved `with_player` to `wait_element`, because now I need to wait for more DOM elements than just the player element. Add a new `controls` module since I need to hide the player controls in both `fullscreen_credits` and `watch_credits`. Add the `DOM` lib to `tsconfig.json` to give us DOM types. | |||
2020-05-06 | Move `with_player` to a new module | Teddy Wing | |
Move this function to a new module as I'd like to use it for checking the "Watch Credits" button. Also change from a callback to a `Promise`. Need to include the `Promise` lib via ES2015 in tsconfig to be able to build with promises. | |||
2020-05-05 | Move fullscreen credits init function to fullscreen_credits.ts | Teddy Wing | |
Makes more sense to put it in the fullscreen_credits module. | |||
2020-05-05 | Extract credits handling and CSS styles to separate modules | Teddy Wing | |
Start to establish a bit of separation and organisation. |