Skip to content

Instantly share code, notes, and snippets.

@GarrettS
Last active August 27, 2015 17:56
Show Gist options
  • Save GarrettS/c7bf3f49e9ce43f6bd25 to your computer and use it in GitHub Desktop.
Save GarrettS/c7bf3f49e9ce43f6bd25 to your computer and use it in GitHub Desktop.

Revisions

  1. GarrettS revised this gist Aug 27, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Variable Speed for YouTube
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    javascript:var gSpeedControl = (function(v,i,n,t){ n.insertBefore(i, n.firstChild);i.type="range";i.min=.3;setTimeout(function(){i.max=i.value=1;i.onchange();},1); i.step=.05;t=i.nextSibling;i.onchange=function(){t.data=(100*(v.playbackRate=i.value)|0)+"%"};return i})(document.querySelector("video"), document.createElement("input"), document.getElementById("watch-header"))
    javascript:var gSpeedControl = (function(v,i,n,t){ n.insertBefore(i, n.firstChild);i.type="range";i.min=.3;setTimeout(function(){i.max=i.value=1;i.oninput();},1); i.step=.05;t=i.nextSibling;i.oninput=function(){t.data=(100*(v.playbackRate=i.value)|0)+"%"};return i})(document.querySelector("video"), document.createElement("input"), document.getElementById("watch-header"))
  2. GarrettS revised this gist Aug 26, 2015. No changes.
  3. GarrettS created this gist Aug 25, 2015.
    1 change: 1 addition & 0 deletions Variable Speed for YouTube
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    javascript:var gSpeedControl = (function(v,i,n,t){ n.insertBefore(i, n.firstChild);i.type="range";i.min=.3;setTimeout(function(){i.max=i.value=1;i.onchange();},1); i.step=.05;t=i.nextSibling;i.onchange=function(){t.data=(100*(v.playbackRate=i.value)|0)+"%"};return i})(document.querySelector("video"), document.createElement("input"), document.getElementById("watch-header"))