「QQ 群」批量踢人
// ==UserScript==
// @name 「QQ 群」批量踢人
// @namespace wdssmq
// @version 1.7
// @author 沉冰浮水
// @description 自动选择 20 名成员
// @link https://greasyfork.org/zh-CN/scripts/26812
// @null ----------------------------
// @contributionURL https://github.com/wdssmq#%E4%BA%8C%E7%BB%B4%E7%A0%81
// @contributionAmount 5.93
// @null ----------------------------
// @link https://github.com/wdssmq/userscript
// @link https://afdian.net/@wdssmq
// @link https://greasyfork.org/zh-CN/users/6865-wdssmq
// @null ----------------------------
// @include https://qun.qq.com/member.html*
// @grant none
// ==/UserScript==
(function () {
"use strict";
function $n(e) {
return document.querySelector(e);
}
function $na(e) {
return document.querySelectorAll(e);
}
function fnRun() {
if (!$n(".del-member.disabled")) {
return false;
}
$n(".del-member.disabled").removeAttribute("disabled");
$n(".del-member.disabled").className = "del-member";
const mbList = $na(".mb .check-input");
for (let x = 0; x < 20; x++) {
mbList[x].setAttribute("checked", "checked");
}
fnRun();
}
window.addEventListener("scroll", function () {
fnRun();
});
$n(".select-result .submit").addEventListener("click", function () {
let t = setTimeout(function () {
fnRun();
}, 900);
}, false);
})();