Time Limit Emphasizer

AtCoderで問題の実行時間制限が2 secでない場合にちょっと主張を激しくする。

Pada tanggal 01 Agustus 2020. Lihat %(latest_version_link).

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        Time Limit Emphasizer
// @namespace   https://github.com/Ogtsn99
// @version      1.2
// @description AtCoderで問題の実行時間制限が2 secでない場合にちょっと主張を激しくする。
// @include     https://atcoder.jp/contests/*/tasks/*
// @auther Ogtsn99
// ==/UserScript==
var pTags = document.getElementsByTagName("p");
var length = pTags.length;
for (var i = 0; i < length; i++) {
  if (pTags[i].textContent.match(/実行時間制限:.*メモリ制限:.*/)) {
    var str = pTags[i].textContent.split(' ');
    if(str[1] !== '2'){
        pTags[i].innerHTML = str[0] + '<span style="color: red; font-size: 28px; "> ' + str[1] + '</span>' + ' ' + str[2] + ' ' + str[3] + ' ' + str[4] + ' ' + str[5] + ' ' + str[6];
    }
    break;
  }
}