Forked from EverfreeFaerie/twitter-rect-avatars.user.js
Last active
December 17, 2017 10:09
-
-
Save PhilippIRL/386ef2d63a3269469848525478ca7ddf to your computer and use it in GitHub Desktop.
Twitter: Rectangular avatars
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 Twitter: Rectangular avatars | |
// @name:de Twitter: Rechteckige Avatare | |
// @include *://twitter.com/* | |
// @include *://tweetdeck.twitter.com/* | |
// @include *://analytics.twitter.com/* | |
// @author xThunderbolt, PplusS | |
// ==/UserScript== | |
function addGlobalStyle(css) { | |
var head, style; | |
head = document.getElementsByTagName('head')[0]; | |
if (!head) { return; } | |
style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.innerHTML = css; | |
head.appendChild(style); | |
} | |
addGlobalStyle('.avatar, .Avatar, .ProfileAvatar-image , .profile-picture, .profileAvatar-container, .ProfileAvatar, .DashboardProfileCard-avatarImage, .ProfileCard-avatarLink, .ProfileCard-avatarImage, .ProfileCardMini-avatarImage { border-radius: 3% !important; } .nav .session .dropdown-toggle { border-radius: 3% !important; } .Gallery.with-tweet.without-tweet .Gallery-media { border-radius: 0% !important; }'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment