Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
skip the 5-second delay between videos on udacity
(function () {
// click through the 5-second delay between udacity videos
new MutationObserver(function (mutations) {
for (var i = 0; i < mutations.length; i++) {
for (var j = 0; j < mutations[i].addedNodes.length; j++) {
try {
if (mutations[i].addedNodes[j].className.includes("index--auto-advance-overlay--BKc5y")) {
document.querySelector("._auto-advance-overlay--button--3yFIl").click();
}
}
catch { }
}
}
}).observe(document.documentElement, { childList: true, subtree: true, attributes: true });
// Hide sidebar on 'Next'
new MutationObserver( (mutations) => {
mutations.forEach(mutation => {
let foo = mutation.target.getAttribute("class")
if (foo != null && foo.includes("_layout-module--nav--3qaiq _layout-module--secondary-only--33dGC") && !foo.includes("_layout-module--hidden--2IaXy")) {
document.getElementsByClassName('hamburger--hamburger-link--3-KRS')[0].click()
}
});
}).observe(document.documentElement, { childList: true, subtree: true, attributes: true });
})();
<html>
<body>
<!-- Bookmarklet installation INSTRUCTIONS: open this html file in a browser and bookmark the below link
by clicking and dragging it to the bookmarks bar. click it upon visiting udacity.
to re-enable the pop up bar, refresh the page.
-->
<a href="javascript:(function(){new MutationObserver(function(mutations){for(var i=0;i<mutations.length;i++){for(var j=0;j<mutations[i].addedNodes.length;j++){try{if(mutations[i].addedNodes[j].className.includes('index--auto-advance-overlay--BKc5y')){document.querySelector('._auto-advance-overlay--button--3yFIl').click()}}
catch{}}}}).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0});new MutationObserver((mutations)=>{mutations.forEach(mutation=>{let foo=mutation.target.getAttribute('class');if(foo!=null&&foo.includes('_layout-module--nav--3qaiq _layout-module--secondary-only--33dGC')&&!foo.includes('_layout-module--hidden--2IaXy')){document.getElementsByClassName('hamburger--hamburger-link--3-KRS')[0].click()}})}).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0})})()">
udacity_skipper_minimize
</a>
</body>
</html>
<html>
<body>
<!-- Bookmarklet installation INSTRUCTIONS: open this html file in a browser and bookmark the below link
by clicking and dragging it to the bookmarks bar. click it upon visiting udacity.
to re-enable the pop up bar, refresh the page.
-->
<a href="
javascript:(function () {
new MutationObserver(function (mutations) {
for (var i = 0; i < mutations.length; i++) {
for (var j = 0; j < mutations[i].addedNodes.length; j++) {
try {
if (mutations[i].addedNodes[j].className.includes('index--auto-advance-overlay--BKc5y')) {
document.querySelector('._auto-advance-overlay--button--3yFIl').click();
}
}
catch { }
}
}
}).observe(document.documentElement, { childList: true, subtree: true, attributes: true });
new MutationObserver( (mutations) => {
mutations.forEach(mutation => {
let foo = mutation.target.getAttribute('class');
if (foo != null && foo.includes('_layout-module--nav--3qaiq _layout-module--secondary-only--33dGC') && !foo.includes('_layout-module--hidden--2IaXy')) {
document.getElementsByClassName('hamburger--hamburger-link--3-KRS')[0].click();
}
});
}).observe(document.documentElement, { childList: true, subtree: true, attributes: true });
})();
">
udacity_skipper_minimize
</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.