Skip to content

Instantly share code, notes, and snippets.

View shinmai's full-sized avatar
😞
not doing too hot

Shi Saaristo shinmai

😞
not doing too hot
View GitHub Profile
@shinmai
shinmai / LurkEngaygement.user.js
Last active November 13, 2025 21:30
LurkEngaygement - twitch engaygement enhancer
// ==UserScript==
// @name LurkEngaygement
// @namespace https://twitch.lurk.shi.wtf
// @author @shi - shi.wtf
// @version 0.3
// @description twitch engaygement enhancer (fuck jeff bezos)
// @match https://www.twitch.tv/*
// @run-at document-end
// @updateURL https://gist.github.com/shinmai/340d8d851f3b2a09cca921c244747bef/raw/LurkEngaygement.user.js
// @downloadURL https://gist.github.com/shinmai/340d8d851f3b2a09cca921c244747bef/raw/LurkEngaygement.user.js
@shinmai
shinmai / outofsight.tsx
Last active October 26, 2025 18:46
a Vencord plugin to hide a user client-side, with a serverlist control to peek at them or their messages (with mental-health safeguard delays)
/*
* defaults to peeking: hold the button at the top of the server list to temporarily show the user and their messages
* (there is a delay to re-arm the button to peek again)
* shift+click on the button to toggle once (click again to re-hide)
* in toggle mode: click the button to unhide, click again to hide (there is a delay before unhiding)
*
* ctlr+hold to peek just the users messages and their presence on Voice Calls
*
* also adds two classes to the DOM to use with Custom CSS:
* .mental-health.helper for the main peeking/toggling
@shinmai
shinmai / breathingroom.tsx
Created October 7, 2025 12:19
BreathingRoom - Respect limits when communicating with friends.
/*
* SPDX-License-Identifier: GPL-3.0-or-later
* Portions copyright (c) 2025 Vendicated and contributors.
* Derived from the Vencord "SelfControl" plugin by Samwich, used under GPLv3.
*
* Sources: https://github.com/Vendicated/Vencord
* https://github.com/s4midev/vc-selfControl
*
* Third-party materials:
* Contains modified Twemoji graphics. Copyright (c) Twitter, Inc. and other
@shinmai
shinmai / StatusMirror.lite.tsx
Last active July 21, 2025 15:08
Vencord plug-in to change your status according to another user's status
import { getUserSettingLazy } from "@api/UserSettings";
import definePlugin from "@utils/types";
const TARGET_USER_ID = "142594671078539264",
StatusSetting = getUserSettingLazy("status", "status")!,
export default definePlugin({
name: "StatusMirror",
description: "Peekaboo.",
authors: [{ name: "shi", id: 142594671078539264 }],
@shinmai
shinmai / main.cpp
Last active March 15, 2025 12:19
lightweight Win32 temperature monitor using LibreHardwareMonitor and lhwm-wrapper
/*
Requires:
1. LibreHardwareMonitorLib.dll from https://github.com/LibreHardwareMonitor/LibreHardwareMonitor/
2. lhwm-wrapper.dll, lhwm-cpp-wrapper.lib & lhwm-cpp-wrapper.h from https://gitlab.com/OpenRGBDevelopers/OpenRGBHardwareSyncPlugin/-/tree/master/dependencies/lhwm-cpp-wrapper/
Link with lhwm-cpp-wrapper.lib, dwmapi.lib & mscoree.lib from .NET Framework 4.x
No config, manually adjust location, text size & style, monitored values and update delay in UpdateOverlay() and the code for the update thread in WinMain()
*/
#define WIN32_LEAN_AND_MEAN
@shinmai
shinmai / image-handler.js
Created February 21, 2025 09:42
Reddit/Imgur style image serving beautifier as Netlify Edge Function
// netlify/edge-functions/image-handler.js
import mime from "https://esm.sh/mime/lite"
/**
* Checks if client's request headers have an Accept header with text/html,
* and if the client _is_ asking for a web page, serves one, otherwise serves the image file.
*/
export default async (request, context) => {
const url = new URL(request.url)
if (request.headers.get("accept")?.includes("text/html")) {
/**
* @name BrutalHonesty
* @author @shi.rip
* @description Replaces subtext with brutal honesty
* @version 0.0.3
*/
/*
CHANGELOG
0.0.1 - 250131 - initial version
@shinmai
shinmai / NoAFK.plugin.js
Last active September 14, 2024 18:36
BetterDiscord plugin to try to stop being AFK
/**
* @name No AFK
* @description Try to stop being AFK
* @version 0.0.1
* @author shi
* @authorId 142594671078539264
* @website https://shi.wtf/
* @source https://gist.github.com/shinmai/a1d92b4b5a84b78c9aa70b5559731135/raw//NoAFK.plugin.js
*/
@shinmai
shinmai / SanitiseFilenames.plugin.js
Created May 21, 2024 08:35
BetterDiscord addon/plug-in to sanitise filenames when uploading
/**
* @name Sanitise Filenames
* @description Hide filenames!
* @version 0.0.1
* @author shi
* @authorId 142594671078539264
* @website https://shinmai.wtf/
* @source https://gist.github.com/shinmai/a8ad7842ef30f7c82b01f37ff233b86f/raw/SanitiseFilenames.plugin.js
*/
@shinmai
shinmai / SushUp.plugin.js
Last active September 19, 2024 07:31
BetterDiscord addon/plug-in to try and keep from accidentally pinging people
/**
* @name Sush Up!
* @description STOP PINGING YOUR FRIENDS!
* @version 0.0.2
* @author shi
* @authorId 142594671078539264
* @website https://shinmai.wtf/
* @source https://gist.github.com/shinmai/4d07a79f4f9ede6659efd470b7662bec/raw/SushUp.plugin.js
*/