AtCoder Editorial New Tab

AtCoderの問題ページにある解説ボタンを新規タブで開くようにします。

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         AtCoder Editorial New Tab
// @namespace    https://github.com/HalsSC/
// @version      0.4
// @description  AtCoderの問題ページにある解説ボタンを新規タブで開くようにします。
// @author       HalsSC
// @match        https://atcoder.jp/contests/*/tasks/*
// @exclude      https://atcoder.jp/contests/*/tasks/*/editorial
// @license      MIT
// ==/UserScript==

(function() {
    // 一部の変なコンテストや将来的な仕様変更により使えないかもしれないです><
    var ele=document.getElementsByClassName("btn btn-default btn-sm")[0];
    ele.target="_blank";
    ele.rel="noopener noreferrer";
})();