Last active
August 29, 2015 13:58
-
-
Save AmaanC/10356448 to your computer and use it in GitHub Desktop.
Replaces all of the default identicon gravatar images on SO Chat with retro gravatar images. Click raw, and drag and drop in Extensions to install in Chrome.
This file contains hidden or 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 Retro Gravatar | |
// @author Amaan Cheval | |
// @description Use retro gravatars instead of the indenticon ones | |
// @include http://chat.stackexchange.com/rooms/* | |
// @include http://chat.stackoverflow.com/rooms/* | |
// ==/UserScript== | |
var update = function () { | |
[].forEach.call(document.querySelectorAll('.avatar > img'), function (elem) { | |
elem.src = elem.src.replace('identicon', 'retro'); | |
}); | |
}; | |
document.body.addEventListener('DOMNodeInserted', update); | |
update(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment