Last active
December 31, 2025 22:29
-
-
Save p3g4asus/09a227f7af30e4b38a0bed703b441fe4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name AutoReload player | |
| // @namespace https://github.com/p3g4asus | |
| // @version 0.4 | |
| // @description Auto reload twitch player when asked | |
| // @author p3g4asus | |
| // @match https://www.twitch.tv/* | |
| // @match https://twitch.tv/* | |
| // @require https://code.jquery.com/jquery-3.7.1.min.js | |
| // @icon https://www.citypng.com/public/uploads/preview/hd-twitch-official-icon-symbol-transparent-background-png-701751695118259w7neomgqo3.png | |
| // @updateURL https://gist.github.com/p3g4asus/09a227f7af30e4b38a0bed703b441fe4/raw/twitch_auto_reload_player.js | |
| // @downloadURL https://gist.github.com/p3g4asus/09a227f7af30e4b38a0bed703b441fe4/raw/twitch_auto_reload_player.js | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| let jq = jQuery.noConflict(); | |
| setInterval(() => { | |
| let jqo = jq('div[data-a-target="tw-core-button-label-text"]:contains("Reload Player")'); | |
| console.log('Inside ' + jqo.length); | |
| jqo.click(); | |
| }, 10000); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment