fromhttp://blog.jerodsanto.net/2010/08/extract-edit-a-safari-extension/
21 Aug 2010 I asked this on Twitter the other day, but alas nobody came back with an answer.
Turns out it’s pretty easy to edit a Safari extension that you’ve downloaded. The downloaded file will have a .safariextz file extension. To extract the contents of the file, use the xar command. I’ll demonstrate with the BetterSource extension.
xar -xf BetterSource-1.0.safariextz