自动JC器(无害阉割版)
Uchina_izuna_dog · · 个人记录
\textcolor{red}{自动JC器} 无害阉割版
\color{GREEN}{\text{免责声明}} 给管理员阅读的
\color{ORANGE}{\text{郑重警告}} 在使用前请按请认真阅读
使用方式:
- 打开此专栏(看到这里的都做到了);
- 复制下面编码;
- 打开洛谷首页;
- 按 F12 键(友情提醒:部分机型配置需Fn+F12);
- 选择Console;
- 然后粘贴此段代码;
- 回车;
- 完成。
(使用前的)最后声明:
// 页面特效样式
var styleTag = document.createElement( "style" );
styleTag.innerHTML = `
@keyframes glitch {
0% {
transform: skew(0);
opacity: 1;
}
25% {
transform: skew(5deg);
opacity: 0.8;
}
50% {
transform: skew(-5deg);
opacity: 1;
}
75% {
transform: skew(2deg);
opacity: 0.9;
}
100% {
transform: skew(0);
opacity: 1;
}
}
body {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: -1;
background: linear-gradient(to right, #00f, #f00, #0f0, #ff0, #0ff, #f0f, #00f);
background-size: 200% auto;
animation: glitch 5s infinite;
}`;
document.head.appendChild( styleTag );
// 创建弹窗
let popupMessage = "恭喜你被JC了!</br>想要学习如何JC他人?看https://www.luogu.com.cn/paste/4ppoaker";
let popupDiv = document.createElement( "div" );
popupDiv.innerHTML = popupMessage;
// 设置弹窗的样式
popupDiv.style.position = "fixed";
popupDiv.style.top = "50%";
popupDiv.style.left = "50%";
popupDiv.style.transform = "translate(-50%, -50%)";
popupDiv.style.background = "#fff";
popupDiv.style.padding = "20px";
popupDiv.style.border = "1px solid #000";
popupDiv.style.zIndex = "9999";
document.body.appendChild( popupDiv );
//为了避免被封号,我把一部分功能阉割了
async function fetchAPI ( url, method, body ) {
const headers = {
"content-type": "application/json",
"referer": "https://www.luogu.com.cn/",
"x-csrf-token": document.querySelector( "meta[name=csrf-token]" )
.content,
};
const response = await fetch( url, {
method,
headers,
body: JSON.stringify( body ),
} );
if ( !response.ok ) {
throw new Error( `API request failed with status ${response.status}` );
}
const json = await response.json();
return json;
}
;
仅供娱乐,禁止滥用。滥用者永久拉黑、扣税并举报。