diff --git a/4chan_x.coffee b/4chan_x.coffee index 1003e339e..45b44a8ee 100644 --- a/4chan_x.coffee +++ b/4chan_x.coffee @@ -416,7 +416,10 @@ keypress = (e) -> if temp < 0 then temp = 0 location.pathname = "/#{g.BOARD}/#{temp}#1" when "I" - qrLink = $ "#{hash} ~ span[id] a:not(:first-child)" + #TODO scroll when replying to op + [thread] = getThread() + unless qrLink = $ 'td.replyhl span[id] a:not(:first-child)', thread + qrLink = $ "span#nothread#{thread.id} a:not(:first-child)", thread quickReply.call qrLink when "J" if e.shiftKey diff --git a/4chan_x.js b/4chan_x.js index 367ccbde7..dff02048e 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -519,7 +519,11 @@ } return (location.pathname = ("/" + (g.BOARD) + "/" + (temp) + "#1")); case "I": - qrLink = $("" + (hash) + " ~ span[id] a:not(:first-child)"); + _ref = getThread(); + thread = _ref[0]; + if (!(qrLink = $('td.replyhl span[id] a:not(:first-child)', thread))) { + qrLink = $("span#nothread" + (thread.id) + " a:not(:first-child)", thread); + } return quickReply.call(qrLink); case "J": if (e.shiftKey) {