o = open in new tab, i = quick reply
This commit is contained in:
parent
a744036e1f
commit
fe90011e1b
@ -398,6 +398,11 @@ keyAct = (e) ->
|
|||||||
temp = g.PAGENUM - count
|
temp = g.PAGENUM - count
|
||||||
if temp < 0 then temp = 0
|
if temp < 0 then temp = 0
|
||||||
location.pathname = "/#{g.BOARD}/#{temp}#1"
|
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"
|
when "J"
|
||||||
temp = position + count
|
temp = position + count
|
||||||
if temp > 9 then temp = 9
|
if temp > 9 then temp = 9
|
||||||
@ -414,11 +419,6 @@ keyAct = (e) ->
|
|||||||
img = $("#{hash} ~ img")
|
img = $("#{hash} ~ img")
|
||||||
watch.call img
|
watch.call img
|
||||||
when "O"
|
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
|
href = $("#{hash} ~ span[id] a:last-of-type").href
|
||||||
GM_openInTab href
|
GM_openInTab href
|
||||||
g.count = 0
|
g.count = 0
|
||||||
|
|||||||
12
4chan_x.js
12
4chan_x.js
@ -493,6 +493,12 @@
|
|||||||
}
|
}
|
||||||
location.pathname = ("/" + (g.BOARD) + "/" + (temp) + "#1");
|
location.pathname = ("/" + (g.BOARD) + "/" + (temp) + "#1");
|
||||||
break;
|
break;
|
||||||
|
case "I":
|
||||||
|
qrLink = $("" + (hash) + " ~ span[id] a:not(:first-child)");
|
||||||
|
quickReply.call(qrLink);
|
||||||
|
ta = $('#qr textarea');
|
||||||
|
ta.focus();
|
||||||
|
break;
|
||||||
case "J":
|
case "J":
|
||||||
temp = position + count;
|
temp = position + count;
|
||||||
if (temp > 9) {
|
if (temp > 9) {
|
||||||
@ -521,12 +527,6 @@
|
|||||||
watch.call(img);
|
watch.call(img);
|
||||||
break;
|
break;
|
||||||
case "O":
|
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;
|
href = $("" + (hash) + " ~ span[id] a:last-of-type").href;
|
||||||
GM_openInTab(href);
|
GM_openInTab(href);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user