ShareShortcuts

View HTML

It’s easy: Paste the url you want to get the HTML from

0you
Fork “View HTML”

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 0you 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
19K
Saved
1
Actions
30
Category
API
Version
1.4
Language
EN

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).

Version History
1.4 Nov 3, 2024

If you enter nothing, the shortcut will not run. Updated the URL for the Swing Updater shortcut on ShareShortcuts (automatic install).

1.3 Oct 31, 2024

Moved Update section from the top to the bottom. Your clipboard will be used as the URL. You can now view the HTML in action.

1.2 Oct 31, 2024

Fixed the Updater System and added a prompt to download Swing Updater.

1.1 Oct 30, 2024

🔥 | Hot fix for the updater.

1.0 Oct 30, 2024

First release

What it does

30 actions
  1. Ask for Input
    🕸️ | Enter the URL you wish to view the HTML code from.
  2. If
  3. Show Alert
  4. Stop and Output
  5. Make HTML from Rich Text
  6. Choose from Menu
    ❓ | What do you want to do?
  7. Choose from Menu
    💾 | Save to files
  8. Save File
  9. Choose from Menu
    👀 | View HTML
  10. Quick Look
  11. Choose from Menu
    👀 | See this HTML in action
  12. Show Alert
  13. Set Name
  14. Quick Look
  15. Choose from Menu
    📥 | Save to clipboard
  16. Copy to Clipboard
  17. Get My Shortcuts
  18. Filter Files
  19. If
  20. Choose from Menu
    ⚠️ | Please install "Swing Updater" to keep this shortcut updated.
  21. Choose from Menu
    ⬇️ | Install from ShareShortcuts
  22. Open URLs
  23. Stop and Output
  24. Choose from Menu
    ⬇️ | Install from Routinehub
  25. Open URLs
  26. Stop and Output
  27. Choose from Menu
    ✖️ | Skip for now
  28. If
  29. Dictionary
  30. Run Shortcut
    Swing Updater

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 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

See All

You Might Also Like

See All
Advertisement