DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Force firefox to display a page it wants to download?  (Read 12,924 times)

Ehtyar

  • That News Guy
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,237
    • Plugin Coding Medal
    • Gathering Badge
Force firefox to display a page it wants to download?
« on: January 24, 2008, 02:15 AM »
It's been bugging me now for a while, but this time I've resolved to actually try to do something about it. Certain types of plain text files are not displayed in firefox, but rather prompt the user to download them. This annoys me most when you're scouring the net for source, and every c/cpp file you come across you have to download to view. I am tired of this behavior and would like to know if anyone is aware of a way to view a given filetype in-browser despite any file associations or headers. Please reply to this thread if you have a solution for this.

Thanks, Ehtyar.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: Force firefox to display a page it wants to download?
« Reply #1 on: January 24, 2008, 03:00 AM »
this thread provides some clues on the matter.

• Opening text files in the browser?

Ehtyar

  • That News Guy
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,237
    • Plugin Coding Medal
    • Gathering Badge
Re: Force firefox to display a page it wants to download?
« Reply #2 on: January 24, 2008, 03:24 AM »
Open In Browser is the PERFECT solution, I had this totally idyllic solution worked out in my head, and this is pretty much it. Thank you very much lanux!!

Ehtyar.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: Force firefox to display a page it wants to download?
« Reply #3 on: January 24, 2008, 03:32 AM »
you're welcome, Ehtyar. that's Firefox for you, nothing that an add-on can't fix.. :)

Ehtyar

  • That News Guy
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,237
    • Plugin Coding Medal
    • Gathering Badge
Re: Force firefox to display a page it wants to download?
« Reply #4 on: January 24, 2008, 04:31 AM »
you're welcome, Ehtyar. that's Firefox for you, nothing that an add-on can't fix.. :)
Uh uh uh  :eusa_naughty: you forget about my thread on getting firefox to show the size of a download. Got ya there eh?  :P

Ehtyar.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: Force firefox to display a page it wants to download?
« Reply #5 on: January 24, 2008, 05:46 AM »
Uh uh uh  :eusa_naughty: you forget about my thread on getting firefox to show the size of a download. Got ya there eh?  :P

Ehtyar.

that add-on is truly a life-saver especially when i'm on dial-up.. :up:

Ehtyar

  • That News Guy
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,237
    • Plugin Coding Medal
    • Gathering Badge
Re: Force firefox to display a page it wants to download?
« Reply #6 on: January 24, 2008, 05:52 AM »
That addon wasn't accepted  >:(. I listed a half dozen reasons. Find me a better one!! Quick!! :P

Ehtyar.

wreckedcarzz

  • Still lurking. Still an anthro.
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,629
    • Participated in NANY Challenge Twice
    • Coding Snacks
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: Force firefox to display a page it wants to download?
« Reply #7 on: January 24, 2008, 06:19 AM »
Use Download Statusbar - tons of options :) (including showing the size of total download, amnt. downloaded so far, time remaining, percent done, and tons more - in this 100x20 bar that sits at the bottom of your screen!)

https://addons.mozilla.org/en-US/firefox/addon/26

Ehtyar

  • That News Guy
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,237
    • Plugin Coding Medal
    • Gathering Badge
Re: Force firefox to display a page it wants to download?
« Reply #8 on: January 24, 2008, 06:28 AM »
I do, and love it naturally. My problem is seeing the file size BEFORE i choose to download it, as any other browser does....

Ehtyar.

wreckedcarzz

  • Still lurking. Still an anthro.
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,629
    • Participated in NANY Challenge Twice
    • Coding Snacks
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: Force firefox to display a page it wants to download?
« Reply #9 on: January 24, 2008, 06:34 AM »
Not sure then. I don't really care when I download files, because if I am downloading it it means I want it, so I don't mind if it takes like 4 hours to download 3 or so GB. :-\

Lashiec

  • Member
  • Joined in 2006
  • **
  • Posts: 2,374
Re: Force firefox to display a page it wants to download?
« Reply #10 on: January 24, 2008, 09:30 PM »
That addon wasn't accepted  >:(. I listed a half dozen reasons. Find me a better one!! Quick!! :P

Did ya try the other solution I proposed in that thread? (Tip to find it: Ignore the rant ;D)

Ehtyar

  • That News Guy
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,237
    • Plugin Coding Medal
    • Gathering Badge
Re: Force firefox to display a page it wants to download?
« Reply #11 on: January 24, 2008, 11:10 PM »
I see. Not sure how this solves the problem thought..could you be more specific?

Ehtyar.

Lashiec

  • Member
  • Joined in 2006
  • **
  • Posts: 2,374
Re: Force firefox to display a page it wants to download?
« Reply #12 on: January 24, 2008, 11:25 PM »
Well, everything is explained there. As you can add custom apps to the list of those ones that can be used Launchy, you can define a list of extensions usually associated with downloads, and use as the app the one linked there. So, when you encounter a file you want to download, you select Get File Size in the Launchy entry integrated in the context menu in Firefox, and theoretically the program will give you the details on the download and allow you to get the file from the program. In theory :)

Ehtyar

  • That News Guy
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,237
    • Plugin Coding Medal
    • Gathering Badge
Re: Force firefox to display a page it wants to download?
« Reply #13 on: January 24, 2008, 11:34 PM »
In practice it would probably just be easier to let th download start and check the file size on download statusbar and cancel it if it's too big or whatever. But thank you, and I think this add-on may be of help in other scenarios.

Ehtyar.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: Force firefox to display a page it wants to download?
« Reply #14 on: January 25, 2008, 01:24 AM »
That addon wasn't accepted  >:(. I listed a half dozen reasons. Find me a better one!! Quick!! :P

which add-on are you referring to?

Ehtyar

  • That News Guy
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,237
    • Plugin Coding Medal
    • Gathering Badge
Re: Force firefox to display a page it wants to download?
« Reply #15 on: January 25, 2008, 11:12 PM »
I was referring to the one that displays the download details in the statusbar on mouseover. The other one (that lets you run external apps) I'm not sure how to apply to fox my problem.

Ehtyar.

Original address: https://www.donationcoder.com/forum/index.php?topic=11981.0