您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Reloads a Twitch page to check if stream is live, time settings are UTC and set for the Boston 2018 CS:GO Major start times.
当前为
// ==UserScript== // @name Reload Twitch // @version 0.42 // @description Reloads a Twitch page to check if stream is live, time settings are UTC and set for the Boston 2018 CS:GO Major start times. // @author LaminatedSteel // @include https://www.twitch.tv/* // @run-at document-idle // @noframes // @grant window.reload // @namespace https://gf.qytechs.cn/users/141414 // ==/UserScript== (function() { 'use strict'; setInterval(function() { reloadTwitch(15, 19); reloadTwitch(15, 20); reloadTwitch(15, 21); reloadTwitch(15, 22); reloadTwitch(15, 26); reloadTwitch(15, 27); reloadTwitch(19, 28); }, 300000); })(); function reloadTwitch(utcHours, utcDayOfMonth) { //If for some reason the player itself hasn't loaded, refresh the page if (!document.getElementsByClassName('video-player__container')[0]) { window.location.reload(true); } //If there is an error on the player, refresh the page if (document.getElementsByClassName('video-player__container')[0].getAttribute('data-screen') == "error") { window.location.reload(true); } var now = new Date(); var isAfterStartTimeOnCorrectDay = (now.getUTCDate() == utcDayOfMonth && now.getUTCHours() >= utcHours); if (isAfterStartTimeOnCorrectDay && ((document.getElementsByClassName('video-player__container')[0].getAttribute('data-ended') == "true") || (document.getElementsByClassName('player-streamstatus__label')[0].innerHTML == "Offline"))) { window.location.reload(true); } }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址