TuxedoTako / 4chan-xt

Adds various features to anonymous imageboards.
Other
110 stars 8 forks source link

Can you add a button to revert to original filename when you don't want it to be auto randomized? #40

Closed yuk1w1fe closed 5 months ago

TuxedoTako commented 6 months ago

You can turn off "Randomize Filename" in the settings.

yuk1w1fe commented 6 months ago

I mean, I always use that feature, but sometimes I want to keep the original filename

vampiricwulf commented 6 months ago

A suggestion for implementation is to change it into something like "Remember Spoiler" where there appears an R checkbox in the fileinput area to toggle filename ranzomizer and people could select "Remember Randomizer" to keep it checked/unchecked between posts.

I personally never use the feature as is since I prefer original filenames. However, if it's pasted from clipboard it might be something I actually check.

saxamaphone69 commented 6 months ago

Check https://github.com/ccd0/4chan-x/pull/2927 for further discussion, plus a PR.

vampiricwulf commented 6 months ago

I'd second ccd0's wish for a non-destructive version, probably catch the original filename before https://github.com/ccd0/4chan-x/blob/master/src/Posting/QR.post.coffee#L209 (https://github.com/TuxedoTako/4chan-xt/blob/project-XT/src/Posting/QR.js#L1913) and store it so that toggling it off restores the filename.

TuxedoTako commented 5 months ago

Released in 2.7.0.

yuk1w1fe commented 5 months ago

very based. Thank you