-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "Open in Chrome Canary" extension.
- Loading branch information
Showing
6 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>Actions</key> | ||
<array> | ||
<dict> | ||
<key>Image File</key> | ||
<string>chrome.png</string> | ||
<key>Requirements</key> | ||
<array> | ||
<string>httpurls</string> | ||
</array> | ||
<key>Shell Script File</key> | ||
<string>open-in-canary.sh</string> | ||
<key>Title</key> | ||
<string>Open in Chrome Canary</string> | ||
</dict> | ||
</array> | ||
<key>Apps</key> | ||
<array> | ||
<dict> | ||
<key>Check Installed</key> | ||
<true/> | ||
<key>Bundle Identifier</key> | ||
<string>com.google.Chrome.Canary</string> | ||
<key>Link</key> | ||
<string>https://www.google.com/chrome/browser/canary.html</string> | ||
<key>Name</key> | ||
<string>Google Chrome Canary</string> | ||
</dict> | ||
</array> | ||
<key>Blocked Apps</key> | ||
<array> | ||
<string>com.google.Chrome.Canary</string> | ||
</array> | ||
<key>Extension Description</key> | ||
<string>Open the link in Google Chrome Canary.</string> | ||
<key>Extension Identifier</key> | ||
<string>de.marcgoertz.popclip.extension.open-in-canary</string> | ||
<key>Extension Name</key> | ||
<string>Open in Chrome Canary</string> | ||
<key>Version</key> | ||
<integer>1</integer> | ||
</dict> | ||
</plist> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
COUNT=0 | ||
for THIS_URL in $POPCLIP_URLS | ||
do | ||
let COUNT=COUNT+1 | ||
if [[ -n "$THIS_URL" ]]; then #if non-empty | ||
echo "Opening [$THIS_URL]" | ||
open -b com.google.Chrome.Canary "$THIS_URL" | ||
fi | ||
if [[ $COUNT -ge 10 ]]; then #limit to 10 so as not to go crazy | ||
break | ||
fi | ||
done |