Snizzle / Connected Users

// ==UserScript==
// @name        Connected Users
// @author      Snizzle
// @version     1.4
// @downloadURL https://openuserjs.org/install/Snizzle/Connected_Users.user.js
// @updateURL   https://openuserjs.org/install/Snizzle/Connected_Users.user.js
// @supportURL  http://www.jeuxvideo.com/messages-prives/nouveau.php?all_dest=Snizzle,Snitchzzle
// @copyright   2018, Snizzle
// @licence     MIT
// @description Indique le nombre de connectés sur les topics dans la liste sans avoir à cliquer dessus.
// @grant       none
// @require     https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
// @include     *://www.jeuxvideo.com/forums/*
// @include     *://www.jeuxvideo.com/recherche/forums/*
// @run-at      document-end
// ==/UserScript==
this.$ = this.jQuery = jQuery.noConflict(true);
$(document).ready(function() {
    "use strict";
    var e = [];
    $(".topic-list .topic-date .lien-jv").append("<span class='compteur' style='color:#42b71d';>");
    for (var t = 1; t < 26; t++) { var a = document.getElementById("forum-main-col").childNodes[5].getElementsByClassName("topic-list")[0].getElementsByClassName("topic-subject")[t].getElementsByClassName("topic-title")[0].href;e.push(a);} $.ajax({url: "http://www.jeuxvideo.com/abonnements/ajax/ajax_abo_insert.php",method: "POST",data: {ajax_timestamp: $("#ajax_timestamp_liste_messages").val(),ajax_hash: $("body").attr("data-abo-session"),type: "alias",ids_liste: 0x5775c9}});
    var n = function(t) {var a = function() {try {return new XMLHttpRequest();} catch (e) {}try {return new ActiveXObject("Msxml2.XMLHTTP");} catch (e) {}try {return new ActiveXObject("Microsoft.XMLHTTP");} catch (e) {}throw new Error("Could not create HTTP request object.");}(),
            n = "";
        a.open("GET", t, !0); a.send(null); a.onreadystatechange = function() {
            if (4 == a.readyState) {
                n = String(a.responseText);
                var s = String(n.match(/\S+\s+connecté/)),
                    r = "<b>" + s.substring(24, s.indexOf(" ")) + "</b>",
                    o = e.indexOf(t);
                return document.getElementsByClassName("compteur")[o].innerHTML = "<b>(" + r + ")</b>", "<b> connecté</b>" == r && (document.getElementsByClassName("compteur")[o].innerHTML = "<b>(1)</b>"), n;
            }
        };
    };
    for (t = 0; t < e.length; t++) n(e[t]);
});