Skip to content

Commit 914c41f

Browse files
authored
add to-private-browsing script (raycast#585)
* add to-private-browsing script * add to-private-browsing script * +x mode * PR review
1 parent d4c3fc9 commit 914c41f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
############################################
4+
## Set your browser app ##
5+
## "Google Chrome" ##
6+
## "Brave Browser" ##
7+
############################################
8+
9+
browser="Google Chrome"
10+
11+
# @raycast.title Current Website to Private Browser
12+
# @raycast.author raulanatol
13+
# @raycast.authorURL https://github.com/raulanatol
14+
# @raycast.description Open the current site in a private browser
15+
16+
# @raycast.icon 🥽
17+
# @raycast.mode silent
18+
# @raycast.packageName Browser
19+
# @raycast.schemaVersion 1
20+
21+
URL=$(osascript -e "tell application \"$browser\" to get URL of active tab of first window")
22+
23+
open -a "$browser" -n --args --incognito --new-window "$URL"
24+

0 commit comments

Comments
 (0)