注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google ChromeFirefoxMicrosoft EdgeSafari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。

$('.mw-parser-output>div').each(function(i, el) {
    if ($(el).next()[0].textContent.indexOf('MCC214') !== -1) {
        $(el).hide();
        let now = $(el).next()[0];
        while (now !== undefined && now.tagName !== 'DIV') {
            $(now).hide();
            now = $(now).next()[0];
        }
    }
});