您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
brings back the old 2013 youtube favicon
// ==UserScript== // @name 2013 youtube favicon restored // @namespace http://youtube.com // @version 1.2.1 // @description brings back the old 2013 youtube favicon // @match *://www.youtube.com/* // @match *://studio.youtube.com/* // @require https://code.jquery.com/jquery-3.6.0.min.js // @icon http://s.ytimg.com/yts/img/favicon_32-vflWoMFGx.png // @license MIT // ==/UserScript== (function() { 'use strict'; // Replace the href attribute with the URL of your custom YouTube favicon. const FaviconURL = 'https://www.eracast.cc/favicon.ico'; // Creates a new favicon element. const link = document.createElement('link'); link.rel = 'icon'; link.href = FaviconURL; link.type = 'image/x-icon'; // Finds the existing favicon element (if any) and removes it. const existingFavicon = document.querySelector('link[rel="icon"]'); if (existingFavicon) { existingFavicon.remove(); } // Adds a new favicon element to the document's head. document.head.appendChild(link); })();