Warning: fopen(/www/sites/update.greasyfork.icu/index/store/temp/e39a1a8d068359886e8e5c6e7b490af3.js): failed to open stream: No space left on device in /www/sites/update.greasyfork.icu/index/scriptControl.php on line 65
// ==UserScript==
// @name Steam Broadcast PopOut Video Auto Close
// @namespace http://tampermonkey.net/
// @version 1.4
// @description Steam Broadcast[Live] PopOut[PopUp] Video Auto Close (Broadcast On Top Of the Page would be fine, Only PopOut Window Closed). Steam 广播[直播]悬浮窗自动关闭 (页面顶部的直播会继续,只关闭悬浮窗)
// @author Martin______X
// @match https://store.steampowered.com/app/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=steampowered.com
// @grant none
// @license MIT
// @downloadURL https://update.greasyfork.icu/scripts/485761/Steam%20Broadcast%20PopOut%20Video%20Auto%20Close.user.js
// @updateURL https://update.greasyfork.icu/scripts/485761/Steam%20Broadcast%20PopOut%20Video%20Auto%20Close.meta.js
// ==/UserScript==
const closeBtnClick = (async (button)=>{
button.click();
});
const popOutVideoCloseInterval = setInterval(() => {
let close_btn = document.getElementsByClassName("broadcast_embeddable_PopOutVideoCloseButton_W4fRn")[0];
if (close_btn) {
closeBtnClick(close_btn);
}
}, 1);