Skip to content

Commit 2b25a1e

Browse files
authored
feat: Support removed submissions, list view, better formatting (#17)
1 parent f5a5f5c commit 2b25a1e

File tree

5 files changed

+204
-112
lines changed

5 files changed

+204
-112
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ web-ext-artifacts/
22
.web-extension-id
33

44
*.zip
5+
6+
.vscode

README.md

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ The [Pushshift Reddit API](https://github.com/pushshift/api) is used for fetchin
3030
## Installation
3131

3232
[![Install with Greasy Fork](https://user-images.githubusercontent.com/20955511/172905333-b5815a66-1013-4a1a-a6f2-7b6447aee9c5.png)](https://greasyfork.org/en/scripts/407466-unedit-and-undelete-for-reddit)
33-
[![Available in the Chrome Web Store](https://user-images.githubusercontent.com/20955511/172903902-727ce3a9-5a63-44a8-becd-bcc11e954f30.png)](
34-
https://chrome.google.com/webstore/detail/unedit-and-undelete-for-r/cnpmnmpafbfojcoofaobmhmafiflgmka)
33+
[![Available in the Chrome Web Store](https://user-images.githubusercontent.com/20955511/172903902-727ce3a9-5a63-44a8-becd-bcc11e954f30.png)](https://chrome.google.com/webstore/detail/unedit-and-undelete-for-r/cnpmnmpafbfojcoofaobmhmafiflgmka)
3534
[![Firefox Get the Add-on](https://user-images.githubusercontent.com/20955511/172904059-eb121557-ef91-43a6-a5f6-f4be5e20a5dc.png)](https://addons.mozilla.org/en-US/firefox/addon/unedit-for-reddit/)
3635

3736
### As a Userscript
@@ -63,67 +62,76 @@ web-ext sign --api-key=user:YOUR_USER_ID --api-secret=YOUR_SECRET
6362

6463
The following are known limitations that cannot be fixed:
6564

66-
* The fetched comment may occasionally be the edited version instead of the original. This is because the Pushshift archive may take more time to archive the comment than it took the user to edit the comment, therefore causing Pushshift to archive the edited version and not the original. Additionally, comments that are several years old may also show the edited version since the original versions of comments edited before the first archival will not appear in Pushshift.
67-
* Comments that were posted within the past few minutes may occasionally not be found since Pushshift can take some time to archive all comments.
68-
* Comments in private subreddits will not be found as they are not able to be archived by Pushshift.
65+
- The fetched comment may occasionally be the edited version instead of the original. This is because the Pushshift archive may take more time to archive the comment than it took the user to edit the comment, therefore causing Pushshift to archive the edited version and not the original. Additionally, comments that are several years old may also show the edited version since the original versions of comments edited before the first archival will not appear in Pushshift.
66+
- Comments that were posted within the past few minutes may occasionally not be found since Pushshift can take some time to archive all comments.
67+
- Comments in private subreddits will not be found as they are not able to be archived by Pushshift.
68+
- Comments deleted by Reddit's spam filter will not be found as the text is never available for Pushshift to archive.
6969

7070
## Changelog
7171

72+
### Changes in 3.8.0
73+
74+
- Added support for viewing deleted and moderator-removed submissions on Redesign and Old Reddit
75+
- Added support for viewing edited submissions in list views (Old Reddit only)
76+
- Better error handling and logging
77+
- Changed background and foreground color of original posts to be consistent across all posts and themes
78+
- Made "Original Post" heading bold on Redesign for consistency
79+
7280
### Changes in 3.7.3
7381

74-
* Fix duplicate "Show original" links appearing inside deleted comments
82+
- Fix duplicate "Show original" links appearing inside deleted comments
7583

7684
### Changes in 3.7.2
7785

78-
* Prevent "show original" links from appearing twice on comments that are both edited and deleted
79-
* Expand comment when the "show original" link is clicked on a collapsed comment
80-
* Some minor code refactoring and formatting
86+
- Prevent "show original" links from appearing twice on comments that are both edited and deleted
87+
- Expand comment when the "show original" link is clicked on a collapsed comment (Old Reddit only)
88+
- Some minor code refactoring and formatting
8189

8290
### Changes in 3.7.1
8391

84-
* Fixed positioning of original comment on Old Reddit to be inline with text rather than below replies
92+
- Fixed positioning of original comment on Old Reddit to be inline with text rather than below replies
8593

8694
### Changes in 3.7.0
8795

88-
* Added support for viewing comments removed by moderators
96+
- Added support for viewing comments removed by moderators
8997

9098
### Changes in 3.6.1
9199

92-
* Better error handling
93-
* More reliable when viewing edited comments on profile pages
100+
- Better error handling
101+
- More reliable when viewing edited comments on profile pages
94102

95103
### Changes in 3.6.0
96104

97-
* Check a second source for comments so more recent comments are less likely to be "not found"
98-
* Fixes to getting comment ids in Reddit redesign
105+
- Check a second source for comments so more recent comments are less likely to be "not found"
106+
- Fixes to getting comment ids in Reddit redesign
99107

100108
### Changes in 3.5
101109

102-
* Added compatibility with Old Reddit links without "old.reddit" in the URL
103-
* Added additional @includes for more compatibility
110+
- Added compatibility with Old Reddit links without "old.reddit" in the URL
111+
- Added additional @includes for more compatibility
104112

105113
### Changes in 3.4
106114

107-
* Fixed @match for more compatibility
115+
- Fixed @match for more compatibility
108116

109117
### Changes in 3.3
110118

111-
* Added support for profile pages (Redesign)
119+
- Added support for profile pages (Redesign)
112120

113121
### Changes in 3.2
114122

115-
* Works more accurately in post previews (Redesign feature where the post is shown in a popup when clicked from post list)
123+
- Works more accurately in post previews (Redesign feature where the post is shown in a popup when clicked from post list)
116124

117125
### Changes in 3.1
118126

119-
* Fixed missing styling on comments shown in the Redesign
120-
* Fixed placement of inline comment to work on comments that do not end with a paragraph (`<p>`) element
127+
- Fixed missing styling on comments shown in the Redesign
128+
- Fixed placement of inline comment to work on comments that do not end with a paragraph (`<p>`) element
121129

122130
### Changes in 3.0
123131

124-
* Added support for deleted comments
132+
- Added support for deleted comments
125133

126134
### Changes in 2.0
127135

128-
* The original comment is converted from markdown to HTML to show custom formatting
129-
* Support for self-text submissions (old Reddit only)
136+
- The original comment is converted from markdown to HTML to show custom formatting
137+
- Support for self-text submissions (old Reddit only)

manifest-v2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33
"name": "Unedit and Undelete for Reddit",
44
"description": "Creates links next to edited and deleted Reddit posts to show the original from before it was edited/removed.",
5-
"version": "3.7.3",
5+
"version": "3.8.0",
66
"content_scripts": [
77
{
88
"run_at": "document_idle",

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 3,
33
"name": "Unedit and Undelete for Reddit",
44
"description": "Creates links next to edited and deleted Reddit posts to show the original from before it was edited/removed.",
5-
"version": "3.7.3",
5+
"version": "3.8.0",
66
"content_scripts": [
77
{
88
"run_at": "document_idle",

0 commit comments

Comments
 (0)