grep jason_

Siri Shortcuts - Episode 5

Shortcut Name: Save Safari URL to Bookmarking Service
Revision: 1.0
Add to Shortcuts!

What does it do?
This one came from an idea that @cm wanted to accomplish on their iPhone. The idea is to take a given Safari page, and send a link to the bookmarking service The premise of the service is that you simply replace the http:// or https:// of the URL with and it adds it to your saved account.

How does it work?

  1. Use the share sheet to send the URL of the current webpage to the Shortcut.
  2. Then convert the URL to text.
  3. Use regex to find either http:// or https:// and replace with
  4. Open the newly formatted URL in Safari.

"Source Code"
Shortcut Code Screenshot

Check out other shortcuts!