From 488b828515380de09ecbd103b64f619127b3ee39 Mon Sep 17 00:00:00 2001 From: James Campos Date: Sun, 14 Nov 2010 04:33:58 -0800 Subject: [PATCH] use absolute positioning for `g` keybind userstyles make the position of #navtop / #header uncertain --- 4chan_x.coffee | 3 ++- 4chan_x.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/4chan_x.coffee b/4chan_x.coffee index 768cb2261..e3ce45696 100644 --- a/4chan_x.coffee +++ b/4chan_x.coffee @@ -395,7 +395,8 @@ keyAct = (e) -> if e.shiftKey location.hash = 10 else - location.hash = 'navtop' + window.scrollTo 0, 0 + location.hash = '' count or= 1 switch char when "H" diff --git a/4chan_x.js b/4chan_x.js index 0f3952d7c..276d51327 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -486,7 +486,8 @@ if (e.shiftKey) { location.hash = 10; } else { - location.hash = 'navtop'; + window.scrollTo(0, 0); + location.hash = ''; } } }