From 017e9d7e0d4f8af72863ddf7464c75a3e9b34c34 Mon Sep 17 00:00:00 2001 From: Ian Bicking Date: Tue, 21 Mar 2017 10:53:09 -0500 Subject: [PATCH] Change wiki link and change save filename to remove Page Shot --- README.md | 2 +- shared/shot.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2acff98788..a9a5155d05 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ It is made up of both an add-on (using [WebExtensions](https://developer.mozilla Ian has been blogging about the [design, definition, and development process](http://www.ianbicking.org/tag/product-journal.html). -You can find more information about Firefox Screenshots at the Mozilla Wiki page: https://wiki.mozilla.org/Firefox/Page_Shot +You can find more information about Firefox Screenshots at the Mozilla Wiki page: https://wiki.mozilla.org/Firefox/Screenshots ### Installation and Setup diff --git a/shared/shot.js b/shared/shot.js index 954d9cfcca..d2fa2859d4 100644 --- a/shared/shot.js +++ b/shared/shot.js @@ -293,7 +293,7 @@ class AbstractShot { let date = new Date(this.createdDate); filenameTitle = filenameTitle.replace(/[\/!@&*.|\n\r\t]/g, " "); filenameTitle = filenameTitle.replace(/\s+/g, " "); - let clipFilename = `Page-Shot-${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()} ${filenameTitle}`; + let clipFilename = `Screenshot-${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()} ${filenameTitle}`; const clipFilenameBytesSize = clipFilename.length * 2; // JS STrings are UTF-16 if (clipFilenameBytesSize > 251) { // 255 bytes (Usual filesystems max) - 4 for the ".png" file extension string const excedingchars = (clipFilenameBytesSize - 246) / 2; // 251 - 5 for ellipsis "[...]"