YT - Restore red favicon

Replace the pink icons with the real red icons

// ==UserScript==
// @name         YT - Restore red favicon
// @namespace    https://github.com/Procyon-b
// @version      1.0
// @description  Replace the pink icons with the real red icons
// @author       Achernar
// @match        https://www.youtube.com/*
// @grant        none
// @run-at  document-start
// ==/UserScript==

(function() {
"use strict";

if (document.readyState != 'loading') init();
else {
  document.addEventListener('DOMContentLoaded', init);
  window.addEventListener('load', init);
  }
var inited=0;
function init() {
  if (inited++) return;
  var f=document.querySelectorAll('html > head > link[rel*="icon"]');
  for (let i=0, e; e=f[i]; i++) {
    e.href=e.href.replace( /(\/desktop\/........\/img\/)logos\//, '$1');
    }
  }

})();