Greasy Fork is available in English.

Get Blocked Users

Get a list of your blocked users.

このスクリプトは単体で利用できません。右のようなメタデータを含むスクリプトから、ライブラリとして読み込まれます: // @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;
}