17 lines
409 B
Bash
Executable file
17 lines
409 B
Bash
Executable file
#!/bin/sh
|
|
YoutubeBrowser=$(which chromium-browser)
|
|
BaseSearchUrl=" --incognito https://www.youtube.com/results?search_query="
|
|
BaseUrl="https://www.youtube.com/feed/subscriptions"
|
|
|
|
# Any args?
|
|
if [[ -n "$@" ]]
|
|
then
|
|
# Concat 'em
|
|
SearchTerm=$(echo "$@" | sed 's/ /+/g')
|
|
# Search on youtube privately
|
|
$YoutubeBrowser $BaseSearchUrl$SearchTerm
|
|
else
|
|
# Open my subscriptions
|
|
$YoutubeBrowser $BaseUrl
|
|
fi
|
|
|