4

Use more exact timestamps in screenshot filenames

 3 years ago
source link: https://bugzilla.mozilla.org/show_bug.cgi?id=1673269
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0

Steps to reproduce:

Using the screenshot tool multiple times on the same page and using the "Download" button to save them to the disk.

Actual results:

The save file dialog appears with a default file name in the pattern of "Screenshot_{year}-{month}-{day} {title of page}".

I do some web development so I'm often taking multiple screenshots of the same page after I enable/disable some feature to create before/after images, but the screenshot tool's default file name will generate the same file name each time if they're taken less than 24 hours apart.

The formatting is also wildly inconsistent with underscores, dashes, and spaces.

Expected results:

  • Use milliseconds in the time stamp, whether that's in a YYYY-MM-DD-HH-MM-MS or YYYY-MM-DD-MS format. Something to realistically give each screenshot a different file name.
  • Use underscores instead of spaces and dashes everywhere in the filename, including in the page title

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK