Last active
August 14, 2018 10:21
-
-
Save anirudhamahale/fa18c996b492f2f0fab980a9d3acdc4a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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