kztxgj

· · 个人记录

控制台小工具

获取帖子源码:

console.log(_feInstance.currentData.post.content); 

获取专栏源码:

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

获取比赛报名人数:

window._feInjection.currentData.contest.totalParticipants

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

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

退团:

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

加团:

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

csdn解除防复制:控制台输入

document.body.contentEditable='true'
document.desingable='on'