Last active
August 29, 2015 14:08
-
-
Save DrummerHead/98fdee393039536ef3a3 to your computer and use it in GitHub Desktop.
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
// http://www.imdb.com/chart/top | |
// | |
$('.lister-list tr').each(function(i, el){ | |
var _this = $(this); | |
var yearInt = parseInt(_this.find('.secondaryInfo').text().replace(/[\(\)]/g, ''), 10); | |
if(yearInt <= 1990){ | |
_this.remove(); | |
} | |
}); | |
// http://www.rottentomatoes.com/top/bestofrt/ | |
// | |
$('.table tr').each(function(i, el){ | |
var _this = $(this); | |
var year = _this.find('td:nth-child(3)').text().match(/\((\d*)\)/); | |
var yearInt = (Array.isArray(year) ? parseInt(year[1], 10) : 0); | |
if(yearInt <= 1990){ | |
_this.remove(); | |
} | |
}); | |
// http://www.metacritic.com/browse/movies/score/metascore/all?sort=desc | |
// | |
$('.list_product_condensed .movie_product').each(function(i, el){ | |
var _this = $(this); | |
var yearInt = parseInt(_this.find('.data').text().match(/\d{4}/g), 10); | |
var isRerelease = /re-release/.test(_this.find('.product_title').text()); | |
if(yearInt <= 1990 || isRerelease){ | |
_this.remove(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment