Skip to content

Instantly share code, notes, and snippets.

@musaprg
Last active May 23, 2019 08:42
Show Gist options
  • Save musaprg/0cecc3d3705e77ac9f337eb378cde894 to your computer and use it in GitHub Desktop.
Save musaprg/0cecc3d3705e77ac9f337eb378cde894 to your computer and use it in GitHub Desktop.
AOJ-ICPCから直接AOJv2.0へ飛べるようにするスクリプト
// ==UserScript==
// @name Use AOJv2.0 in AOJ-ICPC
// @namespace musaprg
// @version 0.1.3
// @description try to take over the world!
// @author Kotaro Inoue <[email protected]>
// @match http://aoj-icpc.ichyo.jp/*
// @grant none
// @updateURL https://gist.githubusercontent.com/musaprg/0cecc3d3705e77ac9f337eb378cde894/raw/user.js
// ==/UserScript==
(function() {
'use strict';
// Your code here...
document.body.innerHTML = document.body.innerHTML.replace(/http:\/\/judge.u-aizu.ac.jp\/onlinejudge\/description.jsp\?id=(\d+).*"/g, 'https://onlinejudge.u-aizu.ac.jp/challenges/sources/%5E/%5E/$1"');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment