Instantly share code, notes, and snippets.
Last active
February 9, 2026 09:54
-
Star
7
(7)
You must be signed in to star a gist -
Fork
1
(1)
You must be signed in to fork a gist
-
-
Save Kurotaku-sama/bf8fef7e64b6954d6fad35f3682acc5e 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 Twitch hitsquadgodfather command buttons | |
| // @namespace https://kurotaku.de | |
| // @version 2.1.5.1 | |
| // @description Adds buttons to send commands in the Twitch chat | |
| // @author Kurotaku | |
| // @license CC BY-NC-SA 4.0 | |
| // @match https://www.twitch.tv/*hitsquad* | |
| // @icon https://static.twitchcdn.net/assets/favicon-32-e29e246c157142c94346.png | |
| // @updateURL https://gist.github.com/Kurotaku-sama/bf8fef7e64b6954d6fad35f3682acc5e/raw/Twitch%2520hitsquadgodfather%2520command%2520buttons.user.js | |
| // @downloadURL https://gist.github.com/Kurotaku-sama/bf8fef7e64b6954d6fad35f3682acc5e/raw/Twitch%2520hitsquadgodfather%2520command%2520buttons.user.js | |
| // @require https://gist.github.com/Kurotaku-sama/1a7dcb227ce3d7a1b596afe725c0052a/raw/kuros_library.js | |
| // @require https://gist.github.com/Kurotaku-sama/55cabbdc14a21de2989f1b7ef9fed563/raw/kuros_library_twitch_commandbuttons.js | |
| // @require https://cdn.jsdelivr.net/npm/interactjs/dist/interact.min.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_notification | |
| // @grant GM_registerMenuCommand | |
| // ==/UserScript== | |
| const update_url = "https://raw.githubusercontent.com/Kurotaku-sama/Userscripts/main/userscripts/Twitch_Command_Buttons/script_hitsquad.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: 'Important Information', | |
| html: ` | |
| <div> | |
| <p><strong>Script: ${GM_info.script.name}</strong></p> | |
| <p>Thank you for using my script!</p> | |
| <hr class="k-separator"> | |
| <p>Please note: <strong>ALL</strong> of my userscripts are no longer maintained via <i>Gist.GitHub</i> and have moved directly to GitHub.</p> | |
| <p class="k-info-text"> | |
| Most scripts have already been updated and some are equipped with many <b>new features</b>. | |
| Additionally, several <b>new scripts</b> are now available in the repository! | |
| </p> | |
| <p class="k-info-text"> | |
| Click the button below to <b>reinstall</b> the script from the new repository. | |
| This is the only way to receive automatic updates in the future. | |
| </p> | |
| <div class="k-update-container"> | |
| <a href="${update_url}" target="_blank" class="k-fancy-button"> | |
| <span class="k-fancy-shine"></span> | |
| Reinstall via GitHub now | |
| </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 message will appear until the script is reinstalled, disabled, or uninstalled. | |
| </p> | |
| </div> | |
| `, | |
| icon: 'info', | |
| theme: "dark", | |
| showConfirmButton: false, | |
| showCloseButton: true, | |
| backdrop: true | |
| }); | |
| })(); | |
| GM_addStyle(` | |
| .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