I’ve switched to using Safari as my primary browser. It works pretty well because I use it on all my devices so passwords and bookmarks are available on all devices.
The one downside, the developer community isn’t as big. We use Github at work for all of our repositories. Github code diffs are constrained by the width of their center column. On larger diffs this can make it hard to see all of the code without tons of scrolling. There is a chrome extension for this task, but there hasn’t been a safari extension for this same task, so I decided to write one.
I have worked on several chrome extensions in the past, so I thought this would be pretty easy, but there are a couple of challenges that I didn’t expect in completing the code. I’d like to share my experience with anyone else starting to write an extension, so hopefully you don’t run through the same issues that I did.
Firstly, you can see the code I used to make the extension here.
This essentially takes something like this:
and turns it into something like this:
Here are some of my tips for writing a Safari Extensions:
- If things aren’t working the way you expect, don’t trust the reload. Restart the browser!
While I’ve shared my extension with a coworker, I’m pretty sure I”m the only one who uses it. You an download the extension from here.
Comments and suggestions are welcome.