Last active
August 29, 2015 14:01
-
-
Save AugustoPedraza/9827de0c023bb69dae31 to your computer and use it in GitHub Desktop.
Really simpler chrome console "ñoño" filter sorter for http://torrentbutler.eu/
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
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