Skip to content

Instantly share code, notes, and snippets.

View TheOpponent's full-sized avatar

Gong Xian TheOpponent

View GitHub Profile
@TheOpponent
TheOpponent / Nullify Gigantic Emote.css
Created May 17, 2025 18:34
Nullify Twitch Gigantic Emote Custom CSS
@-moz-document domain("twitch.tv") {
.chat-line__message--emote-gigantified, .chat-line__message--emote-button-gigantified {
height: 2.8rem;
width: 2.8rem;
margin: inherit;
}
.chat-line__try-it-icon--button {
display: none !important;
}
@TheOpponent
TheOpponent / TwitchNullifyMessageEffects.user.js
Last active July 19, 2024 03:00
Twitch - Nullify Message Effects userscript
// ==UserScript==
// @name Twitch - Nullify Message Effects
// @version 0.1
// @description Workaround to delete the <div> class that renders Message Effects power-up redeems and present them as a regular chat message, as of Jul 18 2024
// @include https://*.twitch.tv/*
// @include https://twitch.tv/*
// @grant none
// ==/UserScript==
(function() {
@TheOpponent
TheOpponent / TwitchNullifyGiantifyEmote.user.js
Created July 14, 2024 20:37
Twitch - Nullify Gigantify Emote userscript
// ==UserScript==
// @name Twitch - Nullify Gigantify Emote
// @version 0.1
// @description Workaround to undo the gigantic emote power-up and replace it with an emote of regular size, as of Jul 1 2024
// @include https://*.twitch.tv/*
// @include https://twitch.tv/*
// @grant none
// ==/UserScript==
(function() {
@TheOpponent
TheOpponent / qad.xml
Last active December 28, 2023 19:40
Quiz and Dragons infinite question time MAME cheat
<cheat desc="Infinite Question Time">
<comment>Ninja's ability is time-based, so it will activate on every correct answer.</comment>
<script state="run">
<action condition="(maincpu.pb@FFE4A7==01 or maincpu.pb@FFE4A7==02 or maincpu.pb@FFE4A7==06) and maincpu.pb@FFE25E LT 03 and maincpu.pb@FF7F77==04">maincpu.pb@FF7F2F=00</action>
</script>
</cheat>
@TheOpponent
TheOpponent / Fix IDLEDISABLE.bat
Created November 30, 2023 00:29
Fix IDLEDISABLE.bat
@echo off
set "params=%*"
REM https://stackoverflow.com/a/52517718
cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && ""%~s0"" %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )
REM https://www.andrewmunsell.com/blog/oculus-rift-bug-power-plan-configuration#the-fix
powercfg /SETACVALUEINDEX SCHEME_CURRENT SUB_PROCESSOR IDLEDISABLE 0
powercfg /SETACTIVE SCHEME_CURRENT
exit
@TheOpponent
TheOpponent / gist:59f4919c5830f6cc69b63ef840e0f5ba
Last active August 4, 2023 21:11
DaVinci Resolve Text+/Fusion expression for timestamp, with zero-padding and conditional hours display
iif(time / comp:GetPrefs().Comp.FrameFormat.Rate / 60 >= 60,string.format("%d:%02d:%02d",floor(time / comp:GetPrefs().Comp.FrameFormat.Rate / 3600),floor(time / comp:GetPrefs().Comp.FrameFormat.Rate / 60) % 60,floor(time / comp:GetPrefs().Comp.FrameFormat.Rate % 60)),string.format("%02d:%02d",floor(time / comp:GetPrefs().Comp.FrameFormat.Rate / 60) % 60,floor(time / comp:GetPrefs().Comp.FrameFormat.Rate % 60)))
@TheOpponent
TheOpponent / viewer_count.py
Last active June 2, 2021 03:49
OBS Python script: Query live viewer count and write to text file
# Writes viewer_count.txt to script path every 60 seconds for use with text source.
#
# Install pyTwitchAPI first:
# https://github.com/Teekeks/pyTwitchAPI
# pip3.6 install twitchAPI
import obspython
import os
from datetime import datetime
from twitchAPI.twitch import Twitch