Skip to content

Instantly share code, notes, and snippets.

@arturo182
Last active May 17, 2024 15:57
Show Gist options
  • Save arturo182/e488bbb641c906143930a97c9438b696 to your computer and use it in GitHub Desktop.
Save arturo182/e488bbb641c906143930a97c9438b696 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Proper Twitter Favicon
// @author arturo182
// @version 0.1.0
// @description Bring back the Twitter favicon
// @match https://twitter.com/*
// @match https://mobile.twitter.com/*
// @match https://x.com/*
// @match https://mobile.x.com/*
// @updateURL https://gist.github.com/arturo182/e488bbb641c906143930a97c9438b696/raw/twitter-favicon.user.js
// @downloadURL https://gist.github.com/arturo182/e488bbb641c906143930a97c9438b696/raw/twitter-favicon.user.js
// ==/UserScript==
window.addEventListener('load', function()
{
var icon = document.querySelector('link[rel~="icon"]');
icon.href = "https://abs.twimg.com/favicons/twitter.2.ico";
}, false);
@arturo182
Copy link
Author

To use, make sure you have a userscript manager installed and click the Raw button in the top right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment