Firefox default screenshot tool change the title template

Discussion of general topics about Mozilla Firefox
Post Reply
noel_envoide
Posts: 20
Joined: August 12th, 2015, 3:12 pm

Firefox default screenshot tool change the title template

Post by noel_envoide »

Is there a way to change the "Save As" title template for the built-in Firefox screenshot tool, i.e. just as you would for the Nimbus addon, etc.?
morat
Posts: 6421
Joined: February 3rd, 2009, 6:29 pm

Re: Firefox default screenshot tool change the title templat

Post by morat »

Do you want to change the default filename for a screenshot?

The logic is hardcoded in the shot.js file in the signed screenshots@mozilla.org.xpi extension.

Reference
http://dxr.mozilla.org/mozilla-release/ ... reenshot_$

Nimbus Screen Capture
http://addons.mozilla.org/firefox/addon/448002
User avatar
dickvl
Posts: 54161
Joined: July 18th, 2005, 3:25 am

Re: Firefox default screenshot tool change the title templat

Post by dickvl »

^: that code in shot.js looks like the title you get from a full screen screenshot.

I haven't been able to locate the "Screenshot from (date) (time).pgn" filename that I see if I take a screenshot from a selection.

downloadShot -> ui.triggerDownload(dataUrl, shotObject.filename);
https://dxr.mozilla.org/mozilla-release ... shooter.js
noel_envoide
Posts: 20
Joined: August 12th, 2015, 3:12 pm

Re: Firefox default screenshot tool change the title templat

Post by noel_envoide »

morat wrote:Do you want to change the default filename for a screenshot?
Yeh. {domain}{title}{date}
Post Reply