View Current Page Source
Shows the highlighted source of a webpage, and it must be run from a browser's share sheet
Description
This shortcut shows the highlighted source of a webpage, and it must be run from a browser's share sheet. It shows the current state of the webpage, after any changes made with JavaScript, and it does it locally, without redownloading the page.
It's also an example of the astounding possibilities of the "Run JavaScript in Safari" action. Syntax highlight via Prism (prismjs.com).
First published at https://www.reddit.com/r/shortcuts/comments/9w7h1l/view_current_page_source/ (Nov'18).
Latest Release Notes
1.0.0 - Jan. 8, 2020, 9:30 p.m.
Original version from Nov'18, still works in iOS 13
Past versions