Get Blocked Users

Get a list of your blocked users.

Skrip ini tidak untuk dipasang secara langsung. Ini adalah pustaka skrip lain untuk disertakan dengan direktif meta // @require https://update.greasyfork.org/scripts/19498/659172/Get%20Blocked%20Users.js

/*
 *  name         Get Blocked Users
 *  namespace    pxgamer
 *  version      0.6.1
 *  description  Get a list of your blocked users.
 *  author       pxgamer
 */

function gbu() {
    'use strict';

    let returnedData;
    let searchString = /<span class="aclColor_.*"><a class="plain" href="\/user\/.*\/">([a-z0-9 _.-]+)<\/a>/gi, matches, blockedUsers = [];

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