diff --git a/4chan_x.coffee b/4chan_x.coffee index d3c974f40..388b340f1 100644 --- a/4chan_x.coffee +++ b/4chan_x.coffee @@ -398,6 +398,11 @@ keyAct = (e) -> temp = g.PAGENUM - count if temp < 0 then temp = 0 location.pathname = "/#{g.BOARD}/#{temp}#1" + when "I" + qrLink = $ "#{hash} ~ span[id] a:not(:first-child)" + quickReply.call qrLink + ta = $ '#qr textarea' + ta.focus() when "J" temp = position + count if temp > 9 then temp = 9 @@ -414,11 +419,6 @@ keyAct = (e) -> img = $("#{hash} ~ img") watch.call img when "O" - qrLink = $ "#{hash} ~ span[id] a:not(:first-child)" - quickReply.call qrLink - ta = $ '#qr textarea' - ta.focus() - when "T" href = $("#{hash} ~ span[id] a:last-of-type").href GM_openInTab href g.count = 0 diff --git a/4chan_x.js b/4chan_x.js index 31d767c8c..efcf003f1 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -493,6 +493,12 @@ } location.pathname = ("/" + (g.BOARD) + "/" + (temp) + "#1"); break; + case "I": + qrLink = $("" + (hash) + " ~ span[id] a:not(:first-child)"); + quickReply.call(qrLink); + ta = $('#qr textarea'); + ta.focus(); + break; case "J": temp = position + count; if (temp > 9) { @@ -521,12 +527,6 @@ watch.call(img); break; case "O": - qrLink = $("" + (hash) + " ~ span[id] a:not(:first-child)"); - quickReply.call(qrLink); - ta = $('#qr textarea'); - ta.focus(); - break; - case "T": href = $("" + (hash) + " ~ span[id] a:last-of-type").href; GM_openInTab(href); break;