Fireblend / Era Avatar Improvement

// ==UserScript==
// @name        Era Avatar Improvement
// @version     1
// @namespace   http://www.fireblend.com/
// @license     MIT
// @icon        https://media.discordapp.net/attachments/165286383257255936/429860317649174529/imageedit__4571108207.png
// @homepageURL http://www.fireblend.com/
// @author      Sergio Morales
// @description Makes avatars in Era threads much, much better.
// @include     http*://www.resetera.com/threads/*
// @include     http*://www.resetera.com/threads/*/*
// @require     https://code.jquery.com/ui/1.12.1/jquery-ui.js
// @resource    customCSS https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css
// @run-at      document-idle
// ==/UserScript==

(function () {
  'use strict';

  function improveAvatars() {
    var locations = document.getElementsByClassName("message-cell message-cell--user")
    Array.prototype.forEach.call(locations, function (location) {
      var img = new Image();
      img.onload = function () {
        location.appendChild(img);
      };
      img.src = "https://i.imgur.com/DvkwhiY.png";
      img.style.width = "80px";
      img.style.height = "80px";
      img.style.position = "absolute";
      img.style.top = "20px";
      img.style.left = "30px";
    });

  }

  improveAvatars();
})();