Skip to content

Commit

Permalink
Update src/groups/zh/checkuser/MediaWiki:Group-checkuser.js
Browse files Browse the repository at this point in the history
Co-authored-by: AnnAngela <naganjue@vip.qq.com>
  • Loading branch information
lovelyCARDINAL and AnnAngela authored Oct 28, 2023
1 parent 29e6ffb commit c1fb001
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/groups/zh/checkuser/MediaWiki:Group-checkuser.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,8 @@
// 一键复制用户名列表
const copyUserlist = () => {
const h3s = [...document.querySelectorAll("#mw-content-text > .mw-parser-output > h3"), document.querySelector("table.navbox")];
h3s.forEach((section, index) => {
const nextIndex = index + 1;
if (nextIndex >= h3s.length) {
return;
}
const nextSection = h3s[nextIndex];
h3s.slice(0, -1).forEach((section, index) => {
const nextSection = h3s[index + 1];

const userlist =
for (let ele = section.nextElementSibling; ele && ele !== nextSection; ele = ele.nextElementSibling) {
Expand Down

0 comments on commit c1fb001

Please sign in to comment.