Old Cnblogs Favicon Back

Replace specific favicon with a old one on cnblogs.

29.08.2025 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.

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 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         Old Cnblogs Favicon Back
// @namespace    http://tampermonkey.net/
// @version      1.0.1
// @description  Replace specific favicon with a old one on cnblogs.
// @author       aspen138
// @icon         https://assets.cnblogs.com/favicon_v3_preview.ico?v=1
// @match        *://*.cnblogs.com/*
// @grant        none
// @run-at       document-start
// @license      MIT
// ==/UserScript==


const FAVICON_URL_V3 = 'https://assets.cnblogs.com/favicon_v3_preview.ico?v=1';
const FAVICON_URL_COMMON = 'https://common.cnblogs.com/favicon.svg';
const FAVICON_URL_V3P2 = 'https://assets.cnblogs.com/favicon_v3_2.ico';

(function() {
    'use strict';

    // Identify the favicon element by its rel="icon" attribute
    var favicon = document.querySelector('link[rel="icon"]');

    // Check if the favicon exists
    if (favicon) {
        // Replace the href attribute with the new favicon URL
        favicon.href = FAVICON_URL_V3;
    }
})();