To put it as briefly as possible, when I save code (to edit, try, etc.) from <code> boxes, I can follow two paths: open in another tab, then 'save as' and 'save destination as' from the contextual menu on the [download] link; the default save name is a conveniently numbered '*.pl' and [download].htm respectively. I understand that the former comes from a header of the form (actual example:)
content-disposition: inline; filename=718041.pl
I am also aware that the difference in behaviour is at best browser dependent, so
- the OT part of my question here is: does anybody know of a FF plugin or "hidden" config that will make 'save destination as' look at the headers as well and in case suggest the "correct" filename as a default? (I've searched, but to no avail...)
- The IT part of it is whether some CSS (e.g. by means of a display: none; property) / JS (to be used by means of the Free Nodelet) / whatever trick may be adopted on the link to similarly suggest the browser the "correct" default filename.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.