Hello! Project Application Link Emphasizer

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

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