Scan with your iPhone to install
It’s easy: Paste the url you want to get the HTML from. That’s all!
This shortcut uses Swing Updater. It is highly recommend to install it.
What's New
Version 1.4
If you enter nothing, the shortcut will not run. Updated the URL for the Swing Updater shortcut on ShareShortcuts (automatic install).
What it does
30 actions-
Ask for Input🕸️ | Enter the URL you wish to view the HTML code from.
-
If
-
Show Alert
-
Stop and Output
-
Make HTML from Rich Text
-
Choose from Menu❓ | What do you want to do?
-
Choose from Menu💾 | Save to files
-
Save File
-
Choose from Menu👀 | View HTML
-
Quick Look
-
Choose from Menu👀 | See this HTML in action
-
Show Alert
-
Set Name
-
Quick Look
-
Choose from Menu📥 | Save to clipboard
-
Copy to Clipboard
-
Get My Shortcuts
-
Filter Files
-
If
-
Choose from Menu⚠️ | Please install "Swing Updater" to keep this shortcut updated.
-
Choose from Menu⬇️ | Install from ShareShortcuts
-
Open URLs
-
Stop and Output
-
Choose from Menu⬇️ | Install from Routinehub
-
Open URLs
-
Stop and Output
-
Choose from Menu✖️ | Skip for now
-
If
-
Dictionary
-
Run ShortcutSwing Updater
View as code
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 red
const NachEingabeFragen = prompt("🕸️ | Enter the URL you wish to view the HTML code from.", "URL")
if !NachEingabeFragen {
confirm("✖️ | No URL = No HTML")
output("")
}
const HTMLAusFormatiertemText = makeHTML(NachEingabeFragen, false)
menu "❓ | What do you want to do?" {
item "💾 | Save to files":
saveFile("", HTMLAusFormatiertemText, false)
item "👀 | View HTML":
quicklook(HTMLAusFormatiertemText)
item "👀 | See this HTML in action":
confirm("ℹ️ | This will not look like the original page, because it's not executed on the server with the URL you entered.")
const UmbenanntesObjekt = setName(HTMLAusFormatiertemText, "HTML.html")
quicklook(UmbenanntesObjekt)
item "📥 | Save to clipboard":
setClipboard(HTMLAusFormatiertemText)
}
const MeineKurzbefehle = getShortcuts()
const Dateien = filterFiles(MeineKurzbefehle, 1)
if !Dateien {
menu "⚠️ | Please install \"Swing Updater\" to keep this shortcut updated." {
item "⬇️ | Install from ShareShortcuts":
openURL("https://shareshortcuts.com/download/726-swing-updater.html")
output("")
item "⬇️ | Install from Routinehub":
openURL("https://routinehub.co/shortcut/2692/")
output("")
item "✖️ | Skip for now":
}
} else {
const Wrterbuch = {
"Name": "View HTML",
"SS ID": 2963,
"Timeout": 15,
"Version": "1.4"
}
run("Swing Updater", Wrterbuch)
}
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 0you
You Might Also Like
Advertisement