Add open-google-translate.ps1 and open-youtube.ps1

This commit is contained in:
Markus Fleschutz
2021-10-25 10:15:01 +02:00
parent 5e2bc0c609
commit dbe42671ec
6 changed files with 96 additions and 0 deletions

20
Scripts/open-youtube.ps1 Executable file
View File

@ -0,0 +1,20 @@
<#
.SYNOPSIS
Opens YouTube
.DESCRIPTION
This script starts the Web browser and opens YouTube.com.
.EXAMPLE
PS> ./open-youtube
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
try {
& "$PSScriptRoot/open-browser.ps1" "https://www.youtube.com"
exit 0 # success
} catch {
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
exit 1
}