您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
When you click the affiliation, go to the ranking page (everyone who has the same affiliation appears only)
- // ==UserScript==
- // @name atcoder-affiliation-finder
- // @namespace https://twitter.com/_TTJR_
- // @version 0.22
- // @description When you click the affiliation, go to the ranking page (everyone who has the same affiliation appears only)
- // @author tsutaj
- // @match https://atcoder.jp/users/*
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- const linkHeader = 'https://atcoder.jp/ranking?f.Affiliation=';
- const trs = document.querySelectorAll('.dl-table tr');
- trs.forEach(function(tr) {
- if(tr.innerText.search('所属') !== -1 || tr.innerText.search('Affiliation') !== -1) {
- const affiliation = tr.childNodes[1].innerText;
- const link = linkHeader + encodeURIComponent(affiliation);
- tr.childNodes[1].innerHTML = '<a href=' + link + '>' + affiliation + '</a>';
- }
- });
- })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址