Skip to content

Commit b5a1e50

Browse files
committed
Spectacles: Improve overall support and performance
1 parent 98d2383 commit b5a1e50

File tree

5 files changed

+302
-176
lines changed

5 files changed

+302
-176
lines changed

rollup.conf.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,14 @@ module.exports = readdirSync(SOURCE, { withFileTypes: true }).filter(de => de.is
3535

3636
userscript(
3737
path.resolve(`${SOURCE}/${de.name}/meta.js`),
38-
meta => {
39-
return meta
40-
.replace('%name%', `${de.name}${process.env.NODE_ENV == 'production' ? '' : '-dev'}`)
41-
.replace('%version%', pkg.version)
42-
.replace('%author%', pkg.author)
43-
.replace('%namespace%', pkg.repository.url)
44-
.replace('%homepage%', `${pkg.repository.url}/tree/main/src/${de.name}`)
45-
.replace('%support%', `${pkg.repository.url}/issues`)
46-
.replace('%download%', `${pkg.repository.url}/releases/latest/download/${de.name}.user.js`);
47-
},
38+
meta => meta
39+
.replace('%name%', `${de.name}${process.env.NODE_ENV == 'production' ? '' : '-dev'}`)
40+
.replace('%version%', pkg.version)
41+
.replace('%author%', pkg.author)
42+
.replace('%namespace%', pkg.repository.url)
43+
.replace('%homepage%', `${pkg.repository.url}/tree/main/src/${de.name}`)
44+
.replace('%support%', `${pkg.repository.url}/issues`)
45+
.replace('%download%', `${pkg.repository.url}/releases/latest/download/${de.name}.user.js`)
4846
)
4947
],
5048

src/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
### Spectacles
44
Spectacles is an enhancement for [reddit](https://reddit.com).
5-
It automatically removes all blur effects caused by spoilers and displays the hidden image, video or gif.
5+
A reddit userscript to effortlessly remove all spoilers in posts, and make it crystal clear.
6+
It has support for all media types on reddit, MP4's, Gifs, Images, Carousel Posts, Thread Posts with more features being added
67

78
*More coming soon..*

src/Spectacles/README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
## Spectacles
2-
Reddit glasses to remove blurry spoilers
3-
4-
### Options
5-
- There are additional options for spectacles
2+
A reddit userscript to effortlessly remove all spoilers in posts, and make it crystal clear.
63

74
### Features
8-
- Automatically unblurs all spoilers from reddit
9-
- Correctly converts to image and video
10-
- Support for unblurring crossposts and multiple slides
5+
- Unspoilers and Unblurs all media content
6+
- Correctly formats videos, and slideshow content to work.
7+
- Support for infinite scrolling to ensure all posts are unspoilered on load.
8+
- Support for thread posts
9+
10+
### Options
11+
- There are no additional options for spectacles

0 commit comments

Comments
 (0)