Closed grubeninspekteur closed 8 years ago
maybe there is an YouTube-own event we could use to listen to?
Content scripts are not allowed to interact with JavaScript already on the page
Can't test now, but I suspect AJAX ruining everything. We could keep the check timer alive, which does not use much CPU, but is something I wanted to avert. Another possibility would be a MutationObserver for the part of the page that is replaced by AJAX. This would also work if you visit a live stream after visiting a live stream, i.e. you change the contents twice.
The new chat detection which enables the extension without a log in does not work on YouTube Live (not Gaming). Only after a refresh the necessary element is detected.