Last active
February 16, 2018 13:11
-
-
Save nimitbhargava/fcb1278904987ffcdd07cec295f02b82 to your computer and use it in GitHub Desktop.
Udacity Courses Catalog - `new` filter
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
$('div[data-course-summaries] div[data-course-summary]').each(function () { | |
var card = $(this); | |
var courseID = card.attr('id'); | |
var coursePublished = $('#'+courseID+' .col-sm-9 .row .col-sm-8 .h-slim .badges .badge').data('cloak') === "" ? "old" : "new"; | |
if(coursePublished === "old") card.css("display","none"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This script seems to be broken as of today. If anyone wants to use. Please let me know so that I can update this on priority :)