Вновь всех заебавшие
1) 2XCKKP-DHVF-PVRH99-PXKK-JTW2D2
2) VNB7H4-HPHC-H9JJ6F-4MJV-FYW6YG
3) F9E68D-XVMM-HEWRWP-MJ88-DP62BK
4) PF8RCV-R48G-T84X7E-7WDG-YFW7CE
Array.prototype.shuffle = function shuffle(limit) {
var array = this, m = array.length, t, i;
while (m) {
i = Math.floor(Math.random() * m--);
t = array[m];
array[m] = array[i];
array[i] = t;
}
return array.slice(0, limit);
};
var arr = [];
[].slice.call(document.querySelectorAll('.reply-link a[href^="/user/"]')).forEach(function (a) {
var name = a.innerText, selfName = "ariocx";
if (name && name !== undefined && name != " " && name != selfName) {
arr.push(name)
}
});
var unique = arr.filter(function (item, pos, self) {
return self.indexOf(item) == pos;
});
console.log('total players: ' + unique.length, unique.shuffle(4));