AdenFlorian / Hacker News Hide Low Point Posts

// ==UserScript==
// @name       Hacker News Hide Low Point Posts
// @namespace  http://AdenFlorian.com/
// @version    0.1.2
// @author     David "AdenFlorian" Valachovic <AdenFlorian@gmail.com>
// @description Hides posts that are under a specified number of points
// @match      https://news.ycombinator.com
// @match      https://news.ycombinator.com/news*
// @copyright  2014+, You
// @require    https://code.jquery.com/jquery-1.11.0.min.js
// ==/UserScript==

$('tr>td.subtext>span').each(function() {
    var minScore = 50;
    var score = $(this).text().replace(/[a-z]/gi, '').replace(/ /g, '');
    if (score < minScore) {
        $(this).parent().parent().hide().prev().hide().prev().hide();
    }
});