Unedit and Undelete for Reddit

Creates the option next to edited and deleted Reddit comments/posts to show the original comment from before it was edited

נכון ליום 07-06-2022. ראה הגרסה האחרונה.

יוצר
DenverCoder1
דירוגים
0 0 0
גרסה
3.7.3
נוצר
20-07-2020
עודכן
07-06-2022
Size
15.4 קילו-בייט
רישיון
MIT
חל על

Unedit and Undelete for Reddit

Dev Pro Tips Discussion & Support Server Stars License MIT Issues

Creates a link next to edited and deleted Reddit comments and submissions to show the original post from before it was edited/removed.

The unedited comment will be displayed inline, right below the current comment or submission's text.

This script is compatible with both Reddit's Redesign and Old Reddit.

The Pushshift Reddit API is used for fetching the comments as they will be archived soon after they have been posted.

How to use

how to use

Installation

This script can be installed to most userscript browser extensions such as Violentmonkey, Tampermonkey, and others using the green button on the Greasy Fork page.

Download this userscript on Greasy Fork

Alternatively, you may copy the contents of script.js into a new script using any userscript browser extension.

Changelog

Changes in 3.7.3

  • Fix duplicate "Show original" links appearing inside deleted comments

Changes in 3.7.2

  • Prevent "show original" link from appearing twice on comments that are both edited and deleted.
  • Expand comment when the "show original" link is clicked on a collapsed comment.
  • Some minor code refactoring and formatting.

Changes in 3.7.1

  • Fixed positioning of original comment on old reddit to be inline with text rather than below replies

Changes in 3.7.0

  • Added support for viewing comments removed by moderators

Changes in 3.6.1

  • Better error handling
  • More reliable when viewing edited comments on profile page

Changes in 3.6.0

  • Check a second source for comments so more recent comments are less likely to be "not found"
  • Fixes to getting comment ids in Reddit redesign

Changes in 3.5

  • Added compatibility with Old Reddit links without "old.reddit" in the URL
  • Added additional @includes for more compatibility

Changes in 3.4

  • Fixed @match for more compatibility

Changes in 3.3

  • Added support for profile pages (Redesign)

Changes in 3.2

  • Works more accurately in post previews (Redesign feature where the post is shown in a popup when clicked from post list)

Changes in 3.1

  • Fixed missing styling on comments shown in the Redesign
  • Fixed placement of inline comment to work on comments that do not end with a paragraph (<p>) element

Changes in 3.0

  • Added support for deleted comments

Changes in 2.0

  • Original comment is converted from markdown to HTML to show custom formatting.
  • Unedit now supports self-text submissions (old Reddit only)