summaryrefslogtreecommitdiff
path: root/scriptlets/url_processor.sh
diff options
context:
space:
mode:
authorダカマ <dakama@kakeranoumi.xyz>2025-06-02 13:08:46 +0200
committerダカマ <dakama@kakeranoumi.xyz>2025-06-02 13:08:46 +0200
commit14a892e627a375334a02381351f139d94ad7ecf3 (patch)
treee7c1ee5040f3076f57401b3b9e9eb567e2ecfb1a /scriptlets/url_processor.sh
First dumpHEADmaster
Diffstat (limited to 'scriptlets/url_processor.sh')
-rwxr-xr-xscriptlets/url_processor.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scriptlets/url_processor.sh b/scriptlets/url_processor.sh
new file mode 100755
index 0000000..98ae663
--- /dev/null
+++ b/scriptlets/url_processor.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+BROWSER="chromium"
+FLAGS="--profile-directory=Default"
+LINK=$( sed -r "s|youtube\.com|yewtu\.be|g" <<< "$1" )
+
+$BROWSER "$FLAGS" "$LINK"
+