Skip to content

Instantly share code, notes, and snippets.

@pale2hall
Created March 1, 2020 03:13
Show Gist options
  • Save pale2hall/8e1b7a46d06a156ad1c2f25f6f9c84d3 to your computer and use it in GitHub Desktop.
Save pale2hall/8e1b7a46d06a156ad1c2f25f6f9c84d3 to your computer and use it in GitHub Desktop.
/*Add 15 second skip ahead button to NBC Sports Gold streaming and SloMo Toggle! Paste into console*/
$('app-play-pause-button').after('<button id="skipAhead" style="margin: 0; height: 2em; vertical-align: middle; padding-bottom: 34px; background-color: rgba(0,0,0,0); color: white; border: none;">+15s</button>');
$('#skipAhead').click(function(){var vid = $.find('video'); vid[0].currentTime = vid[0].currentTime + 15;});
$('#skipAhead').after('<button id="sloMo" style="margin: 0; height: 2em; vertical-align: middle; padding-bottom: 34px; background-color: rgba(0,0,0,0); color: white; border: none;">SloMo</button>');
$('#sloMo').click(function(){var vid = $.find('video'); var speed = vid[0].playbackRate; if(speed == 1) vid[0].playbackRate = .1; else vid[0].playbackRate = 1;});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment