ykm_csdn_01

去除csdn 不喜欢的模块

11.09.2022 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey 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 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         ykm_csdn_01
// @namespace    https://github.com/LZHaini/test
// @version      0.1
// @description  去除csdn 不喜欢的模块
// @author       ykm
// @match        https://blog.csdn.net/*/article/details/*
// @grant        GM_addStyle
// @license MIT
// @run-at document-end
// ==/UserScript==

(function() {
    'use strict';

    GM_addStyle(`
   body{
   background:url('https://pc-index-skin.cdn.bcebos.com/1988b5343107c2fc5c130e54bebe5c47.jpg') no-repeat;
   background-repeat: no-repeat;
   background-attachment: fixed;
   background-position: center;
    }
    .programmer1Box{
        display:none;
    }
    #kp_box_479{
        display:none;
    }
    .toolbar-container-right{
        display:none;
    }
    .template-box{
        display:none;
    }
    #asideNewComments{
        display:none;
    }
    ` )
    var elem0 = document.getElementsByClassName('data-info d-flex item-tiling');
    elem0[0].parentNode.removeChild(elem0[0]);
    var elem1 = document.getElementsByClassName('aside-box-footer');
    elem1[0].parentNode.removeChild(elem1[0]);
    var elem2 = document.getElementsByClassName('aside-box common-nps-box');
    elem2[0].parentNode.removeChild(elem2[0]);
    var elem3 = document.getElementsByClassName('archive-box');
    elem3[0].parentNode.removeChild(elem3[0]);
    var _li = document.getElementById('recommendNps');
    _li.parentNode.removeChild(_li);
    var elem4 = document.getElementsByClassName('csdn-side-toolbar');
    elem4[0].parentNode.removeChild(elem4[0]);

})();