谁有“私信自动发送”代码
  • 板块灌水区
  • 楼主scratch_szc
  • 当前回复5
  • 已保存回复5
  • 发布时间2025/1/31 11:54
  • 上次更新2025/1/31 21:06:02
查看原帖
谁有“私信自动发送”代码
1260767
scratch_szc楼主2025/1/31 11:54

RT 或

    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)
}
)();

怎么用

2025/1/31 11:54
加载中...