ShareShortcuts

Safari Error Message Generator

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

un7x
„Safari Error Message Generator“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit un7x die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
38K
Gesichert
2
Aktionen
77
Kategorie
Fun
Version
1.0
Sprache
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.

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 14. Dez 2022

First release

Was er macht

77 Aktionen
  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

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#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()
Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

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

Werbung

Mehr von un7x

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung