Skip to content

Commit

Permalink
replace nbsp with a regular space
Browse files Browse the repository at this point in the history
this makes quoting (You)s and the like consistent with vanilla 4chan
the nbsp is stripped server-side
  • Loading branch information
Nick80835 committed Sep 23, 2024
1 parent 103c984 commit 6843f52
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/Quotelinks/QuoteCT.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ QuoteCT =
if Conf['Comment Expansion']
ExpandComment.callbacks.push @node

# \u00A0 is nbsp
@mark = $.el 'span',
textContent: '\u00A0(Cross-thread)'
textContent: ' (Cross-thread)'
className: 'qmark-ct'
Callbacks.Post.push
name: 'Mark Cross-thread Quotes'
Expand Down
3 changes: 1 addition & 2 deletions src/Quotelinks/QuoteOP.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ QuoteOP =
if Conf['Comment Expansion']
ExpandComment.callbacks.push @node

# \u00A0 is nbsp
@mark = $.el 'span',
textContent: '\u00A0(OP)'
textContent: ' (OP)'
className: 'qmark-op'
Callbacks.Post.push
name: 'Mark OP Quotes'
Expand Down
3 changes: 1 addition & 2 deletions src/Quotelinks/QuoteYou.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ QuoteYou =
if Conf['Comment Expansion']
ExpandComment.callbacks.push @node

# \u00A0 is nbsp
@mark = $.el 'span',
textContent: '\u00A0(You)'
textContent: ' (You)'
className: 'qmark-you'
Callbacks.Post.push
name: 'Mark Quotes of You'
Expand Down
3 changes: 1 addition & 2 deletions src/classes/Post.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,8 @@ class Post
file

@deadMark =
# \u00A0 is nbsp
$.el 'span',
textContent: '\u00A0(Dead)'
textContent: ' (Dead)'
className: 'qmark-dead'

kill: (file, index=0) ->
Expand Down

0 comments on commit 6843f52

Please # to comment.