Skip to content

Instantly share code, notes, and snippets.

@osak
Created November 15, 2013 08:20
Show Gist options
  • Save osak/7480919 to your computer and use it in GitHub Desktop.
Save osak/7480919 to your computer and use it in GitHub Desktop.
Virtual ArenaでもC++11が使いたい!
// ==UserScript==
// @name Virtual Arena C++11 Support
// @namespace http://www.osak.jp/
// @description Add C++ in language selection box
// @include http://rhodon.u-aizu.ac.jp:8080/arena/room.jsp?id=*
// @version 1.0
// @grant none
// ==/UserScript==
function addCpp11() {
var select = document.querySelector("select");
select.innerHTML += "<option value=\"C++11\">C++11</option>";
}
addCpp11();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment