I was pretty stoked when Chris shared a way to “View Source” on mobile. Sure, it’s not the same as a built-in feature but it allows iOS users like myself a way to peek at a site’s code the same way folks on Android can by prepending view-source:
to a URL.
I was curious what sorts of dev-related tools might be baked right into my iPhone, so I dug around. It’s actually a perfect time to do that with iOS15 fresh out of the oven and all.
The iOS Shortcuts app might be the most underrated app of all. It’s sorta like IFTTT or Zapier for iOS in that you get these hooks you can play around with to make one app respond to another and do things. Like dim the lights in my house when Marvin Gaye hits the HomePod. Useful stuff like that.
And guess what? Turns out there are a few pre-made Shortcut recipes that can be useful for front-end developers.
View source (for realzzz)
Of course, there’s a pre-fab shortcut to view the source of any webpage.
Now, when I’m on a webpage, I can ask Siri to view source, or open the Share Sheet to trigger the shortcut.
This would be perfect if we have line numbers, syntax highlighting, a mono font (seriously!), zooming, and… OK, maybe it’s far from perfect.
Grab all the images on a page
This is another Shortcut gem. Open a webpage and ask Siri to “get images from page.” Now, I’m no fan of scraping assets off webpages, especially in bulk, but not all image collection has to be nefarious.
Wayback Machine
How fun is this?! Someone had the idea to create a shortcut that opens the current page in the Wayback Machine to see past versions.
Edit webpage
I actually think this one is legitimately useful. Say you want to test content in a design and want to see exactly how it looks on mobile. This shortcut basically drops contenteditable
on every element on the page.
That’s all! Maybe there are others. Or maybe someone’s made a cool shortcut to share with the rest of us. 😉
The post Front-End Dev Shortcuts in iOS 15 appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.
source https://css-tricks.com/front-end-dev-shortcuts-in-ios-15/
No comments:
Post a Comment