Skip to content

Instantly share code, notes, and snippets.

@hltbra
Created May 15, 2012 23:23
Show Gist options
  • Save hltbra/2705943 to your computer and use it in GitHub Desktop.
Save hltbra/2705943 to your computer and use it in GitHub Desktop.
Patch Udacity EXT auto next video & quiz
--- udacity_ext.js 2012-05-15 20:19:44.000000000 -0300
+++ udacity_ext_new_ui.js 2012-05-15 20:22:49.000000000 -0300
@@ -5,7 +5,7 @@
// @version 0.1
// @include http://www.udacity.com/view*
// @match http://www.udacity.com/view*
-// @copyright 2012, Damian Sepczuk
+// @copyright 2012, Damian Sepczuk, Hugo Lopes Tavares
// ==/UserScript==
function mainWrapper(){
@@ -17,7 +17,7 @@
App.player.addEventListener('onStateChange', function(p){
if (p.data === YT.PlayerState.ENDED) {
- $('.nextButton').click();
+ $('#course-next-button .button').click();
}
})
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment