This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.Description | |
an idiot's catbox album uploader v0.1 | |
.PARAMETER DirectoryPath | |
Where da files at? Script will upload all PNGs in the folder you point it at! | |
.PARAMETER UserHash | |
Your catbox userhash. If not specified, your albums cannot be edited or deleted after uploading. | |
.PARAMETER Title | |
Sets the title for your album, defaults to "Title" if not specified. | |
.PARAMETER Description |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<#usage: use the following line as your command in the foobar2000 plugin | |
pwsh.exe C:\Path\To\catbox.ps1 | |
note: doesn't work right on PowerShell 5 "powershell.exe", you need PowerShell 7#> | |
$upload = Resolve-Path -LiteralPath $input | Select-Object -ExpandProperty Path | |
$uri = "https://catbox.moe/user/api.php" | |
$body = @{ | |
"reqtype"="fileupload" | |
"fileToUpload"=Get-Item $upload | |
} | |
Invoke-WebRequest -Uri $uri -Method POST -Form $body | Select-Object -ExpandProperty Content |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.Description | |
PROOMPT PRESSER 1.3 | |
.PARAMETER Delete | |
Permenantly erase all input PNGs. Default behavior does not delete input PNGs. | |
.PARAMETER Recurse | |
Process subdirectories. Default behavior only processes working directory. | |
.PARAMETER Quality | |
JPEG compression level. Defaults to 88 if unset. | |
.PARAMETER TXT |