Garfield-Lzanya / Gas Chat Image upload

// ==UserScript==
// @name         Gas Chat Image upload
// @namespace    https://gasdigitalnetwork.com/
// @version      0.1
// @description  Restores image uploading in the GaS Digital chat
// @author       Garfield-Lzanya
// @match        https://service20.rumbletalk.net/LNisN6M8/*
// @grant        none
// @run-at document-idle
// @license MIT
// ==/UserScript==

(function () {
  'use strict';
  var readyCheck = setInterval(
    function () {
      //console.log("Checking for chat elements");
      var smiley = document.getElementById("smiley");
      if (smiley) {
        clearInterval(readyCheck);
        window.cfg.uploadAdmin = 0;
        window.uploader.updateValidities();
        window.skin.draw();
        //console.log("done");
      }
    }, 100);
})();