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.
Nyheder
First release
Hvad den gør
164 handlinger-
Text
-
CommentHOW 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.
-
Create Folder
-
Folder
-
If
-
Show AlertERROR
-
Stop This Shortcut
-
If
-
If
-
Show Alert
-
Text
-
Ask for InputEnter webloc name:
-
Save File
-
Rename File
-
Stop This Shortcut
-
If
-
Choose from MenuWebloc Manager v2.1
-
Choose from Menu[🌐] Open Webloc
-
Get Contents of Folder
-
Filter Files
-
If
-
Show AlertError
-
Stop This Shortcut
-
Run ShortcutWebloc Manager
-
Choose from List
-
Choose from MenuChose method to open Webloc
-
Choose from MenuQuickView
-
Quick Look
-
Choose from MenuFiles
-
Open File
-
Stop This Shortcut
-
Choose from Menu[⏰] Open Temporary Webloc
-
Get Contents of Folder
-
Text
-
If
-
Show Alert
-
Delete Files
-
Stop This Shortcut
-
Run ShortcutWebloc Manager
-
If
-
Show Alert
-
Ask for InputEnter URL for Webloc
-
If
-
Show AlertERROR
-
Stop This Shortcut
-
If
-
If
-
Show AlertERROR
-
Stop This Shortcut
-
If
-
If
-
Show AlertERROR
-
Stop This Shortcut
-
If
-
If
-
Show AlertERROR
-
Stop This Shortcut
-
If
-
Text
-
Save File
-
Rename File
-
Choose from MenuChose method to open Webloc
-
Choose from MenuQuickView
-
Quick Look
-
Choose from MenuFiles
-
Open File
-
Delete Files
-
Choose from Menu[➕] Create New Webloc
-
Ask for InputEnter URL for Webloc
-
If
-
Show AlertERROR
-
Stop This Shortcut
-
Run ShortcutWebloc Manager
-
If
-
If
-
Show AlertERROR
-
Stop This Shortcut
-
Run ShortcutWebloc Manager
-
If
-
If
-
Show AlertERROR
-
Stop This Shortcut
-
Run ShortcutWebloc Manager
-
If
-
If
-
Show AlertERROR
-
Stop This Shortcut
-
Run ShortcutWebloc Manager
-
If
-
Text
-
Ask for InputEnter Webloc Name
-
Save File
-
Rename File
-
Save File
-
Choose from Menu[✏️] Edit Webloc
-
Choose from MenuWhat do you want to edit?
-
Choose from MenuWebloc Name
-
Get Contents of Folder
-
Filter Files
-
If
-
Show AlertError
-
Stop This Shortcut
-
Run ShortcutWebloc Manager
-
If
-
Choose from List
-
Ask for InputEnter new Webloc Name
-
Rename File
-
Choose from MenuWebloc Address
-
Get Contents of Folder
-
Filter Files
-
If
-
Show AlertError
-
Stop This Shortcut
-
Run ShortcutWebloc Manager
-
If
-
Choose from List
-
Ask for InputEnter New URL for Webloc
-
If
-
Show AlertERROR
-
Stop This Shortcut
-
Run ShortcutWebloc Manager
-
If
-
If
-
Show AlertERROR
-
Stop This Shortcut
-
Run ShortcutWebloc Manager
-
If
-
If
-
Show AlertERROR
-
Stop This Shortcut
-
Run ShortcutWebloc Manager
-
If
-
If
-
Show AlertERROR
-
Stop This Shortcut
-
Run ShortcutWebloc Manager
-
If
-
Text
-
Delete Files
-
Save File
-
Rename File
-
Save File
-
Choose from Menu[❌] Delete Webloc/s
-
Get Contents of Folder
-
Filter Files
-
If
-
Show AlertError
-
Stop This Shortcut
-
Run ShortcutWebloc Manager
-
If
-
Choose from List
-
Delete Files
-
Choose from Menu[📖] List Weblocs
-
Get Contents of Folder
-
Filter Files
-
If
-
Show AlertError
-
If
-
Show AlertCurrent Weblocs
-
Choose from Menu[❓] About This Shortcut
-
Show AlertAbout
-
Choose from Menu[🚪] Exit
-
Stop This Shortcut
-
Run ShortcutOpen Webloc
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#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)
Bedømmelser og anmeldelser
Skriv en anmeldelseIngen anmeldelser endnu. Vær den første!