Skip to content

Instantly share code, notes, and snippets.

View hlysine's full-sized avatar

Henry Lin hlysine

View GitHub Profile
@hlysine
hlysine / README.md
Last active April 17, 2024 06:36
Responsive Sidebar on Discord

Responsive Discord

Inspired by https://github.com/samuelthomas2774/bd-hide-sidebars

A BetterDiscord theme that collapses the Discord sidebars and tweaks large elements when your window is too small. Hover over the collapsed area to access the sidebars.

Install BetterDiscord, then import the following file as a theme. (You can download the file by clicking Raw, and then right-click and select Save as...)

Download file

@hlysine
hlysine / elevator-saga.d.ts
Created May 4, 2024 13:55
Elevator Saga Type Definitions
/**
* Type definitions for the Elevator Saga programming game at https://play.elevatorsaga.com/
*/
declare module 'elevator-saga' {
export interface ElevatorEvents {
/**
* Triggered when the elevator has completed all its tasks and is not doing anything.
*/
(event: 'idle', fn: () => void): void;
/**
@hlysine
hlysine / BH-banners.md
Last active June 19, 2024 15:13
Rotating BH banners for mods with more than one author

Last updated: June 2024

This is a guide on how to create your own rotating BH banner (or another other image) which can be used in mod description pages and anywhere else that supports loading images with URLs. This is especially useful if you have more than one author on a mod and want to split the BH ad traffic.

Example: BisectHosting

This banner will change periodically depending on how long the image is being cached for. It also redirects you to a random partner link when it is clicked.

Requirements