Warning: fopen(/www/sites/update.greasyfork.icu/index/store/temp/1f0901ba809c7ba7285888c27e36b4ae.js): failed to open stream: No space left on device in /www/sites/update.greasyfork.icu/index/scriptControl.php on line 65
// ==UserScript==
// @license MIT
// @name CodeforcesRankParse
// @namespace http://tampermonkey.net/
// @version v0.1
// @description 用于OJ的排名解析,传递至后台处理
// @author chenyyy28
// @match https://codeforces.com/*/standings/*
// @match https://codeforces.com/*/standings
// @match https://codeforc.es/*/standings/*
// @match https://codeforc.es/*/standings
// @grant GM_xmlhttpRequest
// @grant GM_download
// @downloadURL https://update.greasyfork.icu/scripts/534383/CodeforcesRankParse.user.js
// @updateURL https://update.greasyfork.icu/scripts/534383/CodeforcesRankParse.meta.js
// ==/UserScript==
(function() {
'use strict';
var button = document.createElement("button"); //创建一个按钮
button.textContent = "解析排名"; //按钮内容
//button.style.width = "50px"; //按钮宽度
button.style.height = "17px"; //按钮高度
button.style.align = "center"; //文本居中
//button.style.background = "#e33e33"; //按钮底色
button.style.border = "1px solid black"; //边框属性
button.style.borderRadius = "4px"; //按钮四个角弧度
button.style.cursor = "pointer"
button.addEventListener("click", getRank) //监听按钮点击事件
let testNode = document.createElement("div")
testNode.style.height = "100%"
testNode.style.backgroundColor = "green"
testNode.innerHTML = "测试标题
"
function getRank(){
let standings = document.querySelector(".standings tbody")
let problemNum = document.querySelector(".standings tr:nth-child(1)").children.length-4
let rank = []
let account = []
let accept = []
let accountMap = new Map()
for(let i = 1;i