Skip to content

Instantly share code, notes, and snippets.

View LenAnderson's full-sized avatar

Len LenAnderson

View GitHub Profile
{ //! HACK View multi swipe
let dlg;
let swipes = [];
let dom;
const handler = (text)=>{
if (streamingProcessor.swipes.length > 0) {
if (!dlg) {
dom = document.createElement('div'); {
dom.style.display = 'grid';
dom.style.gridTemplateColumns = `repeat(${streamingProcessor.swipes.length + 1}, 1fr)`;
@LenAnderson
LenAnderson / jpgfish_download.user.js
Created October 21, 2024 13:49
Crappy userscript to download albums from JPG Fish sites
// ==UserScript==
// @name JPG Fish - Album Download
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Download albums from JPG Fish sites
// @author LenAnderson
// @match https://jpg.church/a/*
// @match https://pixl.is/album/*
// @match https://jpg.fishing/album/*
// @match https://jpg.fishing/a/*
@LenAnderson
LenAnderson / pipboy.css
Last active August 8, 2024 17:09
SillyTavern - Pip-Boy CSS
#sheld {
/* dimensions of the background image in pixel */
--width: 1594;
--height: 932;
/*
offset of the Pip-Boy screen from top/right/bottom/left in pixel
top should be the top of the curved part of the screen, maximizing
the usable height
*/
@LenAnderson
LenAnderson / 000_README.md
Last active July 31, 2024 22:53
SillyTavern - CYOA
// ==UserScript==
// @name SillyTavern - WI Next Content Shortcut
// @namespace http://tampermonkey.net/
// @version 2024-04-06
// @description try to take over the world!
// @author LenAnderson
// @match http://localhost:8000
// @grant none
// ==/UserScript==
@LenAnderson
LenAnderson / SillyTavern-ExpandALLTheEditors.user.js
Created April 2, 2024 15:49
SillyTavern - Expand ALL The Editors
// ==UserScript==
// @name SillyTavern - Expand ALL The Editors
// @namespace http://tampermonkey.net/
// @version 2024-04-02
// @description CTRL+ALT+Click into any textarea to maximize
// @author LenAnderson
// @match http://localhost:8000/
// @icon https://www.google.com/s2/favicons?sz=64&domain=undefined.localhost
// @grant none
// ==/UserScript==
@LenAnderson
LenAnderson / byof.user.js
Last active January 9, 2024 13:06
Bring Your Own Favicon
// ==UserScript==
// @name Bring Your Own Favicon
// @namespace https://github.com/LenAnderson
// @version 1.0.0
// @description Use your own favicon
// @author LenAnderson
// @match *://*/*
// @grant GM_registerMenuCommand
// @grant GM_getValue
// @grant GM_setValue
@LenAnderson
LenAnderson / SillyTavern-ChangeMessageName.user.js
Last active December 21, 2023 16:01
SillyTavern - Quickly Change Message Names
// ==UserScript==
// @name SillyTavern - Change Message Name
// @namespace https://github.com/LenAnderson
// @version 0.2
// @description Quickly edit message names
// @author You
// @match http://localhost:8000/
// @grant none
// ==/UserScript==
@LenAnderson
LenAnderson / SillyTavern-VideoBg.user.js
Last active February 17, 2025 21:29
SillyTavern - Video Backgrounds
// ==UserScript==
// @name SillyTavern - VideoBg
// @namespace https://github.com/LenAdnerson
// @version 0.1
// @description Video Backgrounds for SillyTavern
// @author LenAnderson
// @match http://localhost:8000/
// @grant none
// ==/UserScript==
@LenAnderson
LenAnderson / merge_fo4_bodyslide_presets.py
Created April 26, 2023 12:44
Merge two BodySlide presets for Fallout 4 by adding both values for each slider.
import os
import re
fsm_path = r'E:\Games\Steam\SteamApps\common\Fallout 4\Data\Tools\BodySlide\SliderPresets\FSM Fit Body Bigger Boobs - Nude.xml'
pipa_path = r'E:\Games\Steam\SteamApps\common\Fallout 4\Data\Tools\BodySlide\SliderPresets\PIPA 2 body.xml'
sliders_path = r'E:\Games\Steam\SteamApps\common\Fallout 4\Data\Tools\BodySlide\SliderCategories\CBBE.xml'
with open(fsm_path, 'r') as f:
fsm = [x.strip() for x in f.readlines() if x.strip().startswith('<SetSlider')]