Greasy Fork 支持简体中文。

Pluralsight Continuous Play Next module

Pluralsight Continuous Play

// ==UserScript==
// @name       Pluralsight Continuous Play Next module
// @namespace  http://www.goldtect.com/
// @version    0.1
// @require      https://libs.baidu.com/jquery/2.0.0/jquery.min.js
// @description  Pluralsight Continuous Play
// @match      https://app.pluralsight.com/course-player*
// @copyright  2019, Hulk.Yang
// @include https://app.pluralsight.com/course-player*
// ==/UserScript==


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

window.setInterval(function(){
    //angular.element($0).scope().setPlaybackSpeed(3);
    //console.log('checking...');
    function clickNextModule(){
        var nextButton = $('button:contains("Continue to next module")')
        if (nextButton && !nextButton.is(':hidden')) {
            nextButton.click();
        }else{
            console.log("not found next module button");
        }
    }
    clickNextModule()
},5000);