Answered
Stephen MarshCorrect answer
Community Expert
February 20, 2024
You can make the following edits to the "Export Layers To Files.jsx" script... Backup the original script just in case you need to revert!
From:

To:

In more detail...
Comment out (disable) the two lines as shown by adding a double forward slash //
Change –
fileNameBody += "_" + layerName;
To –
fileNameBody = layerName;
Restart Photoshop. Enjoy your layer names!
A related topic here:
https://community.adobe.com/t5/photoshop-ecosystem-discussions/export-layers-to-files/m-p/12314369
