Quick way to open the source for the current page in an editor

Just typed up a blog post on my little hack to quickly open / edit a page.

http://aioo.be/2019/01/02/A-convenient-way-of-opening-the-source-file-for-a-webpage-in-an-editor.html

Hope someone will find it useful.

Cheers

4 Likes

This is pretty cool :slight_smile:

And we can skip the need for greasemonkey using .IsServer.

In my use of Hugo, the filename doesn’t always match the slug / url. So this would be a safer way to go around it.

Yes! You would however give up the ability to hit “Edit” on a live page, and the links allowing you to hop from live URL to dev URL.

But I agree that not having to install browser plugin + user script is quite nice.

I was trying this on MacOS Mojave, but adding a url scheme here isn’t a straightforward task :confused: