ShareShortcuts
Fork “SafariGPT”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so humblerevolter gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
36K
Saved
9
Actions
36
Category
Productivity
Version
1.10
Language
EN

Preview

Ever since ChatGPT came out, I needed Safari extensions for iOS for summarizing articles when I am lazy to read the whole page.

So I came upon shortcuts and loved it, and wrote my first page summarizing shortcut that turns page into Tweet Threads using Official ‘Ask ChatGPT’ shortcut.

Note that since it uses official shortcut of ChatGPT, you need to have Official OpenAI ChatGPT iOS app installed.

How to use:

- Make sure ChatGPT app is installed.

- Add Shortcut

- While on Safari, click Share.

- Scroll all the way down and click SafariGPT

- It will take around 30-40 seconds.

If you find it useful and want to support: https://www.buymeacoffee.com/bayramn

Edit: SafariGPT iOS app is available on App Store! https://apps.apple.com/us/app/safarigpt-summarize-pages/id6642665387

What's New

Version 1.10

Bug fixes

Version History
1.10 Dec 28, 2024

Bug fixes

1.9 Aug 12, 2024

Bug fixes

1.8 Mar 24, 2024

Fixed bugs

1.7 Nov 29, 2023

Bug fix

1.6 Oct 26, 2023

Ask ChatGPT Bug

1.5 Aug 10, 2023

Bug fix

1.4 Aug 8, 2023

Bug fixes

1.3 Aug 6, 2023

Added open the summary in Notes app option.

1.2 Jul 30, 2023

Now summary can be read aloud by voice over.

1.1 Jul 28, 2023

Fixed Shortcut fails in long articles. After certain length, page would be cut.

1.0 Jul 26, 2023

First release

What it does

36 actions
  1. Get Webpage Detail
  2. Replace Text
  3. Replace Text
  4. Set Variable
    PageText
  5. Split Text
  6. Count
  7. If
  8. Get Item from List
  9. Combine Text
  10. Set Variable
    Text1
  11. Get Item from List
  12. Combine Text
  13. Set Variable
    Text2
  14. Text
  15. Set Variable
    PageText
  16. Ask ChatGPT
  17. Set Variable
    ChatResponse
  18. Choose from Menu
    How do you like to read summary?
  19. Choose from Menu
    Show the summary
  20. Make Rich Text from Markdown
  21. Replace Text
  22. Show Result
  23. Choose from Menu
    Open in Notes
  24. Make Rich Text from Markdown
  25. Create Note
  26. Choose from Menu
    Read aloud (voice)
  27. Make Rich Text from Markdown
  28. Speak Text
  29. Choose from Menu
    Do you want to support Developer?
  30. Choose from Menu
    Yes, buy a coffee.
  31. Open URLs
  32. Choose from Menu
    No, thanks.
  33. Choose from Menu
    SafariGPT iOS app is available on App Store 🚀!
  34. Choose from Menu
    See SafariGPT on App Store
  35. Open URLs
  36. Choose from Menu
    No, thanks

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/web'
#define color taupe

getWebPageDetail(ShortcutInput, "Page Contents")
replaceText("\n", "")
replaceText("\n\n", "")
@PageText
const SplitText = splitText(@PageText, " ")
const Count = count(SplitText)

if Count > 4400 {
	const ItemFromList = getListItems(SplitText, 1, 2200)
	joinText(ItemFromList, " ")
	@Text1
	const ItemFromList1 = getListItems(SplitText, 2200, 4400)
	joinText(ItemFromList1, " ")
	@Text2
	@PageText = "{@Text1}{@Text2}"
}
rawAction("com.openai.chat.AskIntent", {
	"AppIntentDescriptor": "",
	"ShowWhenRun": false,
	"continuous": false,
	"model": "",
	"newChat": false,
	"prompt": "Give me a quick summary and key takeaways on bullet points .\\\"{@PageText}\\\""
})
@ChatResponse

menu "How do you like to read summary?" {
item "Show the summary":
	getRichTextFromMarkdown(@ChatResponse)
	replaceText("â€t™", "'")
	show("{}\n\n\n\n\n\n\n\nCopyright SafariGPT ©, 2024")
item "Open in Notes":
	getRichTextFromMarkdown(@ChatResponse)
	rawAction("com.apple.mobilenotes.SharingExtension", {
		"AppIntentDescriptor": "",
		"OpenWhenRun": true,
		"WFCreateNoteInput": "{}"
	})
item "Read aloud (voice)":
	getRichTextFromMarkdown(@ChatResponse)
	speak()
}

menu "Do you want to support Developer?" {
item "Yes, buy a coffee.":
	openURL("https://www.buymeacoffee.com/bayramn")
item "No, thanks.":
}

menu "SafariGPT iOS app is available on App Store 🚀! " {
item "See SafariGPT on App Store":
	openURL("https://apps.apple.com/in/app/sumup-for-safari/id6642665387")
item "No, thanks":
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by humblerevolter

See All

You Might Also Like

See All
Advertisement