Last active
February 9, 2026 10:02
-
-
Save Kurotaku-sama/d9756df6bac5572076b04984b9e09dd4 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 giveaway channel streams | |
| // @namespace https://kurotaku.de | |
| // @version 1.7.2.1 | |
| // @description Auto reloads the page after a certain amount of time has passed to prevent stream freezing/crashing | |
| // @author Kurotaku | |
| // @license CC BY-NC-SA 4.0 | |
| // @include https://www.twitch.tv/hitsquad* | |
| // @include https://www.twitch.tv/thegiftingchannel | |
| // @include https://www.twitch.tv/staggerrilla | |
| // @include https://www.twitch.tv/wolflemon | |
| // @icon https://static.twitchcdn.net/assets/favicon-32-e29e246c157142c94346.png | |
| // @updateURL https://gist.github.com/Kurotaku-sama/d9756df6bac5572076b04984b9e09dd4/raw/Autoreload%2520giveaway%2520channel%2520streams.user.js | |
| // @downloadURL https://gist.github.com/Kurotaku-sama/d9756df6bac5572076b04984b9e09dd4/raw/Autoreload%2520giveaway%2520channel%2520streams.user.js | |
| // @require https://gist.github.com/Kurotaku-sama/1a7dcb227ce3d7a1b596afe725c0052a/raw/kuros_library.js | |
| // @require https://cdn.jsdelivr.net/npm/sweetalert2 | |
| // @require https://openuserjs.org/src/libs/sizzle/GM_config.js | |
| // @grant GM_getValue | |
| // @grant GM_setValue | |
| // @grant GM_addStyle | |
| // @grant GM_registerMenuCommand | |
| // ==/UserScript== | |
| const update_url = "https://raw.githubusercontent.com/Kurotaku-sama/Userscripts/main/userscripts/Autoreload_Streams/script.user.js"; | |
| const github_url = "https://github.com/Kurotaku-sama/Userscripts"; | |
| const landing_page = "https://kurotaku-sama.github.io/Userscripts/"; | |
| (async function() { | |
| Swal.fire({ | |
| title: 'Action Required: Script Migration', | |
| html: ` | |
| <div> | |
| <p><strong>Script: ${GM_info.script.name}</strong></p> | |
| <p>Thank you for using my script! Important changes are happening.</p> | |
| <hr class="k-separator"> | |
| <p style="color: #ff4d4d; font-weight: bold;">ATTENTION: This script has been renamed and moved because the new version has a lot of new features and improvements!</p> | |
| <p class="k-info-text"> | |
| To keep receiving updates and new features, you <b>must</b> take two simple steps: | |
| </p> | |
| <ol class="k-info-text" style="text-align: left; display: inline-block;"> | |
| <li><b>Install</b> the new version from GitHub using the button below.</li> | |
| <li><b>Uninstall/Delete</b> this old version from your script manager (Tampermonkey/Violentmonkey) to avoid conflicts.</li> | |
| </ol> | |
| <div class="k-update-container"> | |
| <a href="${update_url}" target="_blank" class="k-fancy-button"> | |
| <span class="k-fancy-shine"></span> | |
| Install New Version via GitHub | |
| </a> | |
| </div> | |
| <div class="k-link-list"> | |
| <strong>Find all my scripts here:</strong><br> | |
| 🌐 <a href="${landing_page}" target="_blank">Project Website</a><br> | |
| 📂 <a href="${github_url}" target="_blank">GitHub Repository</a> | |
| </div> | |
| <p class="k-star-hint">If you like my work, please leave a ⭐ on GitHub!</p> | |
| <p class="k-footer-note"> | |
| Note: This version is now <b>deprecated</b>. Please switch to the new one to ensure everything works correctly. | |
| </p> | |
| </div> | |
| `, | |
| icon: 'warning', | |
| theme: "dark", | |
| showConfirmButton: false, | |
| showCloseButton: true, | |
| backdrop: true | |
| }); | |
| })(); | |
| GM_addStyle(` | |
| /* Hier habe ich nichts am Layout geändert, wie gewünscht */ | |
| .k-separator { | |
| border: 0; | |
| border-top: 1px dashed #555; | |
| margin: 15px 0; | |
| } | |
| .k-update-container { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 15px; | |
| margin-top: 20px; | |
| } | |
| .k-fancy-button { | |
| position: relative; | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| text-decoration: none; | |
| background: linear-gradient(135deg, #6a1292, #c850c0); | |
| border-radius: 12px; | |
| padding: 10px 20px; | |
| color: white !important; | |
| font-size: 13px; | |
| font-family: "Segoe UI", sans-serif; | |
| font-weight: bold; | |
| box-shadow: 0 10px 20px rgba(0,0,0,0.2); | |
| transition: transform 0.3s ease, box-shadow 0.3s ease; | |
| overflow: hidden; | |
| border: none; | |
| cursor: pointer; | |
| } | |
| .k-fancy-button:hover { | |
| transform: translateY(-4px) scale(1.03) rotateX(5deg); | |
| box-shadow: 0 12px 24px rgba(0,0,0,0.25); | |
| text-decoration: none; | |
| color: white !important; | |
| } | |
| .k-fancy-shine { | |
| position: absolute; | |
| top: -50%; | |
| left: -50%; | |
| width: 200%; | |
| height: 200%; | |
| background: linear-gradient(120deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%); | |
| transform: rotate(25deg); | |
| pointer-events: none; | |
| animation: k_shine 3s infinite linear; | |
| } | |
| @keyframes k_shine { | |
| 0% { transform: translateX(-100%) rotate(25deg); } | |
| 100% { transform: translateX(100%) rotate(25deg); } | |
| } | |
| .k-info-text { | |
| font-size: 14px; | |
| line-height: 1.6; | |
| color: #ccc; | |
| margin-top: 10px; | |
| } | |
| .k-link-list { | |
| margin-top: 15px; | |
| padding: 10px; | |
| background: rgba(255,255,255,0.05); | |
| border-radius: 8px; | |
| text-align: center; | |
| } | |
| .k-link-list a { | |
| color: #00c6ff; | |
| text-decoration: none; | |
| } | |
| .k-link-list a:hover { | |
| text-decoration: underline; | |
| } | |
| .k-star-hint { | |
| margin-top: 15px; | |
| font-size: 13px; | |
| text-align: center; | |
| } | |
| .k-footer-note { | |
| font-size: 11px; | |
| color: #888; | |
| margin-top: 20px; | |
| text-align: center; | |
| } | |
| `); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment