Skip to content

Instantly share code, notes, and snippets.

@kosugi
Created May 25, 2012 02:53
Show Gist options
  • Select an option

  • Save kosugi/2785478 to your computer and use it in GitHub Desktop.

Select an option

Save kosugi/2785478 to your computer and use it in GitHub Desktop.
mark current viewing position on YouTube
javascript:(function(x,d,t,n){try{t=yt.config_.PLAYER_REFERENCE.getCurrentTime()|0;for(n=0;n<3;++n){d=Math.pow(60,2-n);x[n*2]=(t/d)|0;t=t%d;}location.href=location.href.replace(/#.*/,'')+'#t='+x.join('');}catch(e){}})([0,'h',0,'m',0,'s'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment