您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
プロフィールのページに情報を追加します。
// ==UserScript== // @name AtCoderUsers // @namespace https://atcoder.jp/ // @version 0.2 // @description プロフィールのページに情報を追加します。 // @author magurofly // @match https://atcoder.jp/users/* // @grant none // ==/UserScript== (function() { 'use strict'; const user = location.pathname.split("/")[2]; const leftTable = $(".dl-table").eq(0).find("tbody"); // AtCoder Problems { const cell = $("<td>"); const group = $("<div>").addClass("btn-group"); for (const [page, title] of [["table", "Table"], ["list", "List"], ["user", "User"]]) { group.append($("<a>").addClass("btn btn-default").attr("href", `https://kenkoooo.com/atcoder/#/${page}/${user}`).text(title)); } leftTable.append($("<tr>").append($("<th>").addClass("no-break").text("Problems"), cell.append(group))); } // other statistics { const cell = $("<td>"); cell.append($("<a>").addClass("btn btn-default").attr("href", `https://atcoder-tags.herokuapp.com/graph/${user}?`).text("Tags Graph")); cell.append($("<a>").addClass("btn btn-default").attr("href", `https://atcoderapps.herokuapp.com/atcoderperformances/show_graph/?username=${user}`).text("Performances")); cell.append($("<a>").addClass("btn btn-default").attr("href", `https://atcoder-scores.herokuapp.com/?user=${user}`).text("Scores")); leftTable.append($("<tr>").append($("<th>").addClass("no-break").text("Statistics"), cell)); } })();