Created
May 15, 2012 23:23
-
-
Save hltbra/2705943 to your computer and use it in GitHub Desktop.
Patch Udacity EXT auto next video & quiz
This file contains 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
--- 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