Created
August 2, 2023 19:23
-
-
Save pcchou/b9a8adeca40cb64c01f5cca6cf6c9498 to your computer and use it in GitHub Desktop.
Replaces X to Twitter on twitter.com
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
.css-1dbjc4n.r-1pi2tsx.r-1wtj0ep.r-1rnoaur.r-1pn2ns4.r-o96wvk div.css-1dbjc4n.r-xoduu5 > .css-901oao.css-16my406.r-poiln3.r-bcqeeo.r-qvutc0 > .css-901oao.css-16my406.r-poiln3.r-bcqeeo.r-qvutc0 { | |
/* display: none; */ | |
display: inline-block; | |
overflow: hidden; | |
text-indent: -9999px; | |
padding-top: 4px; | |
} | |
.css-1dbjc4n.r-1pi2tsx.r-1wtj0ep.r-1rnoaur.r-1pn2ns4.r-o96wvk div.css-1dbjc4n.r-xoduu5 > .css-901oao.css-16my406.r-poiln3.r-bcqeeo.r-qvutc0 > .css-901oao.css-16my406.r-poiln3.r-bcqeeo.r-qvutc0::before { | |
content: "推文"; | |
float: left; | |
text-indent: 0; | |
} | |
.css-901oao.r-1awozwy.r-jwli3a.r-6koalj.r-18u37iz.r-16y2uox.r-37j5jr.r-a023e6.r-b88u0q.r-1777fci.r-rjixqe.r-bcqeeo.r-q4m81j.r-qvutc0 span.css-901oao.css-16my406.r-poiln3.r-bcqeeo.r-qvutc0::before { | |
content: "推文"; | |
float: left; | |
text-indent: 0; | |
padding-top: 6px; | |
} | |
.css-901oao.r-1awozwy.r-jwli3a.r-6koalj.r-18u37iz.r-16y2uox.r-37j5jr.r-a023e6.r-b88u0q.r-1777fci.r-rjixqe.r-bcqeeo.r-q4m81j.r-qvutc0 span.css-901oao.css-16my406.r-poiln3.r-bcqeeo.r-qvutc0 { | |
display: inline-block; | |
overflow: hidden; | |
text-indent: -9999px; | |
} |
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
var link = document.querySelector("link[rel~='icon']"); | |
if (!link) { | |
link = document.createElement('link'); | |
link.rel = 'icon'; | |
document.head.appendChild(link); | |
} | |
link.href = 'https://twitter.com/favicon.ico'; | |
setInterval(function () {document.title = document.title.replace(' / X', ' / Twitter');}, 200) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment