AtCoder D is for DP

D問題をDP問題にします(問題ページのみ)

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name        AtCoder D is for DP
// @namespace   http://tampermonkey.net/
// @version     1.0
// @description D問題をDP問題にします(問題ページのみ)
// @author      arad
// @match       https://atcoder.jp/contests/*/tasks/*
// @license     MIT
// ==/UserScript==

var h2s = document.getElementsByClassName('h2');
var length = h2s.length;
for(var i = 0;i < length;i++){
    if(h2s[i].textContent.substring(4,5) === 'D'){
       h2s[i].innerHTML = h2s[i].innerHTML.replace('D - ','DP - ');
    }
}