steampowered.com - Auto close LIVE broadcast

Closes LIVE broadcast on Steam after page load

// ==UserScript==
// @name         steampowered.com - Auto close LIVE broadcast
// @namespace    https://greasyfork.org/en/users/221281-klaufir
// @version      1.2
// @description  Closes LIVE broadcast on Steam after page load
// @author       klaufir
// @license      MIT
// @match        https://store.steampowered.com/app/*
// @grant        none
// ==/UserScript==

function closeLiveBroadcast() {
  Array.from(document.querySelectorAll('div'))
      .filter(e => getComputedStyle(e)['background-image']?.includes('collapse'))
      .map(e => e?.click());
}

for(var i = 1; i <= 5; i*=2) {
  setTimeout(closeLiveBroadcast, i*2000);
}