ShareShortcuts
Создать форк «Webloc Manager»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы idkwhatagoodnameis получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
22K
Сохранено
1
Действия
164
Категория
Utilities
Версия
1.0
Язык
EN

Version 2.1 **FOR LATEST VERSION, GO TO MY ROUTINEHUB** https://routinehub.co/shortcut/19252/ YouTube video: https://youtube.com/watch?v=E200HR6imhw Webloc File Manager is a shortcut I decided to make after I was tired of having no way to get past screen time. But then I eventually found out about webloc files, which is kind of just a web preview inside a file. You can use these webloc files to bypass/get past screen time browsing restrictions during downtime or just while screen time is on. And this shortcut can also work if the shortcuts app is restricted during screen time, all you need to do is add the shortcut to your home screen and you’ll be able to run it while screen time is on. Features Open Webloc Files: Open any webloc file to browse the internet without Screen Time. Create New Webloc Files: Generate new webloc files by entering the desired URL and title. Edit Existing Webloc Files: Modify the URL or title of your current webloc files. Delete Webloc Files: Remove any unwanted webloc files. List All Webloc Files: View a list of all your webloc files. Create a Temporary Webloc File: Temporarily create and then open file to browse the internet without having to setup and create a webloc file first, this file gets deleted after using it. Share Sheet Compatability: You can share a link to the shortcut to create a webloc file. Bypass Screen Time Restrictions: Use your saved webloc files to browse the internet even when Screen Time restrictions are active. Compatibility Devices: This shortcut should work seamlessly on iPhone and iPad (not tested on iPad tho). Tested on iOS 16, should work with any version above and below but not 100% sure. Credit to @sinceohsix on discord for the webloc generation code.

Что нового

Версия 1.0

First release

История версий
1.0 1 авг 2024 г.

First release

Что делает

Действий: 164
  1. Text
  2. Comment
    HOW TO FIX UNABLE TO CREATE FOLDER (only do this if the manager fails to create the folder): Delete the block below this comment, and then set the path of the webloc folder of your choice in the NEW block below this comment.
  3. Create Folder
  4. Folder
  5. If
  6. Show Alert
    ERROR
  7. Stop This Shortcut
  8. If
  9. If
  10. Show Alert
  11. Text
  12. Ask for Input
    Enter webloc name:
  13. Save File
  14. Rename File
  15. Stop This Shortcut
  16. If
  17. Choose from Menu
    Webloc Manager v2.1
  18. Choose from Menu
    [🌐] Open Webloc
  19. Get Contents of Folder
  20. Filter Files
  21. If
  22. Show Alert
    Error
  23. Stop This Shortcut
  24. Run Shortcut
    Webloc Manager
  25. Choose from List
  26. Choose from Menu
    Chose method to open Webloc
  27. Choose from Menu
    QuickView
  28. Quick Look
  29. Choose from Menu
    Files
  30. Open File
  31. Stop This Shortcut
  32. Choose from Menu
    [⏰] Open Temporary Webloc
  33. Get Contents of Folder
  34. Text
  35. If
  36. Show Alert
  37. Delete Files
  38. Stop This Shortcut
  39. Run Shortcut
    Webloc Manager
  40. If
  41. Show Alert
  42. Ask for Input
    Enter URL for Webloc
  43. If
  44. Show Alert
    ERROR
  45. Stop This Shortcut
  46. If
  47. If
  48. Show Alert
    ERROR
  49. Stop This Shortcut
  50. If
  51. If
  52. Show Alert
    ERROR
  53. Stop This Shortcut
  54. If
  55. If
  56. Show Alert
    ERROR
  57. Stop This Shortcut
  58. If
  59. Text
  60. Save File
  61. Rename File
  62. Choose from Menu
    Chose method to open Webloc
  63. Choose from Menu
    QuickView
  64. Quick Look
  65. Choose from Menu
    Files
  66. Open File
  67. Delete Files
  68. Choose from Menu
    [➕] Create New Webloc
  69. Ask for Input
    Enter URL for Webloc
  70. If
  71. Show Alert
    ERROR
  72. Stop This Shortcut
  73. Run Shortcut
    Webloc Manager
  74. If
  75. If
  76. Show Alert
    ERROR
  77. Stop This Shortcut
  78. Run Shortcut
    Webloc Manager
  79. If
  80. If
  81. Show Alert
    ERROR
  82. Stop This Shortcut
  83. Run Shortcut
    Webloc Manager
  84. If
  85. If
  86. Show Alert
    ERROR
  87. Stop This Shortcut
  88. Run Shortcut
    Webloc Manager
  89. If
  90. Text
  91. Ask for Input
    Enter Webloc Name
  92. Save File
  93. Rename File
  94. Save File
  95. Choose from Menu
    [✏️] Edit Webloc
  96. Choose from Menu
    What do you want to edit?
  97. Choose from Menu
    Webloc Name
  98. Get Contents of Folder
  99. Filter Files
  100. If
  101. Show Alert
    Error
  102. Stop This Shortcut
  103. Run Shortcut
    Webloc Manager
  104. If
  105. Choose from List
  106. Ask for Input
    Enter new Webloc Name
  107. Rename File
  108. Choose from Menu
    Webloc Address
  109. Get Contents of Folder
  110. Filter Files
  111. If
  112. Show Alert
    Error
  113. Stop This Shortcut
  114. Run Shortcut
    Webloc Manager
  115. If
  116. Choose from List
  117. Ask for Input
    Enter New URL for Webloc
  118. If
  119. Show Alert
    ERROR
  120. Stop This Shortcut
  121. Run Shortcut
    Webloc Manager
  122. If
  123. If
  124. Show Alert
    ERROR
  125. Stop This Shortcut
  126. Run Shortcut
    Webloc Manager
  127. If
  128. If
  129. Show Alert
    ERROR
  130. Stop This Shortcut
  131. Run Shortcut
    Webloc Manager
  132. If
  133. If
  134. Show Alert
    ERROR
  135. Stop This Shortcut
  136. Run Shortcut
    Webloc Manager
  137. If
  138. Text
  139. Delete Files
  140. Save File
  141. Rename File
  142. Save File
  143. Choose from Menu
    [❌] Delete Webloc/s
  144. Get Contents of Folder
  145. Filter Files
  146. If
  147. Show Alert
    Error
  148. Stop This Shortcut
  149. Run Shortcut
    Webloc Manager
  150. If
  151. Choose from List
  152. Delete Files
  153. Choose from Menu
    [📖] List Weblocs
  154. Get Contents of Folder
  155. Filter Files
  156. If
  157. Show Alert
    Error
  158. If
  159. Show Alert
    Current Weblocs
  160. Choose from Menu
    [❓] About This Shortcut
  161. Show Alert
    About
  162. Choose from Menu
    [🚪] Exit
  163. Stop This Shortcut
  164. Run Shortcut
    Open Webloc

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#include 'actions/documents'
#define color lightblue
#define glyph wrench

// HOW TO FIX UNABLE TO CREATE FOLDER (only do this if the manager fails to create the folder): Delete the block below this comment, and then set the path of the webloc folder of your choice in the NEW block below this comment.

const CreatedFolder = createFolder("/WeblocManager/")
const WeblocFolder = rawAction("is.workflow.actions.folder")

if !WeblocFolder {
	alert("Failed to create webloc folder! If this error persists, please follow the comment instructions at the top of the shortcut code.", "ERROR")
	stop()
} else {
}

if ShortcutInput {
	confirm("Click \"OK\" to add: {ShortcutInput} as a Webloc file.")
	const webloc = "<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\n<!DOCTYPE plist PUBLIC \\"-//Apple//DTD PLIST 1.0//EN\\" \\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\\">\n<plist version=\\"1.0\\">\n<dict>\n\t<key>URL</key>\n\t<string>{ShortcutInput}</string>\n</dict>\n</plist>\n"
	prompt("Enter webloc name:", false)
	const SavedFile = saveFile("", webloc, true)
	rename(SavedFile, "{}.webloc")
	stop()
} else {
}

menu "Webloc Manager v2.1" {
item "[🌐] Open Webloc":
	const ContentsOfFolder = getFolderContents(WeblocFolder, false)
	const Files = filterFiles(ContentsOfFolder, "Name", "A to Z")
	if !Files {
		alert("There are no current Webloc files", "Error")
		stop()
		runSelf()
	}
	const ChosenItem = chooseFromList(Files, "Chose Webloc to open")
	menu "Chose method to open Webloc" {
	item "QuickView":
		quicklook(ChosenItem)
	item "Files":
		openFile(ChosenItem)
	}
	stop()
item "[⏰] Open Temporary Webloc":
	getFolderContents(WeblocFolder, false)
	const Text = "{}"
	if Text contains "TemporaryWebloc" {
		confirm("There is already a temporary Webloc! Please continue to delete the Webloc and then restart this shortcut.")
		deleteFiles(, true)
		stop()
		runSelf()
	} else {
	}
	alert("Please remember to allow the Webloc Manager to delete the temporary file", "")
	const WeblocURL = prompt("Enter URL for Webloc", "URL")
	if !WeblocURL {
		alert("Invalid URL!", "ERROR")
		stop()
	} else {
		if WeblocURL !contains "https://" {
			alert("Invalid URL!", "ERROR")
			stop()
		} else {
			if WeblocURL endsWith "/" {
				alert("Invalid URL!", "ERROR")
				stop()
			} else {
				if WeblocURL !contains "." {
					alert("Invalid URL!", "ERROR")
					stop()
				} else {
				}
			}
		}
	}
	const webloc1 = "<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\n<!DOCTYPE plist PUBLIC \\"-//Apple//DTD PLIST 1.0//EN\\" \\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\\">\n<plist version=\\"1.0\\">\n<dict>\n\t<key>URL</key>\n\t<string>{WeblocURL}</string>\n</dict>\n</plist>\n"
	const SavedFile1 = saveFile("", webloc1, true)
	const File = rename(SavedFile1, "TemporaryWebloc.webloc")
	menu "Chose method to open Webloc" {
	item "QuickView":
		quicklook(File)
	item "Files":
		openFile(File)
	}
	deleteFiles(File, true)
item "[➕] Create New Webloc":
	const WeblocURL1 = prompt("Enter URL for Webloc", "URL")
	if !WeblocURL1 {
		alert("Invalid URL!", "ERROR")
		stop()
		runSelf()
	} else {
		if WeblocURL1 !contains "https://" {
			alert("Invalid URL!", "ERROR")
			stop()
			runSelf()
		} else {
			if WeblocURL1 endsWith "/" {
				alert("Invalid URL!", "ERROR")
				stop()
				runSelf()
			} else {
				if WeblocURL1 !contains "." {
					alert("Invalid URL!", "ERROR")
					stop()
					runSelf()
				} else {
				}
			}
		}
	}
	const webloc2 = "<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\n<!DOCTYPE plist PUBLIC \\"-//Apple//DTD PLIST 1.0//EN\\" \\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\\">\n<plist version=\\"1.0\\">\n<dict>\n\t<key>URL</key>\n\t<string>{WeblocURL1}</string>\n</dict>\n</plist>\n"
	const WeblocFilename = prompt("Enter Webloc Name", false)
	const SavedFile2 = saveFile("", webloc2, true)
	const File1 = rename(SavedFile2, "{WeblocFilename}.webloc")
	saveFile("", File1, true)
item "[✏️] Edit Webloc":
	menu "What do you want to edit?" {
	item "Webloc Name":
		const ContentsOfFolder1 = getFolderContents(WeblocFolder, false)
		const Files1 = filterFiles(ContentsOfFolder1, "Name", "A to Z")
		if !Files1 {
			alert("There are no current Webloc files", "Error")
			stop()
			runSelf()
		} else {
		}
		const ChosenItem1 = chooseFromList(Files1, "Chose Webloc to rename")
		prompt("Enter new Webloc Name", false)
		rename(ChosenItem1, "{}.webloc")
	item "Webloc Address":
		const ContentsOfFolder2 = getFolderContents(WeblocFolder, false)
		const Files2 = filterFiles(ContentsOfFolder2, "Name", "A to Z")
		if !Files2 {
			alert("There are no current Webloc files", "Error")
			stop()
			runSelf()
		} else {
		}
		const ChosenItem2 = chooseFromList(Files2, "Chose Webloc to change")
		const WeblocURL2 = prompt("Enter New URL for Webloc", "URL")
		if !WeblocURL2 {
			alert("Invalid URL!", "ERROR")
			stop()
			runSelf()
		} else {
			if WeblocURL2 !contains "https://" {
				alert("Invalid URL!", "ERROR")
				stop()
				runSelf()
			} else {
				if WeblocURL2 endsWith "/" {
					alert("Invalid URL!", "ERROR")
					stop()
					runSelf()
				} else {
					if WeblocURL1 !contains "." {
						alert("Invalid URL!", "ERROR")
						stop()
						runSelf()
					} else {
					}
				}
			}
		}
		const webloc3 = "<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\n<!DOCTYPE plist PUBLIC \\"-//Apple//DTD PLIST 1.0//EN\\" \\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\\">\n<plist version=\\"1.0\\">\n<dict>\n\t<key>URL</key>\n\t<string>{WeblocURL2}</string>\n</dict>\n</plist>\n"
		deleteFiles(ChosenItem2)
		const SavedFile3 = saveFile("", webloc3, true)
		const File2 = rename(SavedFile3, "{ChosenItem2}.webloc")
		saveFile("", File2, true)
	}
item "[❌] Delete Webloc/s":
	const ContentsOfFolder3 = getFolderContents(WeblocFolder)
	const Files3 = filterFiles(ContentsOfFolder3, "Name", "A to Z")
	if !Files3 {
		alert("There are no current Webloc files", "Error")
		stop()
		runSelf()
	} else {
	}
	const ChosenItem3 = chooseFromList(Files3, "Select Webloc/s to delete", true)
	deleteFiles(ChosenItem3)
item "[📖] List Weblocs":
	const ContentsOfFolder4 = getFolderContents(WeblocFolder, false)
	const Files4 = filterFiles(ContentsOfFolder4, "Name", "A to Z")
	if !Files4 {
		alert("There are no current webloc files", "Error")
	} else {
		alert(Files4, "Current Weblocs")
	}
item "[❓] About This Shortcut":
	alert(, "About")
item "[🚪] Exit":
	stop()
}
runSelf(MenuResult)
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Вам также может понравиться

См. все
Реклама