W1ns / Sigma - Unlock Export Report Check

// ==UserScript==
// @name         Sigma - Unlock Export Report Check
// @namespace    https://cloud.sigma.ru/
// @version      0.1
// @description  Unlocking the ability to export a report on a sold product
// @author       W1ns
// @match        https://cloud.sigma.ru/sales/check*
// @license      MIT
// @grant        none
// ==/UserScript==

function unlock() {
  var drop = document.querySelectorAll('div[data-tooltip-placement="bottom"]');
  var but = document.querySelector('div.dropdownDisabled > div.exportWrapper > button');
  var sp = document.querySelector('div.dropdownDisabled > div.exportWrapper > span');
  drop[0].classList.remove('dropdownDisabled');
  drop[0].removeChild(drop[0].firstChild);
  but.classList.remove('button_disabled');
  sp.style.display = "none";
}

setTimeout(unlock, 2000);