Get Online Users By ACL

Get list of users from Community page by ACL

14.05.2016 itibariyledir. En son verisyonu görün.

Bu script direkt olarak kurulamaz. Başka scriptler için bir kütüphanedir ve meta yönergeleri içerir // @require https://update.greasyfork.org/scripts/19628/125641/Get%20Online%20Users%20By%20ACL.js

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Get Online Users By ACL
// @namespace    PXgamer
// @version      0.5
// @description  Get list of users from Community page by ACL
// @author       PXgamer
// @grant        none
// ==/UserScript==

function gouba(aclRank) {

        var aclIds = [];
        aclIds.user = '1'; aclIds.vul = 'verified'; aclIds.eul = 'eliteuploader'; aclIds.super = '2'; aclIds.elite = '3';
        aclIds.translator = '4'; aclIds.fmod = '5'; aclIds.thelper = '6'; aclIds.tmod = '7';   aclIds.smod = '8';
        aclIds.staff = '9'; aclIds.admin = '10';

        var returnedData;
        var matches;
        var onlineUsers = [];

        var s = '<a href="\/user\/[a-z)-9_.-]+\/" class="tag1 aclColor_'+aclIds[aclRank]+'">([a-z)-9_.-]+)<\/a>';
        var searchString = new RegExp(s,'gi');


        console.log(searchString);

        $.ajax({
            type: "GET",
            url: "/community/",
            async: false,
            success: function (data) {
                returnedData = data;
                while (matches = searchString.exec(returnedData.html)) {
                    onlineUsers.push(matches[1]);
                }
            },
            returnData: "json"
        });
        return onlineUsers;
    }