Screw supporting 4chan's inline features.

This commit is contained in:
Mayhem 2014-02-05 16:11:04 +01:00
parent cc4121070a
commit 3d7097fffb
3 changed files with 1 additions and 24 deletions

View File

@ -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

View File

@ -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

View File

@ -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