« Tiger Teeth left biting at the sun (?) | Main | Witness! »

Saturday, February 08, 2003

Safaritastic

I tend to assume everyone who reads this is a Mac user, so if you're not, I'm sorry, you can just skip this entry entirely. Maybe one day I'll get off my ass and implement post categories.

So. My Mac peeps. On the off chance that some of you don't already read Daring Fireball, John posted a great response today to the jackass spokespeople from the Opera development team. Neener neener.

I should add that I'm now doing all my browsing in Safari (with the overzealous metal GUI crap stripped off courtesy of Unsanity's Metallifizer) with only a few leaps back into Chimera for a few javascript/authentication-requiring sites.

While I'm thinking of it, does anybody know how to do that cute "Welcome, Safari User" badge thing that Apple and Unsanity do? I imagine it requires some User Agent sniffing but I don't even know where to begin with things like that.

And can somebody please tell me why Services are sitting uselessly in the application menu instead of in a contextual menu item? My right mouse button is hiding under the stairs, crying softly to itself, due to neglect in OS X.

Posted at 04:13 PM

Comments

001. Caitlin

OS X? Bah! Get yourself a Proper Unix ;-)

In PHP (or your dynamic site scripting language of choice), you can get at the User-Agent string to (attempt to) spot what browser a client is using. However, this is no doubt one of the standard variables which isn't covered at all in the PHP documentation on the grounds that the standard variables aren't standard. I think it's $HTTP_USER_AGENT, but I could be wrong.

Posted at 03:26PM on Sunday, February 09, 2003

002. Caitlin

And why the hell does your Mac have a right button anyway?

Posted at 03:28PM on Sunday, February 09, 2003

003. me

This is the part where I just nod and smile dumbly.

Single button mice are for noobs, by the way.

Wow, this comments page sure is ugly. Oops.

Posted at 05:00PM on Sunday, February 09, 2003

004. Jamison

Dave Hyatt (Apple Safari developer and Phoenix developer) also responded to Opera's statements on his blog:

http://www.mozillazine.org/weblogs/hyatt/archives/2003_02.html#002486

As for detecting Safari, I don't how to do it with PHP, but here's a JavaScript that will do it:

<script language="javascript" type="text/javascript"><!--

if (navigator.userAgent.indexOf('Safari') != '-1') {
document.write("Yo Safari user!")
}

//--></script>

Replace to text within the quotes with your own text, images or what have you, but keep in mind it's a string value, and you can't just put raw HTML in there.

Posted at 12:43AM on Monday, February 10, 2003

Post a comment

Name:


Email Address:


URL:


Enter Security Code Number:


Comments:


Remember info?