Scanne avec ton iPhone pour installer
This is the first prototype version of a new browser
Nouveautés
Version 1.0
First release
Ce qu’il fait
23 actions-
Get IP Address
-
If
-
Show Result
-
Stop This Shortcut
-
If
-
Show Result
-
Ask for InputWhat do you want to vearch? (For settings, type “Settings”.)
-
If
-
If
-
Set VariableWeb Name
-
Text
-
Set VariableURL
-
Get Contents of URL…
-
If
-
Show Result
-
Stop This Shortcut
-
If
-
Choose from MenuPick one:
-
Choose from MenuLoad Basic HTML
-
Quick Look
-
Choose from MenuQuick Show
-
Get Text from Input
-
Show Result
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#include 'actions/web'
#include 'actions/network'
#define color darkblue
#define glyph feed
const CurrentIPAddress = getExternalIP()
if !CurrentIPAddress {
show("Error %1%: No Wi-Fi detected.")
stop()
} else {
}
show("Hello, nice to see you again!")
const ProvidedInput = prompt("What do you want to vearch? (For settings, type “Settings”.)")
if ProvidedInput == "Settings" {
} else {
}
@WebName = ProvidedInput
@URL = "{@WebName}.com"
const ContentsOfURL = fileRequest(@URL, "GET")
if !ContentsOfURL {
show("Error 404: Unable to find URL.\nThis could happen because you don't have Wi-Fi or you have typed the wrong name of the website. It could also be because the website is temporarily down or has moved to another address.")
stop()
} else {
}
menu "Pick one:" {
item "Load Basic HTML":
quicklook(ContentsOfURL)
item "Quick Show":
getText(ContentsOfURL)
show()
}
Ouvrir dans Cherri Playground
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 vultario
Ça pourrait aussi te plaire
Publicité