Script to change steam favicon to the old icon what I base this off of https://greasyfork.org/en/scripts/481559-use-old-reddit-favicon works perfectly with https://greasyfork.org/en/scripts/496491-2009-to-2017-steam-header
目前為
// ==UserScript==
// @name ??-?? STEAM FAVICON
// @version 2.6
// @description Script to change steam favicon to the old icon what I base this off of https://greasyfork.org/en/scripts/481559-use-old-reddit-favicon works perfectly with https://greasyfork.org/en/scripts/496491-2009-to-2017-steam-header
// @author ...
// @match https://store.steampowered.com/*
// @match https://steamcommunity.com/*
// @namespace https://store.steampowered.com/
// ==/UserScript==
let newfav = `https://cdn-contributor.flaticon.com/packs/110/110549/110549226/13240/13240125/13240132.svg?t=st=1717023494~exp=1717024394~hmac=2d28310d4224a6e63f82f6e2c31967f35979de5aa3c8db81b5087c52a666cffehttps://cdn-contributor.flaticon.com/packs/110/110549/110549226/13240/13240125/13240132.svg?t=st=1717023494~exp=1717024394~hmac=2d28310d4224a6e63f82f6e2c31967f35979de5aa3c8db81b5087c52a666cffe`;
// "beyond this line" etc etc
window.addEventListener('load', () => {
var icon = [...document.querySelectorAll('link[rel~="icon"]')];
var copy = icon[0].cloneNode(true);
copy.href = newfav;
icon.map(x=>x.parentNode.removeChild(x));
document.head.appendChild(copy);
}, false);