Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PhilippIRL/386ef2d63a3269469848525478ca7ddf to your computer and use it in GitHub Desktop.
Save PhilippIRL/386ef2d63a3269469848525478ca7ddf to your computer and use it in GitHub Desktop.
Twitter: Rectangular avatars
// ==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