Created
July 25, 2023 16:30
-
-
Save qatoqat/e0f5dbcdd63dc526bcdb04f28e97b4af to your computer and use it in GitHub Desktop.
Bird Favicon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Change Favicon | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Change to original bird favicon. | |
// @author You | |
// @match https://*.twitter.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
var link = document.querySelector("link[rel~='icon']"); | |
if (!link) { | |
link = document.createElement('link'); | |
link.rel = 'icon'; | |
document.head.appendChild(link); | |
} | |
link.href = 'https://abs.twimg.com/favicons/favicon.ico'; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment