amcui / tradingview old favicon

// ==UserScript==
// @name     tradingview old favicon
// @version  1.1
// @grant    none
// @author   amcui
// @copyright 2021, amcui (https://openuserjs.org/users/amcui)
// @license MIT
// @description  tradingview favicon chenger
// @match    https://*.tradingview.com/*
// ==/UserScript==

window.addEventListener('load', function () {
  var link = document.querySelector("link[rel~='icon']");
  if (!link) {
    link = document.createElement('link');
    link.rel = 'icon';
    document.getElementsByTagName('head')[0].appendChild(link);
  }
  link.href = 'https://user-images.githubusercontent.com/5462382/34194562-e3b467fe-e51e-11e7-9b91-1759cf466ea9.png'; //You can replace it with your own desired image link
}, false)