Decided to push all my changes in a single PR so we do not need to go back and forth.
The main goals were to make it easy to toggle ATCO on/off as well as making the init reliable.
Changes
Features
Add option to auto close Twitch chat when ATCO is enabled
Add optional keybind to toggle ATCO (hardcoded to Alt+c for now)
Add option to auto start ATCO when visiting a Twitch stream/vod
Fixes
More resilient way of initializing ATCO, trying to reduce cases where ATCO fails to initialize or initializes twice. Still not perfect but better
Use more specific selector for stream url in VODs, the previous one failed in some cases as it could select elements that do not contain the url metadata
Refactors
Extract chat overlay logic into chat_overlay.js, this allows merging index.js with vod.js to reduce some code duplication
Reword forceVod to useIframe internally for easier readability
Context
Decided to push all my changes in a single PR so we do not need to go back and forth. The main goals were to make it easy to toggle ATCO on/off as well as making the init reliable.
Changes
Features
Fixes
Refactors
chat_overlay.js
, this allows mergingindex.js
withvod.js
to reduce some code duplicationforceVod
touseIframe
internally for easier readability