Hello! Project Application Link Emphasizer

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

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        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);
        }
    }
}