Safari Error Message Generator
Create Plausible and Authentic-Looking Error Messages with a few taps
un7xScan med din iPhone for at installere
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.
Nyheder
Version 1.0
First release
Hvad den gør
77 handlinger-
Get Webpage Detail
-
If
-
CommentDeveloped by: UN1X (UN1Xmedia#9224 on Discord, @UN1Xmedia on YouTube.) Credits to https://appletoolbox.com for the View Source Code Method.
-
Text
-
Set VariableUrl
-
If
-
Set VariableUrl
-
Get Device Details
-
Set VariableAutoType
-
Number
-
Number
-
Show Alert
-
CommentThe 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…
-
Choose from MenuSelect a Preset or make your own Error Message.
-
CommentIf you find other errors messages, please contact me at [email protected]
-
Choose from MenuWebpage Crashed
-
Text
-
Set VariableA
-
Text
-
Choose from MenuInternal WebKit Error
-
Text
-
Set VariableA
-
Text
-
Choose from MenuServer Connection Lost
-
Text
-
Set VariableA
-
Text
-
Choose from MenuCannot Parse Response
-
Text
-
Set VariableA
-
Text
-
Choose from MenuInternet Connection Lost
-
List
-
Choose from List
-
If
-
Set VariableDevice type
-
If
-
Set VariableDevice type
-
Text
-
Set VariableA
-
Text
-
Choose from MenuServer Connection Timed Out
-
Text
-
Set VariableA
-
Text
-
Choose from MenuNot Allowed To Use Restricted Network Port
-
Text
-
Set VariableA
-
Text
-
Choose from MenuCustom…
-
Ask for InputEnter the webpage title
-
Set VariableCrash title
-
Ask for InputEnter error message
-
Set VariableCrash message
-
Text
-
Set VariableA
-
Text
-
Choose from Menu…:
-
Choose from MenuEdit code
-
Text
-
Quick Look
-
Show Alert
-
Copy to Clipboard
-
Set VariableCtC
-
Choose from MenuCopy to Clipboard
-
Set VariableCtC
-
Choose from MenuOpen in Safari
-
Set VariableCtC
-
If
-
Text
-
Copy to Clipboard
-
Show Alert
-
If
-
Base64 Encode
-
URLdata:text/html;base64,…
-
Open URLs
-
Stop This Shortcut
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#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 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 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 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 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 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 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 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()
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Mere fra un7x
Du vil måske også kunne lide
Annonce