Safari Actions
for Apple Shortcuts
Supercharge your iPhone web browsing with 23 Safari actions for Shortcuts. Save articles to Reading List with one tap, create custom search engines for any website, open multiple tabs instantly, and archive web pages as PDFs. Stop repetitive browsing tasks-automate your entire Safari workflow.
Actions with Details (23)
Move Tabs to Tab Group
Safari
Move Safari tabs from their current Tab Group into a new one.
Bookmark URL
Safari
Creates a new bookmark for a given URL.
Find on Page
Safari
Find the given text on the selected tab.
Set Safari Focus Filter
Safari
Sets the behavior of the Safari app when the given Focus is enabled.
Delete Tab Groups
Safari
Delete one or more Safari Tab Groups.
Search Tabs
Safari
Perform a search of tabs in Safari.
Move Tabs to Window
Safari
Move Safari tabs from their current window into another window.
Show Window
Safari
Brings the given Safari window to the foreground.
Create Window
Safari
Creates a new browser window.
Bookmark Tab
Safari
Creates a new bookmark for this tab.
Open Tab Group
Safari
Opens the selected Tab Group.
Open Bookmark
Safari
Opens the selected Bookmark.
Search Website
Safari
browser_SearchWebsiteIntent_1.0.0_intent_description
Switch Tab
Safari
Switch to an existing tab.
Open View
Safari
Opens the view in Safari.
Open Link
Safari
Navigates a tab to the given URL.
Create New Tab
Safari
Opens a new tab in the current Tab Group.
Add Bookmark
Safari
Adds the current page to Bookmarks.
Delete Bookmarks
Safari
Deletes the selected bookmarks.
Close View
Safari
Closes the view in Safari.
Close Windows
Safari
Closes the selected windows.
Close Tab
Safari
Closes the selected tab.
Create Tab Group
Safari
Creates an empty Tab Group.
What You Can Automate with Safari
- Add any article to Safari Reading List from any app (Twitter, Reddit, email) with a single tap
- Open all your morning news sites (NYT, TechCrunch, Reddit) simultaneously with one shortcut
- Create custom search shortcuts: tap "Search GitHub", type your query, instantly get results
- Auto-save web articles as clean PDFs to Files, removing ads and keeping just the content
- Run JavaScript on web pages to extract data, fill forms, or modify content programmatically
- Build a "Research Mode" that opens 10 tabs for a topic, adds them all to Reading List, and creates a note
Frequently Asked Questions
How do I automate Safari web browsing with Shortcuts?
The 23 Safari actions let you open URLs, run web searches, add bookmarks, save to Reading List, execute JavaScript on pages, extract page content, download files, and manage browsing sessions. You can automate reading list management, create site-specific search shortcuts, archive articles as PDFs, scrape web data, open multiple tabs at once, and build custom browsing workflows that save you from repetitive clicking and typing.
Can I run custom JavaScript code on any website?
Yes! The "Run JavaScript on Web Page" action executes your custom JavaScript code on the current Safari tab. This unlocks powerful automation: extract specific data from pages (prices, headlines, stats), auto-fill forms with saved data, click buttons or links programmatically, modify page content, or scrape structured data. Combine with "Get Contents of Web Page" to fetch HTML for parsing. Perfect for web scraping, form automation, and extracting data from sites without APIs.
How do I create site-specific search shortcuts?
Use "Ask for Input" to capture your search query, then "Open URLs" with a formatted search URL. For example, GitHub: "https://github.com/search?q={{query}}", Amazon: "https://amazon.com/s?k={{query}}", Reddit: "https://reddit.com/search?q={{query}}". Create dedicated shortcuts named "Search GitHub", "Search Amazon", etc., add them to your home screen or widget, and you have custom search engines that skip Safari's address bar entirely. Way faster than typing!
How can I save web articles as PDFs without ads?
Share a web page to your shortcut, use "Get Article from Web Page" (this extracts just the main content, removing ads, navigation, and clutter), then "Make PDF" to convert the clean article, and finally "Save File" to store it in Files or iCloud Drive. You can organize by topic into folders, rename with the article title, or even upload to cloud storage. Perfect for building a personal research library or saving articles for offline reading.
Can I open multiple websites at once with one shortcut?
Absolutely! Create a shortcut with multiple "Open URLs" actions, each targeting a different site. Or use one "Open URLs" action with a list of URLs separated by new lines. Perfect for morning routines: "Morning News" opens NYT, WSJ, and TechCrunch; "Work Dashboard" opens Gmail, Slack, and Trello; "Research Mode" opens 10 relevant sites for your current project. Add to your home screen for instant access.
