Skip to content

Instantly share code, notes, and snippets.

@jithurjacob
Last active May 4, 2024 22:53
Show Gist options
  • Save jithurjacob/4d572b6e6be193650cdf8bb28536326a to your computer and use it in GitHub Desktop.
Save jithurjacob/4d572b6e6be193650cdf8bb28536326a to your computer and use it in GitHub Desktop.
PluralSight Auto Play Next Module
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
// ... give time for script to load, then type (or see below for non wait option)
//localStorage.setItem("playbackRate", 2.1);
console.log('[start]Pluralsight Continuous Play');
window.setInterval(function(){
$('#next-module').click();
},30000);
@Ji993
Copy link

Ji993 commented Apr 1, 2021

None of these code samples work in 2021. Any solutions ?

@Esirei
Copy link

Esirei commented Apr 2, 2021

None of these code samples work in 2021. Any solutions ?

Hey @Ji993, I've updated my gist.
The class name on the button had been removed.

@satyendrakumarsingh
Copy link

Check below working script without any external dependency.

https://gist.github.com/satyendrakumarsingh/c2f0b08281c78e95d8db6f74c93ed3eb

@spahbedsuren
Copy link

Yeah. First of all, screw pluralsight for a HORRENDOUS user experience with lacking an OPTION for enabling autoplay, I am switching to tik tok in protest.

Second of all, this method does not work. It runs into an error in my browser stating paused on promise rejection: SyntaxError: Unexpected end of JSON input

I also see a F ton of "Your Appcues account has expired, but you have not uninstalled Appcues. Please contact us at [email protected]." errors and warnings all over the console.

I never do use the console on this browser for anything. I have attempted this with all extensions removed as well and it is still no go.

In conclusion, back to my first line and I will not be renewing the lowered quality platform any time soon. PDF books and e-books are less frustrating than this when give to an atuoreader. What is pluralsight thinking....

@mayanknc
Copy link

mayanknc commented May 1, 2023

@JarkkoLaiho
Copy link

@mayanknc Now that Plularshight UI has been restylished, you script now longer works as the text seems to be changed in button (now format is like 'Start module X'). Could your update your script?

@BoxInABox
Copy link

BoxInABox commented Mar 19, 2024

Here is my own spin on the code. @mayanknc @JarkkoLaiho @John-Blair
This should work since it checks for the key words.


const keyWord = "Start module";

let autoNext = () => {
  Array.from(document.querySelectorAll('button'))
    .filter(b => b.textContent.includes(keyWord))
    .forEach(b => b.click());
};

setInterval(autoNext, 2500);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment