00:00
00:00
TheShrike
Everyone thinks I'm a liar! Weeell I'm a lot of things: I'm an astronaut, I'm a basketball player...... I'm the President of the Universe with a 14 inch cock, but I'm not a liar.

Male

Loitering

Life

Here

Joined on 1/5/01

Level:
39
Exp Points:
16,158 / 16,890
Exp Rank:
1,439
Vote Power:
7.99 votes
Rank:
Master Sergeant
Global Rank:
1,177
Blams:
5,170
Saves:
2,433
B/P Bonus:
28%
Whistle:
Silver
Medals:
6
Supporter:
3y 5m 9d

if windows then skip

Posted by TheShrike - August 20th, 2007


Uber made a post about this the other day, and I have to admit it is strange...

Most Mac users are aware that when browsing this site with Safari, posting images anywhere is out of the question. You get a smarmy "Use Firefox instead" message if (heaven forbid) you try.

Now... the strange part of all this is that Safari users are NOT universally blocked. Windows users of Safari 3 are off the hook, and free to upload images. But if you use Safari on a Mac... you're out of luck(oh, the irony =| ). Well, out of luck unless you're willing to do a little command-line work once & switch your user agent every time you upload a pic.

If the debug menu trick doesn't seem like your cup of tea, then consider: If newgrounds changed a single line of code...*cough*line 25 in http://js.ngfiles.com/fileupload.js *cough*

from;
if((useragent.indexOf("safari") != -1) && (useragent.indexOf("mac") != -1))
to;
if(useragent.indexOf("applewebkit/5") != -1)

Sometimes I see stuff like this, and I have to comment. If for no other reason than reason itself. Safari 3 is a reality, based off of WebKit 5, which either is, or will soon be the dominant version of Safari, since it is available to most modern Macintoshes.

Plus, it's one less operation to load up in javascript, y'know?

if windows then skip


Comments

I knew it had to be some minor detail. :D

I don't have a mac. :-(

Awwwwwww

I don't use safari alot anyways ;)

"Safari 3 is a reality, based off of WebKit 5, which either is, or will soon be the dominant version of Safari, since it is available to most modern Macintoshes."

Not quite. Safari 3 is a beta. It'll take Leopard being released, and having some time to propogate, before Safari 3 is the "dominant" version in the wild.

Trust me, I find nothing more frustrating than making a blog post in Safari and then realizing I have to copy over everything to Firefox if I want to add an image. But making it work in Safari (all versions) is more complicated than being extra accomodating with useragents.

I know it is frustrating for you guys. I've spoken to James, and seen the comments in the source code.

I understand what you're saying, but I'm not proposing a fix for all Safari users. Just Safari 3 users. ; ]

But yeah, I don't code for NG, you guys do, & I'll shut up now.