X Twitter Old Icon Darkmode

Changes the new dumb X icon back to the old twitter icon.

// ==UserScript==
// @name        X Twitter Old Icon Darkmode
// @namespace   https://drtaru.xyz/
// @match       https://twitter.com/*
// @match       https://mobile.twitter.com/*
// @grant       GM_addStyle
// @grant       GM_xmlhttpRequest
// @connect     https://i.imgur.com/yOg646V.png
// @version     1.0
// @author      DrTaru
// @license     MIT
// @description Changes the new dumb X icon back to the old twitter icon.
// ==/UserScript==

GM_xmlhttpRequest({
  url: `https://i.imgur.com/yOg646V.png`,
  responseType: "blob",
  onload: response => {
    console.log(response)
    GM_addStyle(`header h1 > a[href="/home"] > div { background-size: 30px; background-position: center; background-repeat: no-repeat; background-image: url(${URL.createObjectURL(response.response)}) }`)
  }
})

GM_addStyle(`
header h1 > a[href="/home"] > div > svg { opacity: 0; }
`)

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址