ndp shut up

only show name in ndp panel

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

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

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name         ndp shut up
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  only show name in ndp panel
// @author       Leifeng
// @include      /https?\:\/\/ndp\.netease\.com/index-new*/
// @require      https://code.jquery.com/jquery-latest.js
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    if (!/overview/.test(location.hash) )  {
        return;
    };

    $(document).ready(function(){
        $('.u-linear-layout_FaugwXHe.index_module_r1smFo39').hide();
        $('[class^="index_title_"]').hide();
        $('.u-collect_noData_2l86Hu9q').hide();
        $('.u-key-value_title_2cAXsihI').hide()
        $('.u-key-value_colon_2cAXsihI').hide()
        $('.u-collect_message_2l86Hu9q').map((idx, it) => {
            $($(it).find('.u-key-value_2cAXsihI')[0]).hide();
        })
        $('table tr th').removeAttr('width')
        $('table').map((idx, table) => {
            $(table).find('tr').map((idx, trEle) => {
                $(trEle).find('td:eq(1)').hide();
                $(trEle).find('th:eq(1)').hide();

                $(trEle).find('td:eq(2)').hide();
                $(trEle).find('th:eq(2)').hide();

                $(trEle).find('td:eq(3)').hide();
                $(trEle).find('th:eq(3)').hide();

                $(trEle).find('td:eq(5)').hide();
                $(trEle).find('th:eq(5)').hide();
            })
        })
        // $('#app').hide();
        // var items = [];
        // $('[class^="u-collect_"]').map((index, collect) => {
        //     var link = $(collect).find('[class^="u-link__"]')[1];
        //     if(link) {
        //         var name = link.innerHTML;
        //         var href = link.hash;
        //         items.push(`<p><a href=${href} target="_blank" class="u-link__4y3hmbp">${name}</a></p>`);
        //     }
        // });
        // $('body').append(items)
    });
})();