Fix for unclosed link in https://sushigirl.us/ announcement.
This commit is contained in:
parent
1bb967d4ab
commit
4f20d47b97
@ -344,6 +344,9 @@ Main =
|
|||||||
posts = []
|
posts = []
|
||||||
errors = []
|
errors = []
|
||||||
|
|
||||||
|
try
|
||||||
|
g.SITE.preParsingFixes?(board)
|
||||||
|
|
||||||
Main.addThreadsObserver = new MutationObserver Main.addThreads
|
Main.addThreadsObserver = new MutationObserver Main.addThreads
|
||||||
Main.addPostsObserver = new MutationObserver Main.addPosts
|
Main.addPostsObserver = new MutationObserver Main.addPosts
|
||||||
Main.addThreadsObserver.observe board, {childList: true}
|
Main.addThreadsObserver.observe board, {childList: true}
|
||||||
|
|||||||
@ -168,6 +168,11 @@ SW.tinyboard =
|
|||||||
isFileURL: (url) ->
|
isFileURL: (url) ->
|
||||||
/\/src\/[^\/]+/.test(url.pathname)
|
/\/src\/[^\/]+/.test(url.pathname)
|
||||||
|
|
||||||
|
preParsingFixes: (board) ->
|
||||||
|
# fixes effects of unclosed link in announcement
|
||||||
|
if (broken = $('a > input[name="board"]', board))
|
||||||
|
$.before broken.parentNode, broken
|
||||||
|
|
||||||
parseNodes: (post, nodes) ->
|
parseNodes: (post, nodes) ->
|
||||||
# Add vichan's span.poster_id around the ID if not already present.
|
# Add vichan's span.poster_id around the ID if not already present.
|
||||||
return if nodes.uniqueID
|
return if nodes.uniqueID
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user