Skip to content

Instantly share code, notes, and snippets.

View techygrrrl's full-sized avatar
🔴

techygrrrl techygrrrl

🔴
View GitHub Profile
@techygrrrl
techygrrrl / cmyk-monaco-theme.ts
Last active September 22, 2024 23:53
Custom theme for the Monaco browser-based text editor
import * as monaco from 'monaco-editor'
/**
* Source: https://marketplace.visualstudio.com/items?itemName=techygrrrl.techygrrrl-cmyk-colourrrs
*/
export const cmykTheme: monaco.editor.IStandaloneThemeData = {
base: 'vs-dark',
inherit: true,
rules: [
{
@techygrrrl
techygrrrl / Github Eternity Test Script.user.js
Last active September 22, 2024 22:53
A user script for use with the Eternity user script manager Chrome extension
// @name Github Eternity Test Script
// @match https://github.com/BlackGlory/eternity/*
// @match https://gist.github.com/techygrrrl/64d51d701996ee226d21f63535523268
// @match https://github.com/techygrrrl/eternity-chrome-extension-user-scripts/*
import { addStyleSheet } from 'https://esm.sh/userstyle@0.2.1'
addStyleSheet(`
* {
font-family: 'Comic Mono', monospace !important;
@techygrrrl
techygrrrl / Twitch Copy viewer card username to clipboard.user.js
Last active August 15, 2023 02:43
Adds a clipboard emoji beside the username in the viewer card that pops up when you click a username in Twitch chat
// ==UserScript==
// @name Twitch: Copy to clipboard for username
// @match https://www.twitch.tv/*
// @version 1.0
// @author techygrrrl
// @description Adds a clipboard emoji beside the username in the viewer card that pops up when you click a username in Twitch chat
// ==/UserScript==
const init = async () => {
console.log("📋 Copy to clipboard: Initializing...");
@techygrrrl
techygrrrl / logging.go
Last active June 23, 2023 05:19
Implementation structured logs with multiple outputs (console, file) in Go lang using zerolog
// internal/logging.go
package internal
import (
"fmt"
"io"
"os"
"path"
"path/filepath"
@techygrrrl
techygrrrl / Twitch EventSub subscription type scraper.user.js
Last active November 20, 2023 01:26
Logs the Twitch EventSub subscription types to the console. Pop open the console and look at the data! Logs both as a table and as JSON.
// ==UserScript==
// @name Twitch EventSub subscription type scraper
// @namespace https://techygrrrl.stream
// @version 0.1
// @description A user script that can be run with ViolentMonkey, TamperMonkey, GreaseMonkey, or any other user script runner. Pop open the console and look at the scopes! Logs both as a table and as JSON.
// @author techygrrrl
// @match https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types/*
// @grant none
// @icon https://i.imgur.com/U3Ke5uu.png
// ==/UserScript==
@techygrrrl
techygrrrl / TAU Dark Mode.user.js
Last active March 13, 2023 04:24
TAU Dark Mode
// ==UserScript==
// @name TAU Dark Mode
// @namespace Violentmonkey Scripts
// @match http://localhost:8000/*
// @grant none
// @version 1.0
// @author techygrrrl
// @description 3/12/2023, 8:17:27 PM
// ==/UserScript==
@techygrrrl
techygrrrl / Twitch Dev docs Dark Mode.user.js
Last active August 15, 2023 02:58
Dark mode for the Twitch Dev docs
// ==UserScript==
// @name Twitch Dev Dark Mode
// @match https://dev.twitch.tv/docs/*
// @match https://dev.twitch.com/docs/*
// @grant none
// @version 1.0
// @icon https://i.imgur.com/nEGAZMA.png
// @description Dark Mode for Twitch Dev
// ==/UserScript==
@techygrrrl
techygrrrl / Scrape Twitch scopes.user.js
Last active November 20, 2023 00:44
A user script that can be run with ViolentMonkey, TamperMonkey, GreaseMonkey, or any other user script runner. Pop open the console and look at the scopes! Logs both as a table and as JSON.
// ==UserScript==
// @name Twitch scope scraper
// @namespace https://techygrrrl.stream
// @version 0.1
// @description A user script that can be run with ViolentMonkey, TamperMonkey, GreaseMonkey, or any other user script runner. Pop open the console and look at the scopes! Logs both as a table and as JSON.
// @author techygrrrl
// @match https://dev.twitch.tv/docs/authentication/scopes/*
// @grant none
// @icon https://i.imgur.com/U3Ke5uu.png
// ==/UserScript==
@techygrrrl
techygrrrl / Wikipedia Dark Mode.user.js
Last active February 14, 2024 04:15
Wikipedia Dark Mode user script. Modified version of this one: https://userstyles.org/styles/122072/wikipedia-deep-dark-theme (rem font sizes, font family)
// ==UserScript==
// @name Wikipedia Dark Mode
// @match https://en.wikipedia.org/*
// @grant none
// @version 1.0
// @description Dark Mode for Wikipedia
// ==/UserScript==
const css = `
html {
@techygrrrl
techygrrrl / Twitch Plain Chat colours.user.js
Created December 4, 2022 05:09
Makes the chat username colour the same colour as the chat text. Supports both light and dark modes.
// ==UserScript==
// @name Twitch Plain Chat colours
// @namespace https://techygrrrl.stream
// @version 0.1
// @description Make the chat username colour the main text colour.
// @author techygrrrl
// @match https://*.twitch.com/*
// @match https://*.twitch.tv/*
// @grant none
// ==/UserScript==