Skip to content

Instantly share code, notes, and snippets.

@unitycoder
Last active March 4, 2024 07:12
Show Gist options
  • Select an option

  • Save unitycoder/09ed5c5d1d234cedcdfa6f1ece9b7295 to your computer and use it in GitHub Desktop.

Select an option

Save unitycoder/09ed5c5d1d234cedcdfa6f1ece9b7295 to your computer and use it in GitHub Desktop.
[GreaseMonkey] Twitch: Fix Channel Points Tooltip from Blocking Claim Points Button
// ==UserScript==
// @name Twitch: Fix Channel Points Tooltip from Blocking Claim Points Button
// @namespace https://unitycoder.com
// @version 1.0
// @run-at document-start
// @include https://www.twitch.tv/*
// @grant none
// ==/UserScript==
function AppendStyle(cssStr) {
var D = document;
var newNode = D.createElement ('style');
newNode.textContent = cssStr;
var targ = D.getElementsByTagName ('head')[0] || D.body || D.documentElement;
targ.appendChild (newNode);
}
AppendStyle('[data-test-selector="chat-input-buttons-container"] div:first-child > div:first-child {order: 2;}');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment