// ==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 = "