jinweijie / Pluralsight Continuous Play

// ==UserScript==
// @name       Pluralsight Continuous Play
// @namespace  http://www.goldtect.com/
// @version    0.1
// @description  Pluralsight Continuous Play
// @match      http://*pluralsight.com/training/player*
// @copyright  2015, Weijie JIN
// @include http://*pluralsight.com/training/player*
// ==/UserScript==


console.log('[start]Pluralsight Continuous Play');

window.setInterval(function(){
    
    //angular.element($0).scope().setPlaybackSpeed(3);
    //console.log('checking...');
    
    if($('#endOfModuleMessageDiv').css('display') == 'block'){
        
       $('.nextClipControl').first().click();
          console.log('[end]Next clicked!');
    }
    
},5000);