Отсканируй на iPhone, чтобы установить
This is an installer for "AdBlock S Edition"
Что нового
Версия 1.0
First release
Что делает
Действий: 21-
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
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#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)
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от comuter
Вам также может понравиться
Реклама