Skip to content

Instantly share code, notes, and snippets.

@affectioned
affectioned / UpdateWinget.bat
Created August 19, 2025 19:19
Updates all winget apps as bat through task scheduler on logon (or anything else of your choosing).
@echo off
setlocal
echo [Pins] Excluding VRCX and Unity (Hub + Editors) from upgrades...
rem -- VRCX
winget pin add --id VRCX.VRCX >nul 2>&1
rem -- Unity 2022 (VRChat)
winget pin add --id Unity.Unity.2022 >nul 2>&1
@affectioned
affectioned / get_vrc_transactions.py
Created August 10, 2025 12:29
get amount of gifted vrc+
import json
# navigate to here: https://vrchat.com/api/1/Steam/transactions
# click save, in firefox it's automatically called transactions.json, but you have to rename if your browser doesn't save it with such name
# place it in the same folder/path as this python script
with open("transactions.json", "r", encoding="utf-8") as f:
data = json.load(f)
# Filter: isGift is True and status is not "failed"
filtered = [txn for txn in data if txn.get("isGift") and txn.get("status") != "failed"]
@affectioned
affectioned / custom.js
Last active August 30, 2025 02:59
VRCX Username Unicode Highlighter
// place this into %APPDATA%\VRCX, must be also called custom.js
(function () {
console.log("Unicode highlighter by Abbey");
function highlightUnicodeCharacters() {
// had to add .x-user-dialog, I kinda forgot about that oops
const spans = document.querySelectorAll(
".x-user-dialog .dialog-title.el-popover__reference"
);
@affectioned
affectioned / ClearConsole.cs
Created June 9, 2023 03:13
Clear Unity console in Unity Editor
using UnityEditor;
using System.Reflection;
using System;
//https://answers.unity.com/questions/578393/clear-console-through-code-in-development-build.html
public static class ClearConsole{
private static MethodInfo _clearConsoleMethod;
private static MethodInfo ClearConsoleMethod
{