Skip to content

Commit 43cf653

Browse files
fix: Update the matched and excluded url patterns (#62)
Co-authored-by: dequeued0 <58760081+dequeued0@users.noreply.github.com>
1 parent da3489e commit 43cf653

File tree

4 files changed

+66
-7
lines changed

4 files changed

+66
-7
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ The following are known limitations that cannot be fixed:
6060

6161
## Changelog
6262

63+
### Changes in 3.15.1
64+
65+
- Added some URL patterns to be excluded from running the script
66+
6367
### Changes in 3.15.0
6468

6569
- Added support for comments not shown in the comment tree if the link is visited directly.

manifest-v2.json

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,31 @@
22
"manifest_version": 2,
33
"name": "Unedit and Undelete for Reddit",
44
"description": "Show original comments and posts from before they were edited or removed",
5-
"version": "3.15.0",
5+
"version": "3.15.1",
66
"content_scripts": [
77
{
88
"run_at": "document_idle",
9-
"matches": ["*://*.reddit.com/*"],
9+
"matches": [
10+
"*://*.reddit.com/",
11+
"*://*.reddit.com/me/f/*",
12+
"*://*.reddit.com/message/*",
13+
"*://*.reddit.com/r/*",
14+
"*://*.reddit.com/user/*"
15+
],
16+
"exclude_matches": [
17+
"*://*.reddit.com/*/about/banned*",
18+
"*://*.reddit.com/*/about/contributors*",
19+
"*://*.reddit.com/*/about/edit*",
20+
"*://*.reddit.com/*/about/flair*",
21+
"*://*.reddit.com/*/about/log*",
22+
"*://*.reddit.com/*/about/moderators*",
23+
"*://*.reddit.com/*/about/muted*",
24+
"*://*.reddit.com/*/about/rules*",
25+
"*://*.reddit.com/*/about/stylesheet*",
26+
"*://*.reddit.com/*/about/traffic*",
27+
"*://*.reddit.com/*/wiki/*",
28+
"*://mod.reddit.com/*"
29+
],
1030
"js": ["vendor/showdown.min.js", "script.js"]
1131
}
1232
],

manifest.json

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,31 @@
22
"manifest_version": 3,
33
"name": "Unedit and Undelete for Reddit",
44
"description": "Show original comments and posts from before they were edited or removed",
5-
"version": "3.15.0",
5+
"version": "3.15.1",
66
"content_scripts": [
77
{
88
"run_at": "document_idle",
9-
"matches": ["*://*.reddit.com/*"],
9+
"matches": [
10+
"*://*.reddit.com/",
11+
"*://*.reddit.com/me/f/*",
12+
"*://*.reddit.com/message/*",
13+
"*://*.reddit.com/r/*",
14+
"*://*.reddit.com/user/*"
15+
],
16+
"exclude_matches": [
17+
"*://*.reddit.com/*/about/banned*",
18+
"*://*.reddit.com/*/about/contributors*",
19+
"*://*.reddit.com/*/about/edit*",
20+
"*://*.reddit.com/*/about/flair*",
21+
"*://*.reddit.com/*/about/log*",
22+
"*://*.reddit.com/*/about/moderators*",
23+
"*://*.reddit.com/*/about/muted*",
24+
"*://*.reddit.com/*/about/rules*",
25+
"*://*.reddit.com/*/about/stylesheet*",
26+
"*://*.reddit.com/*/about/traffic*",
27+
"*://*.reddit.com/*/wiki/*",
28+
"*://mod.reddit.com/*"
29+
],
1030
"js": ["vendor/showdown.min.js", "script.js"]
1131
}
1232
],

script.js

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,29 @@
11
// ==UserScript==
22
// @name Unedit and Undelete for Reddit
33
// @namespace http://tampermonkey.net/
4-
// @version 3.15.0
4+
// @version 3.15.1
55
// @description Creates the option next to edited and deleted Reddit comments/posts to show the original comment from before it was edited
66
// @author Jonah Lawrence (DenverCoder1)
7-
// @match https://reddit.com/*
8-
// @match https://*.reddit.com/*
97
// @grant none
108
// @require https://cdn.jsdelivr.net/npm/showdown@2.1.0/dist/showdown.min.js
119
// @license MIT
10+
// @match https://*.reddit.com/
11+
// @match https://*.reddit.com/me/f/*
12+
// @match https://*.reddit.com/message/*
13+
// @match https://*.reddit.com/r/*
14+
// @match https://*.reddit.com/user/*
15+
// @exclude https://*.reddit.com/*/about/banned*
16+
// @exclude https://*.reddit.com/*/about/contributors*
17+
// @exclude https://*.reddit.com/*/about/edit*
18+
// @exclude https://*.reddit.com/*/about/flair*
19+
// @exclude https://*.reddit.com/*/about/log*
20+
// @exclude https://*.reddit.com/*/about/moderators*
21+
// @exclude https://*.reddit.com/*/about/muted*
22+
// @exclude https://*.reddit.com/*/about/rules*
23+
// @exclude https://*.reddit.com/*/about/stylesheet*
24+
// @exclude https://*.reddit.com/*/about/traffic*
25+
// @exclude https://*.reddit.com/*/wiki/*
26+
// @exclude https://mod.reddit.com/*
1227
// ==/UserScript==
1328

1429
/* jshint esversion: 8 */

0 commit comments

Comments
 (0)