跳到正文

剪贴板

剪贴板 xov0wdjw

原文
剪贴板信息

剪贴板信息

收录
更新

var userlist = [“spdarkle”]; var lstt = 12; var opentime = Math.round(new Date().getTime()/1000); var tbegin = Math.round(new Date().getTime()/1000) + (8 * 3600); tbegin -= tbegin % 86400; var pages = 1; var cd = 10000; var a = [[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0]]; var pre=[0,0,0,0,0,0,0,0]; var numcnt=[0,0,0,0,0,0,0,0]; var colors=[‘rgb(191, 191, 191)’,‘rgb(254, 76, 97)’,‘rgb(243, 156, 17)’,‘rgb(255, 193, 22)’,‘rgb(82, 196, 26)’,‘rgb(52, 152, 219)’,‘rgb(157, 61, 207)’,‘rgb(14, 29, 105)’]; var name=“灰红橙黄绿蓝紫黑”; var lst=Array(); var cnt=0; function onSearch(obj) { var gradeId=document.getElementById(‘grade’); var storeId=document.getElementById(‘store’); var rowsLength=storeId.rows.length; var key=document.getElementById(‘key’).value; for(var i=1;i < rowsLength;i++) { var searchText=storeId.rows[i].cells[0].innerHTML; if(key==""||searchText.match(key)){ storeId.rows[i].style.display=”; } else{ storeId.rows[i].style.display=‘none’; } } rowsLength=gradeId.rows.length; key=document.getElementById(‘key’).value; for(var i=1;i < rowsLength;i++) { var searchText=gradeId.rows[i].cells[0].innerHTML; if(key==""||searchText.match(key)){ gradeId.rows[i].style.display=”; } else{ gradeId.rows[i].style.display=‘none’; } } }; str=’

*’; for(var i=0;i < userlist.length;i++) str+=''+userlist[i]+''; str+=‘
’ for(var i=0; i < 8;i++) str+= ''; str+=''; str+=‘
用户题目数量' +""+ name[i] + '
用户题号标题
’; document.body.innerHTML = “

内卷监视工具(升级版)

”; document.body.innerHTML += “author:ricky_lin”; document.body.innerHTML += “运筹首页之中,偷袭千里之外😅
” + str;

function PARSE(First=false) { cnt=(cnt+1)%userlist.length; var user=userlist[cnt]; var Pagenum=1; lstt = tbegin; for(;lstt >= tbegin;Pagenum++) { var httpRequest=new XMLHttpRequest(); httpRequest.open(‘GET’,‘https://www.luogu.com.cn/record/list?user=‘+user+‘&status=12&page=‘+Pagenum,false); httpRequest.send(); if(httpRequest.readyState==4&&httpRequest.status==200) { var content=httpRequest.responseText; var patten=/decodeURIComponent(”.*?”)/; content=patten.exec(content)[0]; content=content.substr(20,content.length-22); content=JSON.parse(decodeURIComponent(content)); var prob,col,pid,title; for(var i=Math.min(content.currentData.records.result.length-1,19);i>=0;i—){ lstt = content.currentData.records.result[i].submitTime; if(content.currentData.records.result[i].status==12&&content.currentData.records.result[i].id>lst[cnt]) { prob=content.currentData.records.result[i].problem; col=colors[prob.difficulty]; pid=prob.pid; title=prob.title; if(tbegin <= lstt && pid != pre[cnt]){ document.getElementById(‘store’).childNodes[0].innerHTML +=''+user+''+pid+''+ "" +title+""+''; if(lstt >= opentime) alert(user+” 刚刚卷了”+name[prob.difficulty]+“题 “+pid+” “+title); ++numcnt[cnt]; ++a[cnt][prob.difficulty]; } pre[cnt]=pid; lst[cnt]=content.currentData.records.result[i].id } } } } str = “用户题目数量”; for(var i=0; i < 8;i++) str+= '' +""+ name[i] + ''; str+=''; for(var i=0;i < userlist.length;i++){ str+=''+userlist[i]+''+numcnt[i]+''; for(var j=0; j < 8;j++){ str+=''+a[i][j]+''; } str+=''; } document.getElementById(‘grade’).childNodes[0].innerHTML=str; } for(var i=0;i < userlist.length;i++) lst[i]=0; for(var i=0;i < userlist.length;i++)PARSE(true); window.setInterval(PARSE,cd);