Getting Firefox to automatically open SGF in viewer?

Discuss DGS and other turn based servers here.
Post Reply
User avatar
antinoun
Beginner
Posts: 5
Joined: Mon Jul 12, 2010 8:51 pm
Rank: DGS 8 kyu
GD Posts: 10
KGS: antinoun
Location: Eastern US
Has thanked: 1 time
Contact:

Getting Firefox to automatically open SGF in viewer?

Post by antinoun »

I have never been able to get DGS SGF links to open automatically in an external SGF viewer, but I have no problem with OGS SGF file.
Despite changing the options->applications thing for SGF, and despite the apparently rhetorical "Do this automatically for files like this for now on", it never works, I always get a prompt dialog.

Anyone have any better luck with this than me?
ethanb
Lives in gote
Posts: 355
Joined: Sat Apr 24, 2010 10:15 am
Rank: AGA 2d
GD Posts: 0
IGS: ethanb
Has thanked: 52 times
Been thanked: 43 times

Re: Getting Firefox to automatically open SGF in viewer?

Post by ethanb »

antinoun wrote:I have never been able to get DGS SGF links to open automatically in an external SGF viewer, but I have no problem with OGS SGF file.
Despite changing the options->applications thing for SGF, and despite the apparently rhetorical "Do this automatically for files like this for now on", it never works, I always get a prompt dialog.

Anyone have any better luck with this than me?


That's likely to be the server's fault - it's probably sending the file as the wrong MIME type. I'd guess it's telling your browser the file is plain/text instead of application/x-sgf. Not much you can do about that unless you want to open all text files with an SGF viewer. Maybe you can submit a bug report to the DGS admins?
User avatar
fwiffo
Gosei
Posts: 1435
Joined: Tue Apr 20, 2010 6:22 am
Rank: Out of practice
GD Posts: 1104
KGS: fwiffo
Location: California
Has thanked: 49 times
Been thanked: 168 times

Re: Getting Firefox to automatically open SGF in viewer?

Post by fwiffo »

There's a Firefox plugin for forcing mime types, but I believe DGS already gives the right mime type. There's something else causing it to not open automatically.
lorill
Lives with ko
Posts: 281
Joined: Wed Apr 21, 2010 1:03 am
Rank: yes
GD Posts: 0
Location: France
Has thanked: 69 times
Been thanked: 25 times

Re: Getting Firefox to automatically open SGF in viewer?

Post by lorill »

The content-disposition header probably.
crux
Lives with ko
Posts: 200
Joined: Wed Apr 21, 2010 6:42 am
Rank: IGS 2d+
GD Posts: 0
KGS: venkman, M2Brett1
Has thanked: 35 times
Been thanked: 23 times

Re: Getting Firefox to automatically open SGF in viewer?

Post by crux »

antinoun wrote:I have never been able to get DGS SGF links to open automatically in an external SGF viewer, but I have no problem with OGS SGF file.
Despite changing the options->applications thing for SGF, and despite the apparently rhetorical "Do this automatically for files like this for now on", it never works, I always get a prompt dialog.

Anyone have any better luck with this than me?


There's an "Open With" addon which I'm using to add an "Open with qGo" item to the right-click menu. That's probably not exactly what you want but it may help. I'm using it for those sites which open the sgf as text in another tab (like the igo-kisen Go News site).
User avatar
Traveller
Beginner
Posts: 13
Joined: Tue Sep 14, 2010 8:56 am
Rank: AGA 20kyu
GD Posts: 0
KGS: Traveller
IGS: Traveller
DGS: Traveller
OGS: Traveller
Location: Ann Arbor, MI, USA
Has thanked: 1 time

Re: Getting Firefox to automatically open SGF in viewer?

Post by Traveller »

Just a note.

My installation of Firefox, current as of the last time I checked for new versions, properly opens SmartGo for SGFs from both OGS and DGS. I have no extra plug-ins for handling files or similar content. I'll have to look at the configuration, but my installation is very vanila, just Java and Flash added.
Traveller
Clark B. Wierda
Ann Arbor, MI, USA
AGA 20k, OGS 14k, DGS 16k, KGS ?
ethanb
Lives in gote
Posts: 355
Joined: Sat Apr 24, 2010 10:15 am
Rank: AGA 2d
GD Posts: 0
IGS: ethanb
Has thanked: 52 times
Been thanked: 43 times

Re: Getting Firefox to automatically open SGF in viewer?

Post by ethanb »

crux wrote:
antinoun wrote:I have never been able to get DGS SGF links to open automatically in an external SGF viewer, but I have no problem with OGS SGF file.
Despite changing the options->applications thing for SGF, and despite the apparently rhetorical "Do this automatically for files like this for now on", it never works, I always get a prompt dialog.

Anyone have any better luck with this than me?


There's an "Open With" addon which I'm using to add an "Open with qGo" item to the right-click menu. That's probably not exactly what you want but it may help. I'm using it for those sites which open the sgf as text in another tab (like the igo-kisen Go News site).


I've been thinking about learning how to make a Greasemonkey script just for the "IGO THE UNLIMITED GAME" blog which has the SGF pasted in text-wise as part of the web page. It's updated quite frequently, but I can rarely make myself go check it out because I'll have to copy/paste the game into a text file instead of just clicking a download link.

Does something of the sort already exist, so I can put off learning Greasemonkey yet again, but not feel guilty? :)
ethanb
Lives in gote
Posts: 355
Joined: Sat Apr 24, 2010 10:15 am
Rank: AGA 2d
GD Posts: 0
IGS: ethanb
Has thanked: 52 times
Been thanked: 43 times

Re: Getting Firefox to automatically open SGF in viewer?

Post by ethanb »

Embarrassing! I just realized that NoScript was blocking Eidogo viewer from running on the page I mentioned above. Still no download link though, so I may end up doing the GreaseMonkey thing anyway. :)
Post Reply