No CSDN Download

隐藏 CSDN 博客下方推荐列表中的 download.csdn.net 和 wenku.csdn.net 链接

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ==UserStyle==
@name           No CSDN Download
@namespace      no_csdn_download
@version        0.1.0
@description    隐藏 CSDN 博客下方推荐列表中的 download.csdn.net 和 wenku.csdn.net 链接
@author         lingbopro
@license        WTFPL
@preprocessor   stylus
@var checkbox hide_download "隐藏下载(download.csdn.net)" 1
@var checkbox hide_wenku "隐藏文库(wenku.csdn.net)" 1
==/UserStyle== */
@-moz-document domain("blog.csdn.net") {
    .recommend-box {
        if (hide_download) {
            .recommend-item-box:has(a[href^='https://download.csdn.net']),
            .recommend-item-box.type_download {
                display: none;
            }
        }

        if (hide_wenku) {
            .recommend-item-box:has(a[href^='https://wenku.csdn.net']),
            .recommend-item-box type_c_download {
                display: none;
            }
        }
    }
}