o = open in new tab, i = quick reply

This commit is contained in:
James Campos 2010-11-17 06:05:44 -08:00
parent a744036e1f
commit fe90011e1b
2 changed files with 11 additions and 11 deletions

View File

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

View File

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