Tampermonkey Script Skeleton - Online UserScript Generator
Fill in name, match URL, and description to get a ready‑to‑edit UserScript header. Start your browser extension easily.
UD5 Toolkit
Generate production-ready Bash script templates with best practices built-in. Error handling, logging, colors, argument parsing — all configurable.
Everything you need to know about Bash scripting best practices
set -euo pipefail is considered the "strict mode" for Bash. set -e exits on any command failure, set -u treats unset variables as errors, and set -o pipefail ensures a pipeline fails if any command in it fails. Together they catch bugs early and prevent scripts from continuing in an unexpected state.
\033[0;31m sets red text and \033[0m resets it. Common codes include: Red (31), Green (32), Yellow (33), Blue (34), and Bold (1). Our generator creates reusable color variables like RED, GREEN, NC (No Color) so you can use them throughout your script.
#!/bin/bash uses an absolute path and fails if Bash is installed elsewhere. #!/usr/bin/env bash searches the user's PATH for Bash, making it more portable across systems (e.g., macOS with Homebrew-installed Bash). The env approach is generally recommended for cross-platform scripts.
trap command catches signals like EXIT, INT (Ctrl+C), and TERM, running a cleanup function before the script terminates. This is essential for removing temporary files, releasing locks, or restoring system state — even if the script fails unexpectedly. It's a hallmark of robust, production-grade scripts.
getopts (for short flags like -h, -v) or a manual while loop with case statements for both short and long options (--help, --version). Our generator creates a clean argument parser supporting -h/--help, -v/--verbose, -c/--config, and more.
trap.
--verbose flag), and SUCCESS (confirmation messages). Each level can use a different color for quick visual scanning.
#!/bin/sh targets POSIX-compliant shells and runs on virtually any Unix-like system. However, it lacks Bash-specific features like arrays, [[ test syntax, shopt, and associative arrays. Use /bin/sh for simple, portable scripts; use /bin/bash when you need its richer feature set.
Fill in name, match URL, and description to get a ready‑to‑edit UserScript header. Start your browser extension easily.
Generate random dungeon maps with rooms and corridors. Use for tabletop RPGs. Every layout is unique. Export as image.
Paste a list of image URLs and generate a valid Google Image Sitemap XML. Essential for photography sites.
Upload a small pixel art image and get a CSS grid layout that recreates it using divs. Novelty developer tool.
Enter title, subtitle, and logo URL. Generate a beautiful Open Graph image ready for social sharing. Download PNG.
Paste image URLs and generate a responsive masonry or justified gallery layout with lightbox. Copy the HTML/CSS/JS.
Build a CSS media query by selecting feature, operator, and value. Copy the exact syntax for your stylesheet.
Create unique magic spell names with descriptions. Perfect for Dungeons & Dragons and creative writing.
Generate SHA‑3 and SHAKE hashes of any text with configurable output length. All local using js library.
Paste text and generate a word cloud as a downloadable PNG image. Customize colors and shapes. All local.
Compress images while preserving quality. Adjust compression level and preview output size. All processing is done client-side for fast and secure optimization.
Create a responsive box that maintains a specific aspect ratio using the aspect‑ratio property. Copy the simple CSS.
Enter RGB values row by row and create a tiny BMP file. Understanding bitmap headers. Geeky developer tool.
Upload multiple sizes of the same image and generate the complete srcset and sizes attributes. For perfect responsive performance.
Enter hex codes and download a PNG swatch image with color names. Useful for design spec documents. Built via canvas.
Convert images to WebP format with configurable quality. See file size savings. Batch process multiple files. All local.
Convert multiple PNGs to WebP format at once. Adjust quality and see size reduction. All processing local and private.
Generate a silly or absurd company policy item. Perfect for a quick laugh during a dull meeting. Local fun.
Paste a raster image and an SVG, see the file size and rendering time. Understand when to use vector. Local.
Generate a BLAKE3 hash of any text or file. Extremely fast. Perfect for checksums and content addressing. Local.
Construct a CSS‑only carousel with scroll‑snap and scroll‑driven animations. Configurable gap, items, and progress indicator. Copy the HTML/CSS.
Generate a small logic puzzle grid (like Einstein’s riddle) with clues. Solve in browser or print. Local generation.
Paste text or drop a file and get checksums in multiple formats simultaneously. Compare with original. All local.
Convert images between popular formats like PNG, JPEG, WEBP, and BMP. No quality loss on conversion when using lossless formats. Private and fast.
Combine different animal parts to generate a unique mythical creature with a name and lore. Download the collage.
Generate a random art style name (e.g., 'Baroque cyberpunk oil painting') for inspiration or AI image generation.
Generate placeholder images with custom dimensions, background color, and text. Supports SVG and raster output. Perfect for wireframing and mockups.
Create a random video game premise with a setting, protagonist, and twist. For game jams and creative writing. All local.
Preview how your page title will appear in Google SERPs. See pixel width and character count. Avoid truncation. Free local tool for SEOs.
Turn any photo into a mosaic of colored blocks or pixel art. Choose block size and palette. Download as PNG. Pure canvas.