Twitter Click'n'Save

Add buttons to download images and videos in Twitter, also does some other enhancements.

< Commentaires sur Twitter Click'n'Save

Avis: Bon - le script fonctionne correctement

§
Posté le: 27/04/2025

Thank you for the repair.
Additionally, I would like to ask if it is possible to set the time format in naming as YYYYMMDD_HHmmss?

AlttiRiAuteur
§
Posté le: 27/04/2025
Édité le: 27/04/2025

I already have a function for date formatting in another project, so just reused it there in the last update.

Currently, there is no option in the popup to customise the filename pattern, but if you really need this time format ("YYYYMMDD_hhmmss"), you can edit the source code at this line:

https://github.com/AlttiRi/twitter-click-and-save/blob/03b11c4183b833306a418771edf9dc36972c411c/twitter-click-and-save.user.js#L105

Note, that the script updating will overwrite the changes.

§
Posté le: 28/04/2025

Thank you for your help! This method can be implemented.
However, I would like to inquire if it's possible to change the naming order. To restore the correct date using the program, the format YYYYMMDD_hhmmss needs to be placed at the beginning, for example: [YYYYMMDD_hhmmss]-[@userID]-[filename]

AlttiRiAuteur
§
Posté le: 28/04/2025

The filename may looks a bit long, but here I wrote why the used filename pattern is the way it is:

https://github.com/AlttiRi/twitter-click-and-save?tab=readme-ov-file#filename-format

I do not recommend to change it.

If you really need it and you understand what and why you do, you can additionally change two more lines in the source code:

https://github.com/AlttiRi/twitter-click-and-save/blob/eafe8a635b85aa34e19e79cbf0aa99d762c58661/twitter-click-and-save.user.js#L671 https://github.com/AlttiRi/twitter-click-and-save/blob/eafe8a635b85aa34e19e79cbf0aa99d762c58661/twitter-click-and-save.user.js#L933

§
Posté le: 28/04/2025

I got it, thank you very much for your help.

Thank you once again for creating this script.

AlttiRiAuteur
§
Posté le: 05/05/2025

I have updated the script, to make all filename pattern things are located in one place:

https://github.com/AlttiRi/twitter-click-and-save/blob/9ef65b6b7fdec697de7af413070318b4c3ce605c/twitter-click-and-save.user.js#L98-L123

Poster une réponse

Connectez-vous pour poster une réponse.

长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元