Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Change wiki link and change save filename to remove Page Shot
Browse files Browse the repository at this point in the history
  • Loading branch information
ianb committed Mar 21, 2017
1 parent 7a2a7d1 commit 017e9d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion shared/shot.js
Expand Up @@ -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 "[...]"
Expand Down

0 comments on commit 017e9d7

Please sign in to comment.