Skip to content

Instantly share code, notes, and snippets.

@AugustoPedraza
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AugustoPedraza/9827de0c023bb69dae31 to your computer and use it in GitHub Desktop.
Save AugustoPedraza/9827de0c023bb69dae31 to your computer and use it in GitHub Desktop.
Really simpler chrome console "ñoño" filter sorter for http://torrentbutler.eu/
var internalId = setInterval(function() {
$("html, body").animate({ scrollTop: $(document).height()-$(window).height() });
setTimeout(function() {
$('a.movie').each(function(i, el) {
var $el = $(el);
var styleValue = $($el.find('span.rating > span')[0]).attr('style');
var ranking = parseFloat((styleValue || '-1').substring(7).replace("%;", ''));
if (isNaN(ranking)|| ranking < 80) {
$el.remove();
}
});
}, 1000);
}, 10000);
stopFilter = function() {
clearInterval(internalId);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment