Scan with your iPhone to install
This is an installer for "AdBlock S Edition"
What's New
Version 1.0
First release
What it does
21 actions-
Random Number
-
Ask for InputPlease enter this captcha: …
-
If
-
Show NotificationChecking internet connection...
-
Get IP Address
-
Wait
-
If
-
Show NotificationChecking shortcuts...
-
Wait
-
Get My Shortcuts
-
If
-
Show NotificationInstalling shortcut...
-
Wait
-
Open URLs
-
If
-
Show NotificationYou already have AdBlock S Edition
-
If
-
Show NotificationPlease check your internet connection
-
Stop This Shortcut
-
If
-
Run ShortcutAdBlock S Installer
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'
#include 'actions/shortcuts'
#include 'actions/network'
#define color darkgray
#define glyph downloadArrow
const RandomNumber = randomNumber(10000, 99999)
const ProvidedInput = prompt("Please enter this captcha: {RandomNumber}", "Number")
if ProvidedInput == RandomNumber {
showNotification("Checking internet connection...", "Loading (1/3)", false)
const CurrentIPAddress = getExternalIP()
wait(3)
if CurrentIPAddress {
showNotification("Checking shortcuts...", "Loading (2/3)", false)
wait(2)
const MyShortcuts = getShortcuts()
if MyShortcuts['Name'] !contains "AdBlock S Edition" {
showNotification("Installing shortcut...", "Loading (3/3)", false)
wait(0)
openURL("https://www.icloud.com/shortcuts/850537ef17c94382bc5d5acbbd64a708")
} else {
showNotification("You already have AdBlock S Edition", "Error!", false)
}
} else {
showNotification("Please check your internet connection", "Failed to install", false)
stop()
}
} else {
runSelf(ProvidedInput)
}
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by comuter
You Might Also Like
Advertisement