Screw supporting 4chan's inline features.
This commit is contained in:
parent
cc4121070a
commit
3d7097fffb
@ -92,12 +92,4 @@ ExpandThread =
|
||||
postsRoot.push root
|
||||
Main.callbackNodes Post, posts
|
||||
$.after a, postsRoot
|
||||
|
||||
postsCount = postsRoot.length
|
||||
a.textContent = ExpandThread.text '-', postsCount, filesCount
|
||||
|
||||
# Enable 4chan features.
|
||||
if Conf['Enable 4chan\'s Extension']
|
||||
$.globalEval "Parser.parseThread(#{thread}, 1, #{postsCount})"
|
||||
else
|
||||
Fourchan.parseThread thread.ID, 1, postsCount
|
||||
a.textContent = ExpandThread.text '-', postsRoot.length, filesCount
|
||||
|
||||
@ -42,10 +42,3 @@ Fourchan =
|
||||
math: ->
|
||||
return if @isClone or !$ '.math', @nodes.comment
|
||||
$.event 'jsmath', @nodes.post, window
|
||||
parseThread: (threadID, offset, limit) ->
|
||||
# Fix /sci/
|
||||
# Fix /g/
|
||||
$.event '4chanParsingDone',
|
||||
threadId: threadID
|
||||
offset: offset
|
||||
limit: limit
|
||||
|
||||
@ -254,11 +254,3 @@ ThreadUpdater =
|
||||
window.scrollTo 0, d.body.clientHeight
|
||||
else
|
||||
Header.scrollTo nodes[0]
|
||||
|
||||
# Enable 4chan features.
|
||||
threadID = ThreadUpdater.thread.ID
|
||||
{length} = $$ '.thread > .postContainer', ThreadUpdater.root
|
||||
if Conf['Enable 4chan\'s Extension']
|
||||
$.globalEval "Parser.parseThread(#{threadID}, #{-count})"
|
||||
else
|
||||
Fourchan.parseThread threadID, length - count, length
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user