Greasy Fork is available in English.

可爱的CSDN

1、移除CSDN底部的登录横条 2、展开所有内容 3、移除推荐栏的广告

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         可爱的CSDN
// @namespace    http://bigto.bid/
// @version      0.4
// @include      http://blog.csdn.net/*
// @include      https://blog.csdn.net/*
// @description  1、移除CSDN底部的登录横条 2、展开所有内容 3、移除推荐栏的广告
// @author       Bigto
// @home-url     https://greatest.deepsurf.us/zh-CN/scripts/377060
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    // Your code here...
    var hostName = window.location.hostname;
    if(hostName.indexOf('csdn.net')) {
        var els = document.getElementsByClassName('pulllog-box');
        if (els && els.length > 0) {
            for (var i = 0; i < els.length; i++) {
                els[i].parentNode.removeChild(els[i]);
            }
        }
        // remove mask
        var content = document.getElementById('article_content');
        content.style.height = '';
        var hide = document.getElementsByClassName('hide-article-box hide-article-pos text-center');
        if (hide) {
            hide[0].parentElement.removeChild(hide[0]);
        }
        // remove ad
        var ad1 = document.getElementsByClassName('csdn-tracking-statistics mb8 box-shadow')
        ad1[0].parentNode.removeChild(ad1[0]);
        var ad2 = document.getElementById('479');
        if (ad2) {
            ad2.parentElement.removeChild(ad2);
        }
        // 移除推荐栏的广告  recommend-item-box recommend-ad-box
        var ad3 = document.getElementsByClassName('recommend-ad-box');
        console.log(ad3.length);
        if (ad3 && ad3.length > 0) {
            for (var j = 0; j < ad3.length; j++) {
                ad3[j].remove();
            }
            for (var k = 0; k < ad3.length; k++) {
                ad3[k].remove();
            }
        }
    }
})();