Feb. 13th, 2009

robocowboy: (Default)
I like Firefox, or at least I'm used to it, but I've decided to also start trying out nightly WebKit builds. This was prompted partially by noticing that there is (finally) a suitable replacement for AdBlock called GlimmerBlocker. It is OS-wide, rather than FireFox-specific, so it doesn't matter what browser I use. AdBlock was one of the main reasons I've been using FireFox for so long.

Anyway, I wanted to be able to get the latest version of WebKit at the push of a button.

Here's my solution:

fetch_WebKit.command )

It's an ugly hack, but it only took about 10 or 20 minutes to write. Now I just plop that script into my dock and click it when I want to launch WebKit or even update it while it is still running. If I don't have the latest and greatest build, it does the following:

- asks WebKit nicely to quit (giving me the chance to say no or save tabs or whatnot)
- waits for the process to go away before deleting the app
- downloads the latest build and mounts the drive image
- copies the app it to the /Applications folder
- launches it

I'll improve this... later... to clean up the cached builds and perhaps not use the Apache ETags as directory names. Also, I could probably actually parse out the version numbers from the URL and from the currently-installed app package, but for now I think the ETags are good enough. It just happened to be the shortest line between two points for me.


Edit: I just realized that WebKit probably has decent auto-updating in it. I guess I could have waited a day to find out... or installed yesterdays version to test this. Whatever. Either way it was a fun scripting exercise.
robocowboy: (Default)
Lulz. The script I wrote in my previous post is totally unecessary. The auto-update feature in WebKit (Safari) grabs nightly builds. I just downloaded yesterday's build and it gracefully updated itself to today's. Though no more gracefully than my method, since it did want to quit before updating and gave me no option to save open tabs...

Wasn't completely wasted time, though. I still kind of prefer my way because I'll have a cache of older versions in case I get a busted one. Plus, the script was fun to write.

Anyway, WebKit is awesome. I haven't grabbed any Firefox alpha/beta/nightly versions to compare, but the WebKit I'm using now is far superior to the 3.0.6 release version of Firefox I've got installed. Page load times are super snappy. I especially notice this when bringing up gmail, which takes ages (ok... seconds) to draw in Firefox.

Also, I won't need to use MultiClutch to get three-finger-swipe page back and forth gestures like I did in Firefox.

Profile

robocowboy: (Default)
robocowboy

December 2014

S M T W T F S
 123456
78910111213
14151617181920
21222324252627
28 293031   

Style Credit

Expand Cut Tags

No cut tags
Page generated Oct. 17th, 2017 09:22 am
Powered by Dreamwidth Studios