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

View File

@ -169,6 +169,7 @@ open-file-explorer.ps1, Opens the File Explorer
open-google-earth.ps1, Opens Google Earth
open-google-maps.ps1, Opens Google Maps
open-google-search.ps1, Opens Google Search
open-google-translate.ps1, Opens Google Translate
open-home-folder.ps1, Opens the user's home folder
open-music-folder.ps1, Opens the user's music folder
open-netflix.ps1, Starts the Netflix app
@ -181,6 +182,7 @@ open-spotify.ps1, Opens the Spotify app
open-task-manager.ps1, Starts the Task Manager
open-toggl-track.ps1, Opens Toggl Track
open-videos-folder.ps1, Opens the user's videos folder
open-youtube.ps1, Opens YouTube.com
pick-commit.ps1, Cherry-picks a Git commit into multiple branches
play-beep.ps1, Plays a beep sound
play-files.ps1, Plays the given audio files

Can't render this file because it has a wrong number of fields in line 94.

View File

@ -0,0 +1,26 @@
## open-google-translate.ps1 - Opens Google Translate
This script starts the Web browser and opens Google Translate.
## Parameters
```powershell
open-google-translate.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
```
## Example
```powershell
PS> ./open-google-translate
```
## Notes
Author: Markus Fleschutz · License: CC0
## Related Links
https://github.com/fleschutz/PowerShell
*Generated by convert-ps2md.ps1 using the comment-based help of open-google-translate.ps1*

26
Docs/open-youtube.md Normal file
View File

@ -0,0 +1,26 @@
## open-youtube.ps1 - Opens YouTube
This script starts the Web browser and opens YouTube.com.
## Parameters
```powershell
open-youtube.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
```
## Example
```powershell
PS> ./open-youtube
```
## Notes
Author: Markus Fleschutz · License: CC0
## Related Links
https://github.com/fleschutz/PowerShell
*Generated by convert-ps2md.ps1 using the comment-based help of open-youtube.ps1*

View File

@ -124,6 +124,7 @@ Mega Collection of PowerShell Scripts
| [open-google-earth.ps1](Scripts/open-google-earth.ps1) | Opens Google Earth | [Help](Docs/open-google-earth.md) |
| [open-google-maps.ps1](Scripts/open-google-maps.ps1) | Opens Google Maps | [Help](Docs/open-google-maps.md) |
| [open-google-search.ps1](Scripts/open-google-search.ps1) | Opens Google Search | [Help](Docs/open-google-search.md) |
| [open-google-translate.ps1](Scripts/open-google-translate.ps1) | Opens Google Translate | [Help](Docs/open-google-translate.md) |
| [open-home-folder.ps1](Scripts/open-home-folder.ps1) | Opens the user's home folder | [Help](Docs/open-home-folder.md) |
| [open-music-folder.ps1](Scripts/open-music-folder.ps1)| Opens the user's music folder | [Help](Docs/open-music-folder.md) |
| [open-netflix.ps1](Scripts/open-netflix.ps1) | Starts the Netflix app | [Help](Docs/open-netflix.md) |
@ -137,6 +138,7 @@ Mega Collection of PowerShell Scripts
| [open-task-manager.ps1](Scripts/open-task-manager.ps1)| Starts the Task Manager | [Help](Docs/open-task-manager.md) |
| [open-toggl-track.ps1](Scripts/open-toggl-track.ps1)| Opens Toggl Track | [Help](Docs/open-toggl-track.md) |
| [open-videos-folder.ps1](Scripts/open-videos-folder.ps1)| Opens the user's videos folder | [Help](Docs/open-videos-folder.md) |
| [open-youtube.ps1](Scripts/open-youtube.ps1) | Opens YouTube.com | [Help](Docs/open-youtube.md) |
| [remind-me.ps1](Scripts/remind-me.ps1) | Creates a scheduled task that will display a popup message | [Help](Docs/remind-me.md) |
| [save-screenshot.ps1](Scripts/save-screenshot.ps1) | Saves a single screenshot | [Help](Docs/save-screenshot.md) |
| [set-wallpaper.ps1](Scripts/set-wallpaper.ps1) | Sets the given image as wallpaper | [Help](Docs/set-wallpaper.md) |

View File

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

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
}