mirror of
https://github.com/gurnec/removeddit.git
synced 2026-03-11 08:54:27 +00:00
Add missing spoiler thumbnail
This commit is contained in:
parent
cb316a541e
commit
1941879ad5
3 changed files with 8 additions and 2 deletions
2
dist/main.css
vendored
2
dist/main.css
vendored
File diff suppressed because one or more lines are too long
|
|
@ -37,6 +37,12 @@
|
|||
background-repeat: no-repeat
|
||||
height: 50px
|
||||
|
||||
.thumbnail-spoiler
|
||||
background-image: url("https://www.redditstatic.com/sprite-reddit.6Om8v6KMv28.png")
|
||||
background-position: 0px -1211px
|
||||
background-repeat: no-repeat
|
||||
height: 50px
|
||||
|
||||
.thread-score-box
|
||||
margin: 0 7px
|
||||
width: 43px
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ export const isDeleted = textBody => textBody === '\\[deleted\\]' || textBody ==
|
|||
export const isRemoved = textBody => textBody === '\\[removed\\]' || textBody === '[removed]' || textBody === '[ Removed by Reddit ]'
|
||||
|
||||
// Default thumbnails for reddit threads
|
||||
export const redditThumbnails = ['self', 'default', 'image', 'nsfw']
|
||||
export const redditThumbnails = ['self', 'default', 'image', 'nsfw', 'spoiler']
|
||||
|
||||
// Parse comments (see https://www.reddit.com/dev/api/#response_body_encoding)
|
||||
export const parse = text => markdown.render(text.replaceAll('<', '<').replaceAll('>', '>').replaceAll('&', '&'))
|
||||
|
|
|
|||
Loading…
Reference in a new issue