MozillaZine

Firefox default screenshot tool change the title template

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

Post Posted August 21st, 2019, 3:48 pm

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: 3445
Joined: February 3rd, 2009, 6:29 pm

Post Posted August 21st, 2019, 6:22 pm

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/search?q=Screenshot_$

Nimbus Screen Capture
http://addons.mozilla.org/firefox/addon/448002

dickvl

User avatar
 
Posts: 52840
Joined: July 18th, 2005, 3:25 am

Post Posted August 23rd, 2019, 1:19 pm

^: 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: 16
Joined: August 12th, 2015, 3:12 pm

Post Posted August 25th, 2019, 4:26 pm

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

Yeh. {domain}{title}{date}

dickvl

User avatar
 
Posts: 52840
Joined: July 18th, 2005, 3:25 am

Post Posted August 25th, 2019, 4:33 pm


Return to Firefox General


Who is online

Users browsing this forum: No registered users and 1 guest