Created
December 17, 2017 17:45
-
-
Save PhilippIRL/784f79de494ec679654668eb43f42e71 to your computer and use it in GitHub Desktop.
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 WhatsApp Web: Rectangular avatars | |
// @name:de WhatsApp Web: Rechteckige Avatare | |
// @author PplusS | |
// @match *://web.whatsapp.com/* | |
// ==/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-image, .avatar { border-radius: 3% !important; }"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
WhatsApp changed their class names. (they are probably randomized, but this works for me now.)