Get a list of your blocked users.
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.cn-greasyfork.org/scripts/19498/124522/Get%20Blocked%20Users.js
// ==UserScript==
// @name Get Blocked Users
// @namespace PXgamer
// @version 0.5
// @description Get a list of your blocked users.
// @author PXgamer
// @match *kat.cr/*
// @grant none
// ==/UserScript==
function gbu() {
'use strict';
var returnedData;
var searchString = /<span class="aclColor_.*"><a class="plain" href="\/user\/.*\/">([a-z)-9_.-]+)<\/a>/gi, matches, blockedUsers = [];
$.ajax({
type: "GET",
url: "https://kat.cr/settings/privacy/",
success: function (data) {
returnedData = data;
while (matches = searchString.exec(returnedData.html)) {
blockedUsers.push(matches[1]);
}
},
returnData: "json"
});
return blockedUsers;
}