Skip to content

Instantly share code, notes, and snippets.

@StagPoint
StagPoint / OuterGlow.cs
Last active March 16, 2026 07:27
Custom VisualElement for Unity's UI Toolkit which is useful for creating an "outer glow" effect for buttons, or a "drop shadow" effect for popups, windows, and dialogs.
// Created 2024 StagPoint. Released to the public domain.
using System;
using System.Runtime.CompilerServices;
using Unity.Collections;
using UnityEngine;
using UnityEngine.Scripting;
using UnityEngine.UIElements;
@ricewind012
ricewind012 / a.js
Last active June 11, 2024 20:09
restore normal classes
class CClassDeminifier {
constructor() {
this.m_bInClient = !!window.SteamClient?.User;
this.m_strWebpackGlobal = Object.keys(window).find(
(e) => e.startsWith("webpackChunk") && e !== "webpackChunklegacy_web",
);
this.m_vecModules = [];
this.k_unDelay = 1.5;
this.k_vecWebSelectors = [
@aamiaa
aamiaa / RevertNewLayout.md
Last active March 19, 2026 11:49
Revert New Discord Layout

The original snippet no longer works!

On 02/09/2024 at around 8pm UTC, Discord flipped an experiment (2023-09_mobile_redesign_override_toggles) which ignores the layout toggle that this script relied on.

If you want to continue using the old layout, you can either use a modded mobile client (such as Vendetta) to disable that experiment, or downgrade to an old version of the app.

Method 1 - Downgrading (Android)

Tip

Use this one if you want a fast, beginner-friendly solution and don't mind using a version from November 2023

  1. Download version 205.15 of Discord mobile app from ApkMirror
@Aizistral
Aizistral / AbsoluteStateOfChatReporting.md
Last active February 1, 2026 14:19
The Absolute State of Chat Reporting

The Absolute State of Chat Reporting

Originally introduced in 1.19.1, chat reporting has undergone many changes in Mojang's attempts to eliminate the exploits and make the system functional. The purpose of this paper is to document the current technical state of chat reporting on an ongoing basis, and to provide a reference for the community to use when discussing the system. To that end I will try to keep it as unbiased as possible.

The Basics

Chat reporting heavily relies on cryptographic commitments and signatures to ensure that reported chat messages are not tampered with. The basic idea is that all players sign their chat messages with their private key, and then send the signature along with the message to the server.

Chat signing keypair is not generated by the client as one could expect; instead, it is issued by Mojang's services and is tied to the player's account. This means that the keypair is shared between all clients that the player uses, and the player can't change it. The keypair is f

@emesare
emesare / leclaimer.js
Last active November 17, 2025 22:16
asset.party slot claimer for s&box. NO LONGER SUPPORTED
// ==UserScript==
// @name Le claimer
// @namespace http://tampermonkey.net/
// @version 0.3
// @description try to claim yourself access to a game that doesn't exist (its a hoax)
// @author ------
// @match https://asset.party/get/developer/preview
// @icon https://www.google.com/s2/favicons?sz=64&domain=asset.party
// @grant none
// ==/UserScript==
#include <iostream>
#define XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#define X ;
#define Y class
#define Z {
#define R : public A {
#define Xpublic:
#define Xprivate:
#define HXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX };
@sneha-belkhale
sneha-belkhale / Fbm.cginc
Last active January 21, 2026 17:06
Fractal Brownian Motion function to include in Unity Shader
float hash (float2 n)
{
return frac(sin(dot(n, float2(123.456789, 987.654321))) * 54321.9876 );
}
float noise(float2 p)
{
float2 i = floor(p);
float2 u = smoothstep(0.0, 1.0, frac(p));
float a = hash(i + float2(0,0));