Last active
August 14, 2016 07:39
-
-
Save artttj/c8554f542135d8e0c42a690be04ed389 to your computer and use it in GitHub Desktop.
Tampermonkey script for youtube, that appends current time to the URL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var checkCurrentTime = setInterval(function(){ | |
var $player = document.querySelector('#movie_player'); | |
if($player && $player.getCurrentTime()) { | |
document.location.hash = 'start=' + $player.getCurrentTime(); | |
}// + ';end=20:22;cycles=-1;autoreplay=false | |
}, 5000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment