ShareShortcuts

Safari Error Message Generator

Create Plausible and Authentic-Looking Error Messages with a few taps

un7x
Dupliquer « Safari Error Message Generator »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que un7x soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
38K
Enregistré
2
Actions
77
Catégorie
Fun
Version
1.0
Langue
EN

Create Plausible and Authentic-Looking Error Messages with a few taps.

SEMG - Safari Error Message Generator allows you to create real looking error messages, using these presets:

Webpage Crashed

Internal WebKit Error

Server Connection Lost

Cannot Parse Response

Internet Connection Lost

Server Connection Timed Out

Not Allowed To Use Restricted Network Port

Or alternatively you can make your own custom error message, you will be able to customize the webpage title and content.

Nouveautés

Version 1.0

First release

Historique des versions
1.0 14 déc. 2022

First release

Ce qu’il fait

77 actions
  1. Get Webpage Detail
  2. If
  3. Comment
    Developed by: UN1X (UN1Xmedia#9224 on Discord, @UN1Xmedia on YouTube.) Credits to https://appletoolbox.com for the View Source Code Method.
  4. Text
  5. Set Variable
    Url
  6. If
  7. Set Variable
    Url
  8. Get Device Details
  9. Set Variable
    AutoType
  10. Number
  11. Number
  12. Show Alert
  13. Comment
    The version names come at random, I just count how many changes I made, calculate if they’re big or small changes, then adjust the numbers and letters accordingly. It’s called The Dynamic Update, because some of the the preset’s content change dynam…
  14. Choose from Menu
    Select a Preset or make your own Error Message.
  15. Comment
    If you find other errors messages, please contact me at [email protected]
  16. Choose from Menu
    Webpage Crashed
  17. Text
  18. Set Variable
    A
  19. Text
  20. Choose from Menu
    Internal WebKit Error
  21. Text
  22. Set Variable
    A
  23. Text
  24. Choose from Menu
    Server Connection Lost
  25. Text
  26. Set Variable
    A
  27. Text
  28. Choose from Menu
    Cannot Parse Response
  29. Text
  30. Set Variable
    A
  31. Text
  32. Choose from Menu
    Internet Connection Lost
  33. List
  34. Choose from List
  35. If
  36. Set Variable
    Device type
  37. If
  38. Set Variable
    Device type
  39. Text
  40. Set Variable
    A
  41. Text
  42. Choose from Menu
    Server Connection Timed Out
  43. Text
  44. Set Variable
    A
  45. Text
  46. Choose from Menu
    Not Allowed To Use Restricted Network Port
  47. Text
  48. Set Variable
    A
  49. Text
  50. Choose from Menu
    Custom…
  51. Ask for Input
    Enter the webpage title
  52. Set Variable
    Crash title
  53. Ask for Input
    Enter error message
  54. Set Variable
    Crash message
  55. Text
  56. Set Variable
    A
  57. Text
  58. Choose from Menu
    …:
  59. Choose from Menu
    Edit code
  60. Text
  61. Quick Look
  62. Show Alert
  63. Copy to Clipboard
  64. Set Variable
    CtC
  65. Choose from Menu
    Copy to Clipboard
  66. Set Variable
    CtC
  67. Choose from Menu
    Open in Safari
  68. Set Variable
    CtC
  69. If
  70. Text
  71. Copy to Clipboard
  72. Show Alert
  73. If
  74. Base64 Encode
  75. URL
    data:text/html;base64,…
  76. Open URLs
  77. Stop This Shortcut

Afficher en tant que code
Bêta

Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.

#include 'actions/web'
#define color red
#define glyph alertTriangle

const PageURL = getWebPageDetail(ShortcutInput, "Page URL")

if !PageURL {
	/*
	Developed by: UN1X
	(UN1Xmedia#9224 on Discord, @UN1Xmedia on YouTube.)
	Credits to https://appletoolbox.com for the View Source Code Method.
	*/
	@Url = "(null)"
} else {
	@Url = PageURL
}
getDeviceDetail("Device Model")
@AutoType
confirm("Since this program was made with the iPadOS 16 Beta, this program may be unstable. (The Dynamic Update, Version 37.1a)")
/*
The version names come at random, I just count how many changes I made, calculate if they’re big or small changes, then adjust the numbers and letters accordingly.

It’s called The Dynamic Update, because some of the the preset’s content change dynamically according to the website you run it on using Share Sheet. And its more lighter than v18.
*/

menu "Select a Preset or make your own Error Message." {
	// If you find other errors messages, please contact me at [email protected]

item "Webpage Crashed":
	@A = "<head>        <meta http-equiv=\\"content-type\\" content=\\"text/html; charset=utf-8\\">\n        <meta name=\\"format-detection\\" content=\\"telephone=no\\">\n        <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no\\">\n        <meta name=\\"disabled-adaptations\\" content=\\"watch\\">\n        <style>\n            :root {\n                color-scheme: light dark;\n                --body-text-color: rgb(125, 127, 127);\n            }\n\n            @media (prefers-color-scheme: dark) {\n                :root {\n                    --body-text-color: rgb(133, 133, 133);\n                }\n            }\n\n            html {\n                width: 100%;\n            }\n\n            body {\n                -webkit-text-size-adjust: none;\n                -webkit-user-select: none;\n                color: var(--body-text-color);\n                font: -apple-system-short-body;\n                height: 100%;\n                margin: 0;\n                padding: 0;\n            }\n\n            body.watch {\n                align-items: center;\n                background: black;\n                color: white;\n                display: flex;\n                font: -apple-system-body;\n                width: 100%;\n            }\n\n            p {\n                text-align: center;\n                word-wrap: break-word;\n            }\n\n            body:not(.watch) p {\n                padding: 0 50px;\n                margin: 123px auto 0 auto;\n                max-width: 832px;\n            }\n\n\t\t\tbody:not(.watch).preview p {\n\t\t\t\tfont-size: 5vw;\n\t\t\t}\n\n            body.watch p {\n                padding: 0;\n                max-width: 100vw;\n            }\n\n            a {\n                font-weight: bold;\n                color: inherit;\n            }\n\n            \n        </style>\n        <title>Webpage crashed</title>\n    </head>\n    <body class=\\"pad\\">\n        <p>Safari could not open \\"{@Url}\\", A problem repeatedly&nbsp;occurred.</p>\n    \n\n</body>"
item :
	@A = "<head>\n        <meta http-equiv=\\"content-type\\" content=\\"text/html; charset=utf-8\\">\n        <meta name=\\"format-detection\\" content=\\"telephone=no\\">\n        <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no\\">\n        <meta name=\\"disabled-adaptations\\" content=\\"watch\\">\n        <style>\n            :root {\n                color-scheme: light dark;\n                --body-text-color: rgb(125, 127, 127);\n            }\n\n            @media (prefers-color-scheme: dark) {\n                :root {\n                    --body-text-color: rgb(133, 133, 133);\n                }\n            }\n\n            html {\n                width: 100%;\n            }\n\n            body {\n                -webkit-text-size-adjust: none;\n                -webkit-user-select: none;\n                color: var(--body-text-color);\n                font: -apple-system-short-body;\n                height: 100%;\n                margin: 0;\n                padding: 0;\n            }\n\n            body.watch {\n                align-items: center;\n                background: black;\n                color: white;\n                display: flex;\n                font: -apple-system-body;\n                width: 100%;\n            }\n\n            p {\n                text-align: center;\n                word-wrap: break-word;\n            }\n\n            body:not(.watch) p {\n                padding: 0 50px;\n                margin: 123px auto 0 auto;\n                max-width: 832px;\n            }\n\n\t\t\tbody:not(.watch).preview p {\n\t\t\t\tfont-size: 5vw;\n\t\t\t}\n\n            body.watch p {\n                padding: 0;\n                max-width: 100vw;\n            }\n\n            a {\n                font-weight: bold;\n                color: inherit;\n            }\n\n            \n        </style>\n        <title>Cannot Open Page</title>\n    </head>\n    <body class=\\"pad\\">\n        <p>Safari cannot open the page \\"{@Url}\\".<br><br>The error was: “WebKit encountered an internal&nbsp;error”.</p>\n    \n\n</body>"
item "Server Connection Lost":
	@A = "<head>        <meta http-equiv=\\"content-type\\" content=\\"text/html; charset=utf-8\\">\n        <meta name=\\"format-detection\\" content=\\"telephone=no\\">\n        <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no\\">\n        <meta name=\\"disabled-adaptations\\" content=\\"watch\\">\n        <style>\n            :root {\n                color-scheme: light dark;\n                --body-text-color: rgb(125, 127, 127);\n            }\n\n            @media (prefers-color-scheme: dark) {\n                :root {\n                    --body-text-color: rgb(133, 133, 133);\n                }\n            }\n\n            html {\n                width: 100%;\n            }\n\n            body {\n                -webkit-text-size-adjust: none;\n                -webkit-user-select: none;\n                color: var(--body-text-color);\n                font: -apple-system-short-body;\n                height: 100%;\n                margin: 0;\n                padding: 0;\n            }\n\n            body.watch {\n                align-items: center;\n                background: black;\n                color: white;\n                display: flex;\n                font: -apple-system-body;\n                width: 100%;\n            }\n\n            p {\n                text-align: center;\n                word-wrap: break-word;\n            }\n\n            body:not(.watch) p {\n                padding: 0 50px;\n                margin: 123px auto 0 auto;\n                max-width: 832px;\n            }\n\n\t\t\tbody:not(.watch).preview p {\n\t\t\t\tfont-size: 5vw;\n\t\t\t}\n\n            body.watch p {\n                padding: 0;\n                max-width: 100vw;\n            }\n\n            a {\n                font-weight: bold;\n                color: inherit;\n            }\n\n            \n        </style>\n        <title>Cannot Open Page</title>\n    </head>\n    <body class=\\"pad\\">\n        <p>Safari could not open the page \\"{@Url}\\", because the connection to the server was&nbsp;lost.</p>\n    \n\n</body>"
item "Cannot Parse Response":
	@A = "<head>\n        <meta http-equiv=\\"content-type\\" content=\\"text/html; charset=utf-8\\">\n        <meta name=\\"format-detection\\" content=\\"telephone=no\\">\n        <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no\\">\n        <meta name=\\"disabled-adaptations\\" content=\\"watch\\">\n        <style>\n            :root {\n                color-scheme: light dark;\n                --body-text-color: rgb(125, 127, 127);\n            }\n\n            @media (prefers-color-scheme: dark) {\n                :root {\n                    --body-text-color: rgb(133, 133, 133);\n                }\n            }\n\n            html {\n                width: 100%;\n            }\n\n            body {\n                -webkit-text-size-adjust: none;\n                -webkit-user-select: none;\n                color: var(--body-text-color);\n                font: -apple-system-short-body;\n                height: 100%;\n                margin: 0;\n                padding: 0;\n            }\n\n            body.watch {\n                align-items: center;\n                background: black;\n                color: white;\n                display: flex;\n                font: -apple-system-body;\n                width: 100%;\n            }\n\n            p {\n                text-align: center;\n                word-wrap: break-word;\n            }\n\n            body:not(.watch) p {\n                padding: 0 50px;\n                margin: 123px auto 0 auto;\n                max-width: 832px;\n            }\n\n\t\t\tbody:not(.watch).preview p {\n\t\t\t\tfont-size: 5vw;\n\t\t\t}\n\n            body.watch p {\n                padding: 0;\n                max-width: 100vw;\n            }\n\n            a {\n                font-weight: bold;\n                color: inherit;\n            }\n\n            \n        </style>\n        <title>Cannot Open Page</title>\n    </head>\n    <body class=\\"pad\\">\n        <p>Safari cannot open the page \\"{@Url}\\".<br><br>The error was: “cannot parse&nbsp;response”.</p>\n    \n\n</body>"
item "Internet Connection Lost":
	const List = list("Automatic", "iPad", "iPhone", "Macbook", "iPod Touch", "iMac", "Watch")
	const ChosenItem = chooseFromList(List, "Select your Apple Device")
	if ChosenItem != "Automatic" {
		@DeviceType = ChosenItem
	} else {
		@DeviceType = @AutoType
	}
	@A = "<head>\n        <meta http-equiv=\\"content-type\\" content=\\"text/html; charset=utf-8\\">\n        <meta name=\\"format-detection\\" content=\\"telephone=no\\">\n        <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no\\">\n        <meta name=\\"disabled-adaptations\\" content=\\"watch\\">\n        <style>\n            :root {\n                color-scheme: light dark;\n                --body-text-color: rgb(125, 127, 127);\n            }\n\n            @media (prefers-color-scheme: dark) {\n                :root {\n                    --body-text-color: rgb(133, 133, 133);\n                }\n            }\n\n            html {\n                width: 100%;\n            }\n\n            body {\n                -webkit-text-size-adjust: none;\n                -webkit-user-select: none;\n                color: var(--body-text-color);\n                font: -apple-system-short-body;\n                height: 100%;\n                margin: 0;\n                padding: 0;\n            }\n\n            body.watch {\n                align-items: center;\n                background: black;\n                color: white;\n                display: flex;\n                font: -apple-system-body;\n                width: 100%;\n            }\n\n            p {\n                text-align: center;\n                word-wrap: break-word;\n            }\n\n            body:not(.watch) p {\n                padding: 0 50px;\n                margin: 123px auto 0 auto;\n                max-width: 832px;\n            }\n\n\t\t\tbody:not(.watch).preview p {\n\t\t\t\tfont-size: 5vw;\n\t\t\t}\n\n            body.watch p {\n                padding: 0;\n                max-width: 100vw;\n            }\n\n            a {\n                font-weight: bold;\n                color: inherit;\n            }\n\n            \n        </style>\n        <title>Cannot Open Page</title>\n    </head>\n    <body class=\\"pad\\">\n        <p>Safari cannot open the page “{@Url}” because your {@DeviceType} is not connected to the&nbsp;Internet.</p>\n    \n\n</body>"
item :
	@A = "<head>        <meta http-equiv=\\"content-type\\" content=\\"text/html; charset=utf-8\\">\n        <meta name=\\"format-detection\\" content=\\"telephone=no\\">\n        <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no\\">\n        <meta name=\\"disabled-adaptations\\" content=\\"watch\\">\n        <style>\n            :root {\n                color-scheme: light dark;\n                --body-text-color: rgb(125, 127, 127);\n            }\n\n            @media (prefers-color-scheme: dark) {\n                :root {\n                    --body-text-color: rgb(133, 133, 133);\n                }\n            }\n\n            html {\n                width: 100%;\n            }\n\n            body {\n                -webkit-text-size-adjust: none;\n                -webkit-user-select: none;\n                color: var(--body-text-color);\n                font: -apple-system-short-body;\n                height: 100%;\n                margin: 0;\n                padding: 0;\n            }\n\n            body.watch {\n                align-items: center;\n                background: black;\n                color: white;\n                display: flex;\n                font: -apple-system-body;\n                width: 100%;\n            }\n\n            p {\n                text-align: center;\n                word-wrap: break-word;\n            }\n\n            body:not(.watch) p {\n                padding: 0 50px;\n                margin: 123px auto 0 auto;\n                max-width: 832px;\n            }\n\n\t\t\tbody:not(.watch).preview p {\n\t\t\t\tfont-size: 5vw;\n\t\t\t}\n\n            body.watch p {\n                padding: 0;\n                max-width: 100vw;\n            }\n\n            a {\n                font-weight: bold;\n                color: inherit;\n            }\n\n            \n        </style>\n        <title>Cannot Open Page</title>\n    </head>\n    <body class=\\"pad\\">\n        <p>Safari could not open the page \\"{@Url}\\", because the server stopped&nbsp;responding.</p>\n    \n\n</body>"
item :
	@A = "<head>\n        <meta http-equiv=\\"content-type\\" content=\\"text/html; charset=utf-8\\">\n        <meta name=\\"format-detection\\" content=\\"telephone=no\\">\n        <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no\\">\n        <meta name=\\"disabled-adaptations\\" content=\\"watch\\">\n        <style>\n            :root {\n                color-scheme: light dark;\n                --body-text-color: rgb(125, 127, 127);\n            }\n\n            @media (prefers-color-scheme: dark) {\n                :root {\n                    --body-text-color: rgb(133, 133, 133);\n                }\n            }\n\n            html {\n                width: 100%;\n            }\n\n            body {\n                -webkit-text-size-adjust: none;\n                -webkit-user-select: none;\n                color: var(--body-text-color);\n                font: -apple-system-short-body;\n                height: 100%;\n                margin: 0;\n                padding: 0;\n            }\n\n            body.watch {\n                align-items: center;\n                background: black;\n                color: white;\n                display: flex;\n                font: -apple-system-body;\n                width: 100%;\n            }\n\n            p {\n                text-align: center;\n                word-wrap: break-word;\n            }\n\n            body:not(.watch) p {\n                padding: 0 50px;\n                margin: 123px auto 0 auto;\n                max-width: 832px;\n            }\n\n\t\t\tbody:not(.watch).preview p {\n\t\t\t\tfont-size: 5vw;\n\t\t\t}\n\n            body.watch p {\n                padding: 0;\n                max-width: 100vw;\n            }\n\n            a {\n                font-weight: bold;\n                color: inherit;\n            }\n\n            \n        </style>\n        <title>Cannot Open Page</title>\n    </head>\n    <body class=\\"pad\\">\n        <p>Safari cannot open the page \\"{@Url}\\".<br><br>The error was: “Not allowed to&nbsp;use restricted network port”.</p>\n    \n\n</body>"
item "Custom…":
	prompt("Enter the webpage title")
	@CrashTitle
	prompt("Enter error message")
	@CrashMessage
	@A = "<head>\n        <meta http-equiv=\\"content-type\\" content=\\"text/html; charset=utf-8\\">\n        <meta name=\\"format-detection\\" content=\\"telephone=no\\">\n        <meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no\\">\n        <meta name=\\"disabled-adaptations\\" content=\\"watch\\">\n        <style>\n            :root {\n                color-scheme: light dark;\n                --body-text-color: rgb(125, 127, 127);\n            }\n\n            @media (prefers-color-scheme: dark) {\n                :root {\n                    --body-text-color: rgb(133, 133, 133);\n                }\n            }\n\n            html {\n                width: 100%;\n            }\n\n            body {\n                -webkit-text-size-adjust: none;\n                -webkit-user-select: none;\n                color: var(--body-text-color);\n                font: -apple-system-short-body;\n                height: 100%;\n                margin: 0;\n                padding: 0;\n            }\n\n            body.watch {\n                align-items: center;\n                background: black;\n                color: white;\n                display: flex;\n                font: -apple-system-body;\n                width: 100%;\n            }\n\n            p {\n                text-align: center;\n                word-wrap: break-word;\n            }\n\n            body:not(.watch) p {\n                padding: 0 50px;\n                margin: 123px auto 0 auto;\n                max-width: 832px;\n            }\n\n\t\t\tbody:not(.watch).preview p {\n\t\t\t\tfont-size: 5vw;\n\t\t\t}\n\n            body.watch p {\n                padding: 0;\n                max-width: 100vw;\n            }\n\n            a {\n                font-weight: bold;\n                color: inherit;\n            }\n\n            \n        </style>\n        <title>{@CrashTitle}</title>\n    </head>\n    <body class=\\"pad\\">\n        <p>{@CrashMessage}</p>\n    \n\n</body>"
}

menu "{}:" {
item "Edit code":
	const Text = "{@A}{Ask}"
	quicklook(Text)
	confirm("Click Ok to Copy to Clipboard")
	setClipboard(Text)
	@CtC
item "Copy to Clipboard":
	@CtC
item "Open in Safari":
	@CtC
}

if @CtC == 0 {
	const Text1 = "data:text/html,{}"
	setClipboard(Text1)
	confirm("Copied to Clipboard.")
} else {
	base64Encode(@A)
	const URL = url("data:text/html;base64,{}")
	openURL(URL)
}
stop()
Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.

Notes et avis

Écrire un avis
–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aucun avis pour le moment. Sois le premier à partager ton avis !

Publicité

Plus de un7x

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité