Last active
March 13, 2024 21:33
-
-
Save coryshaw1/7917c6998e80cf9f6954b19b67f819ef to your computer and use it in GitHub Desktop.
Autorefresh Surfline surf cams without refreshing page
@rschenk's suggestion will actually result in a 500 error after the first run. Following works for me:
setInterval(function() { if (!document.querySelector('.quiver-cam-upsell__message')) return; document.querySelector('.quiver-cam-upsell__message').parentNode.parentNode.innerHTML = ''; jwplayer().play(); }, 100);
Yes this works..thanks mate
Anyone got an update? they are using videojs
now not jwplayer
@coryshaw1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@rschenk's suggestion will actually result in a 500 error after the first run. Following works for me: