From fe90011e1bece96c3bf3c1e2b1f4e224fec263b0 Mon Sep 17 00:00:00 2001 From: James Campos Date: Wed, 17 Nov 2010 06:05:44 -0800 Subject: [PATCH] o = open in new tab, i = quick reply --- 4chan_x.coffee | 10 +++++----- 4chan_x.js | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) 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;