跳到正文

个人记录

文章:一些代码

#SUSPENDED#约 2 分钟
原文
文章信息与版本

文章信息

发布
2025年1月27日
收录
2025年12月12日
更新
2026年11月14日
篇幅
约 2 分钟
获赞
1

版本

  1. v1当前

均需在控制台完成,如果你不知道什么是控制台就算了。

删犇:

JavaScript
$.get('/problem/U197494?_contentOnly',d=>{$("body").html(d.currentData.problem.hint)})

团队管理员删团队帖子:

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

私信自动发送:

JavaScript
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 str="文字\n";
    f(uid, str)
}
)();

退团:

JavaScript
fetch("https://www.luogu.com.cn/api/team/exit/TID", {
"headers": {
"accept": "application/json, text/plain, */*",
"x-csrf-token":document.querySelector("meta[name=csrf-token]").content
},
"body": null,
"method": "POST"
});

欢迎投稿

原文
存档评论6 条抓取于