DenverCoder1 / unedit-for-reddit

Creates a link next to edited and deleted Reddit comments to show the original from before it was edited. The unedited comment gets displayed inline.
https://denvercoder1.github.io/unedit-for-reddit
MIT License
70 stars 4 forks source link

Adding an option to process all comments #81

Open Alhaitham opened 1 year ago

Alhaitham commented 1 year ago

Hello

Sometimes there are a lot of deleted or edited comments on a page

So instead of doing it one by one, it would be great if the is an option to do it all

There are websites that do it like unddit and reveddit, but doing it on reddit would be better

Thanks

DenverCoder1 commented 1 year ago

Possible ideas include:

Maybe a combination of different methods could be used. What do you think would be the best approach for this?

Alhaitham commented 1 year ago

The last one seems reasonable, it can be placed maybe under OP

Alhaitham commented 1 year ago

Also hope that it will show deleted comments that are not visible in the page

When there is no indication of the comment being there

DenverCoder1 commented 1 year ago

The last one seems reasonable, it can be placed maybe under OP

That sounds reasonable, currently I have an implementation that adds a link by the parent post and also has a keyboard shortcut. If you're interested in testing it and giving feedback that would be great, let me know. (see #85)

Also hope that it will show deleted comments that are not visible in the page When there is no indication of the comment being there

While it sounds useful, I feel that is out of the scope of the project for now. Determining which comments were deleted/removed using info from the Pushshift and Reddit APIs and determining positions in the comment tree for placing the comments is a complicated problem that would likely take a significant amount of time to implement. Feel free to open a separate issue for that feature, but as of now, I think a simpler approach would be to just create a link to an external site such as unddit.com if that's what you're looking for.

Alhaitham commented 1 year ago

Feel free to open a separate issue for that feature

Here

https://github.com/DenverCoder1/unedit-for-reddit/issues/86

I think a simpler approach would be to just create a link to an external site such as unddit.com if that's what you're looking for.

Already using two userscripts but thought it would be better to be less reliant on external sites

https://greasyfork.org/en/scripts/435980-reddit-add-unddit-links https://greasyfork.org/en/scripts/435978-reddit-add-reveddit-links

If you're interested in testing it and giving feedback that would be great, let me know.

It is working fine for topics

It is also showing on the first topic when viewing a subreddit

When clicking on it, it shows the first edited topic from the list, and does nothing if there was no edited topic

Thanks