你谷控制台小工具

获取专栏源码:

1
JSON.parse(document.getElementById('lentille-context').innerText).data.article.content

获取比赛报名人数:

1
window._feInjection.currentData.contest.totalParticipants

删帖(如果是团队管理员可以删别人的):

1
2
3
r=new XMLHttpRequest();r.open('DELETE',
'https://www.luogu.com.cn/api/discuss/delete/帖子ID'
);r.send();

退团:

1
2
3
4
5
6
7
8
fetch("https://www.luogu.com.cn/api/team/exit/80595", {
"headers": {
"accept": "application/json, text/plain, */*",
"x-csrf-token":document.querySelector("meta[name=csrf-token]").content
},
"body": null,
"method": "POST"
});

加团:

1
2
3
4
5
6
7
8
fetch("https://www.luogu.com.cn/api/team/join/80595", {
"headers": {
"accept": "application/json, text/plain, */*",
"x-csrf-token":document.querySelector("meta[name=csrf-token]").content
},
"body": null,
"method": "POST"
});

查看别人主页源码:

1
console.log(_feInstance.currentData.user.introduction)

炸私信:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
async function f(u, s) {
await fetch("https://www.luogu.com.cn/api/chat/new", {
headers: [["content-type", "application/json"], ["referer", "https://www.luogu.com.cn/"], ["x-csrf-token", document.querySelector("meta[name=csrf-token]").content], ],
body: JSON.stringify({
user: u,
content: s,
}),
method: "POST",
});
}
(function() {
var i;
for (i = 0; i < 1; ++i) { //调次数
let x = "%%%";//内容
f( 991587 , x)//用户 UID
}
}
)();

你谷控制台小工具
http://zhoujunchen666.github.io/2025/08/04/你谷控制台小工具/
作者
zhoujunchen
发布于
2025年8月4日
许可协议