Skip to content

Instantly share code, notes, and snippets.

View khanonnie's full-sized avatar

khanonnie khanonnie

View GitHub Profile
// ==UserScript==
// @name Chub Desloppifier
// @namespace Violentmonkey Scripts
// @match https://*.chub.ai/*
// @match https://*.characterhub.org/*
// @version 1.7
// @author khanonnie
// @description Tries to clean up the flood of shit cards on chub.ai.
// @require https://openuserjs.org/src/libs/sizzle/GM_config.js
// @homepageURL https://gist.github.com/khanonnie/b357f20bfe4e920d8e05fd47f1e6fa75
@khanonnie
khanonnie / NAI.json
Last active October 1, 2024 04:01
NovelAI theme for SillyTavern
{
"name": "NAI",
"blur_strength": 30,
"main_text_color": "rgba(245, 245, 245, 1)",
"italics_text_color": "rgba(209, 209, 214, 1)",
"underline_text_color": "rgba(0, 102, 204, 1)",
"quote_text_color": "rgba(245, 243, 194, 1)",
"blur_tint_color": "rgba(19, 21, 44, 1)",
"chat_tint_color": "rgba(25, 27, 49, 1)",
"user_mes_blur_tint_color": "rgba(25, 27, 49, 0)",
@khanonnie
khanonnie / README.md
Last active November 21, 2023 22:54
NovelAI Diffusion Tokenizer Overlay
@khanonnie
khanonnie / gpt4client.js
Last active April 1, 2023 05:38
gpt-4 wrapper
const ws = require('ws')
// just trivially obfuscating the endpoint url to avoid spiders
function rot13(str) {
return str.replace(/[a-zA-Z]/g, (c) => {
const base = c <= 'Z' ? 'A'.charCodeAt(0) : 'a'.charCodeAt(0)
return String.fromCharCode(((c.charCodeAt(0) - base + 13) % 26) + base)
})
}
@khanonnie
khanonnie / generate.ps1
Last active August 18, 2022 16:16
Convenience script for basujindal/stable-diffusion
# Interactive convenience script for basujindal/stable-diffusion.
$Settings = @{
Prompt = "your prompt here"
Steps = "60"
Iters = "3"
Samples = "1"
Seed = "12345"
ProgressiveGeneration = "y"
UseOptimizedScript = "n"