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
Bug fixes
What it does
36 actions-
Get Webpage Detail
-
Replace Text
-
Replace Text
-
Set VariablePageText
-
Split Text
-
Count
-
If
-
Get Item from List
-
Combine Text
-
Set VariableText1
-
Get Item from List
-
Combine Text
-
Set VariableText2
-
Text
-
Set VariablePageText
-
Ask ChatGPT
-
Set VariableChatResponse
-
Choose from MenuHow do you like to read summary?
-
Choose from MenuShow the summary
-
Make Rich Text from Markdown
-
Replace Text
-
Show Result
-
Choose from MenuOpen in Notes
-
Make Rich Text from Markdown
-
Create Note
-
Choose from MenuRead aloud (voice)
-
Make Rich Text from Markdown
-
Speak Text
-
Choose from MenuDo you want to support Developer?
-
Choose from MenuYes, buy a coffee.
-
Open URLs
-
Choose from MenuNo, thanks.
-
Choose from MenuSafariGPT iOS app is available on App Store 🚀!
-
Choose from MenuSee SafariGPT on App Store
-
Open URLs
-
Choose from MenuNo, thanks
View as code
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":
}
Ratings & Reviews
Write a ReviewNo reviews yet. Be the first to share what you think!