The code currently checks every 1s if the ad display timer is visible. It would be best if the application was ran only when the display ad timer appears. Use a MutationObserver on the div containing the video player to catch such event and run the application only then.
The code currently checks every 1s if the ad display timer is visible. It would be best if the application was ran only when the display ad timer appears. Use a MutationObserver on the div containing the video player to catch such event and run the application only then.