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);
@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
Seems like Surfline has changed their html structure, and this is no longer working. Here's an updated version that seeeems to work... until they update their structure again.
Update for Aug 2021, this is working for me and others: