Funkcionalnosć tutoho sydła so přez wothladowanske dźěła wobmjezuje, kotrež maja waše dožiwjenje polěpšić. Jeli nastawk waš problem njerozrisuje a chceće prašenje stajić, wobroćće so na naše zhromodźenstwo pomocy, kotrež na to čaka, wam na @FirefoxSupport na Twitter a /r/firefox na Reddit pomhać.

Pomoc přepytać

Hladajće so wobšudstwa pomocy. Njenamołwimy was ženje, telefonowe čisło zawołać, SMS pósłać abo wosobinske informacije přeradźić. Prošu zdźělće podhladnu aktiwitu z pomocu nastajenja „Znjewužiwanje zdźělić“.

Dalše informacije

Force open images in new tab instead of downloading it.

  • 8 wotmołwy
  • 2 matej tutón problem
  • 1 napohlad
  • Poslednja wotmołwa wot Kyozo9

more options

Some webpages force download of images either with change of the image mime type or (I think) with javascript. Is there any way to force all jpg/png/gif files to open in new tab when given a direct link to it.

Some webpages force download of images either with change of the image mime type or (I think) with javascript. Is there any way to force all jpg/png/gif files to open in new tab when given a direct link to it.

Wot Kyozo9 změnjeny

Wubrane rozrisanje

There are some bug reports about that, like bug 57342, which mentions this extension: Open in Browser.

Tutu wotmołwu w konteksće čitać 👍 2

Wšě wotmołwy (8)

more options

Wubrane rozrisanje

There are some bug reports about that, like bug 57342, which mentions this extension: Open in Browser.

Wot Aleksej změnjeny

more options

Thanks for the quick reply, gonna see if that addon can fix my problem.

more options

works wonder! check out this example: http://wallpaperswide.com/download/bike_chase-wallpaper-2560x1600.jpg firefox claims it is an WinRAR archive but it's clearly an image

more options

That file is send with these headers:

Content-Type: application/force-download
Content-Disposition: attachment; filename=bike_chase-wallpaper-2560x1600.jpg

Code like this will also make Firefox display the image without the need of an extension.

data:text/html,<img src='http://wallpaperswide.com/download/bike_chase-wallpaper-2560x1600.jpg'>
more options

“WinRAR archive” probably depends on what you’ve downloaded before; Beta with my profile says it’s a Gzip archive, Firefox with a new profile says it’s JPG.

more options

Sounds that you have previously set an automatic download action for the application/force-download MIME type.

more options

I backed up my mimetypes.rdf and removed all entrys with force-download and restarted firefox, but the only difference it made is now firefox says it is an jpg but it still wants to download it/open in external program. If I go to Options->Applications the jpg entry is there but I can't select preview in firefox.

Also found this "Is Do this automatically for files like this from now on disabled? This can happen if the website's server incorrectly specifies the MIME type of the file. It also can happen if the server assigns "Content-Disposition: attachment" to the file."

Is it possible to make some automatic action if(jpg and Content-Disposition: attachment)

     show in firefox

or is it some brute force way to add "show in firefox" in the options->application for a certain filetype/mimetype

more options

So I was thinking if I could do a greasemonkey script that dynamically modified the response header into a image/jpeg so I just add each webpage that had this problem in the include, but gave up quite fast.

So for now, ill use Open in browser together with this autohotkey script (may need some tweeking)

#IfWinActive Opening ahk_class MozillaDialogClass
i::Send !p{tab 2}i{enter}
#IfWinActive

(press i to choose View as Image)

Wot Kyozo9 změnjeny