Skip to content

Instantly share code, notes, and snippets.

Jebediah Kerman
Bill Kerman
Bob Kerman
Valentina Kerman
Wernher von Kerman
Gene Kerman
Dinkelstein Kerman
Dawton Kerman
Eumon Kerman
Bobak Kerman
@FrostBird347
FrostBird347 / HideTime.plugin.js
Last active December 12, 2023 10:50
A simple BetterDiscord plugin that hides the sent time of recent posts, allowing you to take screenshots without giving away your timezone.
/**
* @name HideTime
* @authorLink https://github.com/FrostBird347
* @source https://gist.github.com/FrostBird347/82473292f6d84542b607b87c2ea61df5#gistcomment-3376137
* @updateUrl https://gist.githubusercontent.com/FrostBird347/82473292f6d84542b607b87c2ea61df5/raw/HideTime.plugin.js
*/
module.exports = class HideTime {
getName() {return "HideTime";}
@FrostBird347
FrostBird347 / VideoLoop.plugin.js
Last active March 29, 2024 08:09
A simple BetterDiscord plugin that adds a loop button next to the pause button in videos.
/**
* @name VideoLoop
* @authorLink https://github.com/FrostBird347
* @source https://gist.github.com/FrostBird347/6abad7503698db0c95a94ad3a2d0ca6c#gistcomment-3640733
* @updateUrl https://gist.githubusercontent.com/FrostBird347/6abad7503698db0c95a94ad3a2d0ca6c/raw/VideoLoop.plugin.js
*/
module.exports = class VideoLoop {
getName () {return "VideoLoop";}
@FrostBird347
FrostBird347 / ClearSteamAchivements.js
Last active August 28, 2023 10:58
Reset all achievement slots for the achievement showcase on a steam profile
//Credit: https://steamcommunity.com/discussions/forum/1/666826703364808594/#c622954302088767800
//Tested using steam with the "-dev" launch argument (https://developer.valvesoftware.com/wiki/Command_Line_Options#Steam)
//After running this script, you must save and reload the page to see any changes
for (var i = 0; i < document.getElementsByClassName("profile_customization_header").length; i++) {
var CurrentHeader = document.getElementsByClassName("profile_customization_header")[i];
if (CurrentHeader.textContent == "Achievement Showcase") {
var ShowcaseBlock = CurrentHeader.parentElement.children[1].children[0].children[0];
for (var ii = 0; ii < ShowcaseBlock.children.length; ii++) {
if (ShowcaseBlock.children[ii].classList.contains("showcase_slot") && !ShowcaseBlock.children[ii].classList.contains("openslot")) {
ShowcaseBlock.children[ii].children[2].value = 0;
@FrostBird347
FrostBird347 / PurgeMemory.plugin.js
Last active March 29, 2024 08:09
A simple BetterDiscord plugin that adds a button to flush discord's cache.
/**
* @name PurgeMemory
* @authorLink https://github.com/FrostBird347
* @source https://gist.github.com/FrostBird347/90dd48c54fdde69a00ab641b1ee823f2#gistcomment-4388425
* @updateUrl https://gist.githubusercontent.com/FrostBird347/90dd48c54fdde69a00ab641b1ee823f2/raw/PurgeMemory.plugin.js
*/
module.exports = class PurgeMemory {
getName () {return "PurgeMemory";}
@FrostBird347
FrostBird347 / copyimgdiff.js
Last active June 23, 2023 12:35
An extremely simple script that applies the differences between 2 images to a third image. It has not been tested on other systems, assigns a massive amount of ram, can't open images close to or above 1GB in size and doesn't support images with an alpha channel. With all that being said, it is very useful when copying effects from a low res imag…
//An extremely simple script that applies the differences between 2 images to a third image.
//It has not been tested on other systems, assigns a massive amount of ram, can't open images close to or above 1GB in size and doesn't support images with an alpha channel.
//With all that being said, it is very useful when copying effects from a low res image to a higher res version of the same image.
const qoi = require('qoijs');
const fs = require('fs');
const execFileSync = require('child_process').execFileSync;
if (process.argv.length != 6) {
console.error("Invalid arguments!");
console.log("Usage:\n copyimgdif original_image_a edited_image_a image_b output_image\n (to apply the changes made to image_a to image_b)");
@FrostBird347
FrostBird347 / BandcampEmbed.plugin.js
Last active March 29, 2024 08:06
A simple BetterDiscord plugin that adds embed support for Bandcamp links.
/**
* @name BandcampEmbed
* @authorLink https://github.com/FrostBird347
* @source https://gist.github.com/FrostBird347/3a42e4084dce3fae325bc9363fe853ac#gistcomment-4643226
* @updateUrl https://gist.githubusercontent.com/FrostBird347/3a42e4084dce3fae325bc9363fe853ac/raw/BandcampEmbed.plugin.js
*/
module.exports = class BandcampEmbed {
settings = {
sideColour: "secondary_text_color",
@FrostBird347
FrostBird347 / qoi180.js
Last active March 17, 2024 09:47
An extremely simple and poorly written script that glitches images.
#!/usr/local/bin/node
//qoi180.js
//A terribly made script that:
// - encodes an input image into a "reversed" (horizontal+vertical flip) qoi
// - reverses the order of every chunk within the qoi file
// - saves the messed up file
//Note that it requires qoijs, imagemagick and arg
//It also has the same issues as copyimgdiff.js: It has not been tested on other systems, assigns a massive amount of ram, can't open images close to or above 1GB in size and doesn't support images with an alpha channel.
const qoi = require('qoijs');