Wykop.pl – greasemonkey – remove articles below X dig points/remove poststs below X points v.2

Short script for removing articles below X dig points. Works for main and next pagined pages.
You can set own MIN_VALUE.

Below the script.

// ==UserScript==
// @name Wykop.pl - delete articles below X digs
// @namespace *www.wykop.pl/
// @description Deletes articles with dig-points below X points
// @include *www.wykop.pl/*
// @include *www.wykop.pl/strona/*
// @version 2
// @grant none
// ==/UserScript==

var interval = setInterval(function() {
    if(document.readyState === 'complete') {
        removeArticles();
        interval = null;
    }
}, 100);

function removeArticles(){
    var MIN_VALUE = 700;
    var doc = document.getElementsByClassName('link iC');
    for (var i = doc.length - 1; i >= 0; i--)
    {
        var li = doc.item(i);
        //li.textContent
        var digBox = li.getElementsByClassName('diggbox');
        var digBox1 = digBox.item(0);
        var spans = digBox1.getElementsByTagName('span');
        var span = spans.item(0)
        var value = span.innerHTML;

        if (value < MIN_VALUE)
        {
            li.remove();
        }
    }
};

For removing posts, code is below.

// ==UserScript==
// @name Wykop.pl - delete posts below X points
// @namespace *www.wykop.pl/
// @description Deletes posts with points below X points
// @include *wykop.pl/link/*
// @version 2
// @grant none
// ==/UserScript==

var MIN_VALUE = 150;

var doc = document.getElementsByClassName('wblock lcontrast dC');
for (i = doc.length - 1; i >= 0; i--)
{
  var vcs = doc.item(i);
  var vc = vcs.getElementsByClassName('vC');
  var vcv = vc.item(0);
  if(vcv == null)
    continue;
  var sv = vcv.getAttribute('data-vc');
  var rv = parseInt(sv);
  if (rv < MIN_VALUE)
  {
    vcs.remove();
  }
}