ShareShortcuts

AdBlock S Installer

This is an installer for "AdBlock S Edition"

comuter
Fork “AdBlock S Installer”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so comuter gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
21K
Saved
1
Actions
21
Category
API
Version
1.0
Language
EN

This is an installer for "AdBlock S Edition"

What's New

Version 1.0

First release

Version History
1.0 Sep 17, 2024

First release

What it does

21 actions
  1. Random Number
  2. Ask for Input
    Please enter this captcha: …
  3. If
  4. Show Notification
    Checking internet connection...
  5. Get IP Address
  6. Wait
  7. If
  8. Show Notification
    Checking shortcuts...
  9. Wait
  10. Get My Shortcuts
  11. If
  12. Show Notification
    Installing shortcut...
  13. Wait
  14. Open URLs
  15. If
  16. Show Notification
    You already have AdBlock S Edition
  17. If
  18. Show Notification
    Please check your internet connection
  19. Stop This Shortcut
  20. If
  21. Run Shortcut
    AdBlock S Installer

View as code
Beta

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

See All

You Might Also Like

See All
Advertisement