From 6a8eb2eb545675039b8c2b23bddc30f86f25b852 Mon Sep 17 00:00:00 2001 From: James Campos Date: Wed, 29 Dec 2010 14:09:37 -0800 Subject: [PATCH] keybinds: remove hHlLjk --- 4chan_x.coffee | 20 -------------------- 4chan_x.js | 28 ---------------------------- 2 files changed, 48 deletions(-) diff --git a/4chan_x.coffee b/4chan_x.coffee index 7818f3651..29307433d 100644 --- a/4chan_x.coffee +++ b/4chan_x.coffee @@ -471,14 +471,6 @@ keyModeNormal = (e) -> location.hash = '' count or= 1 switch char - when "H" - if e.shiftKey - unless g.REPLY - temp = g.PAGENUM - count - if temp < 0 then temp = 0 - location.pathname = "/#{g.BOARD}/#{temp}#1" - else - window.scrollBy -20 * count, 0 when "I" if g.REPLY unless qrLink = $ 'td.replyhl span[id] a:not(:first-child)' @@ -509,8 +501,6 @@ keyModeNormal = (e) -> if top > 0 reply.className = 'replyhl' break - else - window.scrollBy 0, 20 * count when "K" if e.shiftKey if not g.REPLY then [root] = getThread() @@ -531,16 +521,6 @@ keyModeNormal = (e) -> if bot < height reply.className = 'replyhl' break - else - window.scrollBy 0, -20 * count - when "L" - if e.shiftKey - unless g.REPLY - temp = g.PAGENUM + count - if temp > 15 then temp = 15 - location.pathname = "/#{g.BOARD}/#{temp}#0" - else - window.scrollBy 20 * count, 0 when "M" if e.shiftKey $("#imageExpand").click() diff --git a/4chan_x.js b/4chan_x.js index 1be2fb9fd..67aa7d3fd 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -596,18 +596,6 @@ } count || (count = 1); switch (char) { - case "H": - if (e.shiftKey) { - if (!g.REPLY) { - temp = g.PAGENUM - count; - if (temp < 0) { - temp = 0; - } - return location.pathname = "/" + g.BOARD + "/" + temp + "#1"; - } - } else { - return window.scrollBy(-20 * count, 0); - } case "I": if (g.REPLY) { if (!(qrLink = $('td.replyhl span[id] a:not(:first-child)'))) { @@ -652,8 +640,6 @@ } } return _results; - } else { - return window.scrollBy(0, 20 * count); } case "K": if (e.shiftKey) { @@ -685,20 +671,6 @@ } } return _results2; - } else { - return window.scrollBy(0, -20 * count); - } - case "L": - if (e.shiftKey) { - if (!g.REPLY) { - temp = g.PAGENUM + count; - if (temp > 15) { - temp = 15; - } - return location.pathname = "/" + g.BOARD + "/" + temp + "#0"; - } - } else { - return window.scrollBy(20 * count, 0); } case "M": if (e.shiftKey) {