ShareShortcuts

Custom Lock Screen Text

First of all go to supervise.me and supervise your iDevice

outlander-2007
Fork “Custom Lock Screen Text”

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 outlander-2007 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
43K
Saved
0
Actions
41
Category
API
Version
1.0
Language
EN

First of all go to supervise.me and supervise your iDevice.

What's New

Version 1.0

First release

Version History
1.0 Apr 5, 2022

First release

What it does

41 actions
  1. Ask for Input
    Enter the text that will appear on the Lock Screen
  2. If
  3. Replace Text
  4. Set Variable
    TM
  5. If
  6. Set Variable
    TM
  7. Text
  8. Split Text
  9. Text
  10. Set Variable
    UPD
  11. Text
  12. Set Variable
    Counter
  13. Repeat
  14. Get Item from List
  15. Base64 Encode
  16. Get Contents of Web Page
  17. If
  18. Text
  19. Set Variable
    UPD
  20. If
  21. If
  22. Split Text
  23. Get Item from List
  24. Base64 Encode
  25. Get Item from List
  26. Base64 Encode
  27. If
  28. Get Contents of URL
    …
  29. Text
  30. Replace Text
  31. Base64 Encode
  32. Calculate
  33. Set Variable
    Counter
  34. If
  35. Show Alert
    Download the latest update from supervise.me
  36. Open URLs
  37. If
  38. Repeat
  39. Open URLs
  40. URL
    ……
  41. Open URLs

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/text'
#define color green
#define glyph lock

const ProvidedInput = prompt("Enter the text that will appear on the Lock Screen")

if ProvidedInput !contains "&" {
	replaceText("&", "&", ProvidedInput)
	@TM
} else {
	@TM = ProvidedInput
}
const Text = "aHR0cDovL3N1cGVydmlzZS5tZS9tcnRhdmNpMDAx,aHR0cDovL3N1cGVydmlzZS5tZS9tcnRhdmNpMDAy"
const SplitText = splitText(Text, ",")
@UPD = "NO"
@Counter = "1"

repeat _ for 2 {
	const ItemFromList = getListItem(SplitText, @Counter)
	base64Encode(ItemFromList)
	const ContentsOfWebPage = getWebpageContents()
	if ContentsOfWebPage contains "DOWNLOAD BLOCKED" {
		@UPD = "YES"
	} else {
		if ContentsOfWebPage contains "TElORVNFUEVSQVRPUg==" {
			const SplitText1 = splitText(ContentsOfWebPage, "TElORVNFUEVSQVRPUg==")
			const ItemFromList1 = getListItem(SplitText1, 2)
			base64Encode(ItemFromList1)
			const ItemFromList2 = getListItem(SplitText1, 1)
			const Base64Encoded = base64Encode(ItemFromList2)
		} else {
			downloadURL()
			const UpdatedText = replaceText("TVlTVFJJTkdIRVJF", @TM, false)
			base64Encode(UpdatedText)
		}
	}
	@Counter = @Counter + 1
}

if @UPD == "YES" {
	alert("Update available", "Download the latest update from supervise.me")
	openURL("supervise.me")
} else {
	repeat _ for nil {
		openURL(Base64Encoded)
		const URL = url("{}{}")
		openURL(URL)
	}
}
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 outlander-2007

See All

You Might Also Like

See All
Advertisement