Skip to content

Instantly share code, notes, and snippets.

View khansgithub's full-sized avatar
💭

khan khansgithub

💭
View GitHub Profile
@khansgithub
khansgithub / gist:05aecdd5c955ac2a6b008a023258fb22
Last active December 23, 2025 22:33
Make chat appear below the video on Twitch - useful for when twitch is on the left half of the screen tiled
(() => {
const main = document.querySelector('main');
if (!main) return;
// --- FIND CHAT ---
const CHAT =
document.querySelector('.video-chat__message-list-wrapper');
// --- FIND VIDEO (robust) ---
const VIDEO =

import mod from file

// main.ts
mod grid;
use grid::Grid;
...
let mut grid: Grid = Grid::new();

// grid.rs
pub struct Grid{}