Hello! Project Application Link Emphasizer

ハロプロFCサイトのお申し込みはこちらからを目立つように表示する

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

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 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        Hello! Project Application Link Emphasizer
// @namespace   https://twitter.com/LoveRuruDambara
// @version     1.1
// @description ハロプロFCサイトのお申し込みはこちらからを目立つように表示する
// @include     https://www.up-fc.jp/helloproject/news_Info.php?id=*
// @author      cumin
// @license     MIT
// ==/UserScript==
function update(elm) {
    if (elm.textContent.match(/こちら/)) {
        elm.innerHTML = '<span style="color: red; font-size: 75px; "> ' + 'こちら' + '</span>';
    }
}
 
const bTags = document.getElementsByTagName("b");
 
for (let i = 0; i < bTags.length; i++) {
    if (bTags[i].textContent.match(/お申込みは/)) {
        if(bTags[i].parentElement.tagName.toLowerCase() == 'font') {
            const fontTag = bTags[i].parentElement;
            const aTag = fontTag.nextElementSibling;
            const uTag = aTag.firstElementChild;
            const fontTag2 = uTag.firstElementChild;
            let bTag = fontTag2.firstElementChild;
            update(bTag);
        }
        else {
            const aTag = bTags[i].nextElementSibling;
            const uTag = aTag.firstElementChild;
            let bTag = uTag.firstElementChild;
            update(bTag);
        }
    }
}