-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.user.js
More file actions
23 lines (21 loc) · 967 Bytes
/
Copy pathmain.user.js
File metadata and controls
23 lines (21 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// ==UserScript==
// @name AtCoder display username
// @namespace https://github.com/fk-who
// @version 0.01
// @description AtCoderで特定ユーザの提出を検索した際、タイトルにユーザー名を表示するuserscript
// @author fjkmg
// @match https://atcoder.jp/contests/*/submissions?*f.User=*
// @icon https://www.google.com/s2/favicons?sz=64&domain=atcoder.jp
// @grant none
// @updateURL https://github.com/fk-who/AtCoderDisplayUsername/raw/main/main.user.js
// @downloadURL https://github.com/fk-who/AtCoderDisplayUsername/raw/main/main.user.js
// @supportURL https://github.com/fk-who/AtCoderDisplayUsername/
// ==/UserScript==
window.addEventListener('load', ()=>{
let url = new URL(window.location.href);
let params = url.searchParams;
let user = params.get("f.User");
if (user){
document.title = document.title.replace("すべて", `${user} さん`);
}
});