Skip to content

Instantly share code, notes, and snippets.

View mdashlw's full-sized avatar
🎯
Focusing

mdashlw

🎯
Focusing
View GitHub Profile
// ==UserScript==
// @name Booru Dupes Metadata
// @version 2.0.0
// @author mdashlw
// @namespace Booru Scripts
// @match https://*.derpibooru.org/*
// @match https://*.trixiebooru.org/*
// @match https://*.tantabus.ai/*
// @match https://*.furbooru.org/*
// @grant GM_xmlhttpRequest
// ==UserScript==
// @name Booru Search Resolve IDs
// @version 1.0
// @author mdashlw
// @namespace Booru Scripts
// @match https://*.derpibooru.org/*
// @match https://*.trixiebooru.org/*
// @match https://*.tantabus.ai/*
// @match https://*.furbooru.org/*
// @description 5/24/2025
// ==UserScript==
// @name Booru Implications Helper
// @namespace Booru Scripts
// @match https://derpibooru.org/*
// @match https://trixiebooru.org/*
// @match https://furbooru.org/*
// @match https://tantabus.ai/*
// @grant none
// @version 1.0.1
// @author mdashlw
import crypto from "node:crypto";
import process from "node:process";
import { setTimeout } from "node:timers/promises";
import { parseArgs } from "node:util";
/**
* Prerequisites: Node.js
* Usage: node --experimental-strip-types batch-batch-tagger.ts (args...)
* See below for args syntax and example.
*
@mdashlw
mdashlw / booru-tag-slots.user.js
Last active February 27, 2025 13:45
Derpibooru more tag slots on upload page
// ==UserScript==
// @name Booru Tag Slots
// @version 1.0
// @author mdashlw
// @namespace Booru Scripts
// @match https://derpibooru.org/*
// @match https://trixiebooru.org/*
// @match https://tantabus.ai/*
// @match https://furbooru.org/*
// @grant none
// ==UserScript==
// @name Tumblr No Reblogs
// @match https://*.tumblr.com/*
// @version 1.0
// @author mdashlw
// @run-at document-start
// @inject-into page
// ==/UserScript==
const _fetch = unsafeWindow.fetch;
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
file="$1"
file_nut="${file%.*}.nut"
file_gif="${file%.*}.gif"
width=${2:-5000}
fixlum="[v]geq=lum='if(eq(alpha(X,Y),0),16,p(X,Y))':a='p(X,Y)':cb_expr='p(X,Y)'[o]"
@mdashlw
mdashlw / manifest.json
Last active December 27, 2024 04:44
philomena rainbow theme chrome extension. Instructions: Download ZIP, extract, enable Developer mode on Extensions page, "Load unpacked"
{
"manifest_version": 3,
"name": "Philomena Rainbow Theme",
"version": "1.0.0",
"description": "Rainbow theme color for Derpibooru",
"permissions": ["declarativeNetRequest", "webRequest"],
"host_permissions": ["https://derpibooru.org/*"],
"background": {
"service_worker": "service_worker.js"
}
// ==UserScript==
// @name Philomena Rainbow Theme
// @match https://derpibooru.org/*
// @grant none
// @version 1.0
// @author mdashlw
// @run-at document-start
// @inject-into page
// ==/UserScript==
// ==UserScript==
// @name booru-image-view-file-names
// @namespace Violentmonkey Scripts
// @match https://derpibooru.org/*
// @match https://trixiebooru.org/*
// @grant none
// @version 1.0
// @author mdashlw
// @description 4/10/2024, 1:47:21 PM
// @run-at document-start