旧AtCoderからbetaAtCoderに移るtampermonkey用スクリプトです。
上の方に変なのが見えるようになります。
使えればよし精神を大事にしていこうな(逃げ)
僕にはこれが限界なので、もっと良いのを誰か作って。
追記>Luzhiledさんが作ってくれた。ありがとうございます。
Luzhiled's page
↓僕の (Luzhiledさんのを使うのがおススメですが、一応残しておきます)
// ==UserScript==
// @name old atcoder to new atcoder
// @namespace https://twitter.com/eiya5498513
// @version 1.0
// @description ja
// @author eiya
// @match http://*.contest.atcoder.jp/*
// @match https://*.contest.atcoder.jp/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
const url = location.href.replace(/\/&/, "");
const contest_name = url.replace(/^https?:\/\//,'').split('.')[0];
const end_name = url.replace(/^https?:\/\/.+\.contest\.atcoder\.jp\/?/,'');
const beta_url = "https://beta.atcoder.jp/contests/"+contest_name + "\/" + end_name;
const style = /font-family:Helvetica Neue, Helvetica, Arial,sans-serif;font-size:200%;/;
const beta_html_text = "<div style=\"" + style + "\"><a href=\""+ beta_url + "\">beta版</a></div>";
$('div.container').append(beta_html_text);
})();動作図
