What I was looking to do was add a ‘Share’ extension to Brave so I could easily share into email or Messages etc, as you can in Safari.
That’s a good question! All browsers are able to share the current page (URL) via the Share Sheet, and when a workflow specifies that it accepts URLs, the workflow will show up in the Share sheet for that browser. So here we’ll build a bare-bones workflow here that will send the title, URL, and current selection to a recipient using Messages.
First, open a new workflow in the Shortcuts editor, and make it available to the Share Sheet (see How to add a Shortcuts workflow to a browser's Share Sheet). Ensure that the only accepted input is URLs.
We know that when you use the Share button, you want to share the contents of the active tab. What we don’t know is which browser triggered the workflow, though. So let’s add a Get Details of Browser Tab action, and set it to return the active tab of the the front window of the frontmost browser.
Using that result, we compile the message that we want in a built-in Text action:
Check out this website:
> (Current Selection)
(Page Title)
(Page URL)
Insert the variables by right-clicking, Insert Variable → Details of Browser Tab. Then, click the newly inserted variable, which brings up a panel showing the object’s properties, and pick “Current Selection”, “Page Title”, and “Page URL”, respectively.
Finally, add a built-in Send Message action, and use the result of the previous Text action for the “Message” parameter.
The whole workflow should look like this:
And here’s the workflow for download: