Skip to content

Instantly share code, notes, and snippets.

@anirudhamahale
Last active August 14, 2018 10:21
Show Gist options
  • Save anirudhamahale/fa18c996b492f2f0fab980a9d3acdc4a to your computer and use it in GitHub Desktop.
Save anirudhamahale/fa18c996b492f2f0fab980a9d3acdc4a to your computer and use it in GitHub Desktop.
var d = $;var x = $('.c-box-list.c-box-list--linked.c-video-player__lesson-list.c-video-player__lesson-list--open').children
for(var i = 0;i<x.length; i++) {
var z = x[i];
(function() {
var y = z.children[0];
setTimeout(function() {
console.log('Switching to ' + y);
y.click();
setTimeout(function() {
d('a.o-button--green.o-button--files').click()
}, 5000)
}, i*10000)
})();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment