23

Is it possible to have the spacebar not scroll down the entire page in Firefox? Scrolling one line at a time (with the down arrow) is very slow, but scrolling the entire screen (with spacebar) sets me off and I loose focus.

Is there a way to make the spacebar scroll the page the equivalent of approximately half the screen?

Just to be clear. When pressing spacebar, instead of the line in the bottom of the screen bring brought to the top, the line in the bottom should be brought to the middle.

4
  • Hey, adjust your wheel mouse to scroll for example 10 lines, 20 lines... If you want to scroll one line, hold shift.
    – kokbira
    Jul 7, 2011 at 17:38
  • 1
    @kokbira I've adjusted the mouse wheel scroll, but I do most of my reading with my hands on my keyboard, so adjusting the keyboard scroll would be much more convenient.
    – Malabarba
    Jul 7, 2011 at 18:22
  • If you find have a problem with reading after scrolling such a long leap, your problem isn't your browser scroll behaviour, it is your window size. Use a resizing tool to place the browser in a window half as high as your screen and just wide enough for the text + navigation. I prefer GridMove, but there are alternatives too.
    – rumtscho
    Jul 11, 2011 at 21:57
  • This would also help with sites with a banner overlay that hides 2-3 lines of the page.
    – Noumenon
    Jul 19, 2019 at 4:04

3 Answers 3

8
+50

Should be quite simple to accomplish in AutoHotkey. Download autohotkey, and use the following script with it. The script detects if you are in a input box.

#NoEnv  
SendMode Input
SetWorkingDir %A_ScriptDir% 
#IfWinActive, ahk_class MozillaWindowClass
{
    Space::
    If A_Cursor != IBeam
    {   
        Send {WheelDown 150}
    }else {
        Send {Space}
    }
    return
}             

Then adjust the amount of scrollsteps you want to scroll at {WheelDown 150} You can easily compile the script to an exefile if you want by using the Compiler that is included when you download autohotkey.

OR download this precompiled binary... http://www.megaupload.com/?d=D58JPT4U

8
  • Would this affect typing into a textbox in Firefox? Jul 11, 2011 at 19:34
  • Probably :( Missed that. But maybe you could extend the script. Scrollmode hotkey.
    – droidgren
    Jul 11, 2011 at 20:13
  • I have updated script now so it detects textboxes. ;-)
    – droidgren
    Jul 11, 2011 at 21:44
  • That kind of works... From my testing: it only detects that the cursor is on a textbox if the mouse cursor is also on top of the textbox, otherwise it just scrolls. I know it sounds weird, but I reproducing it right now on this comment box.
    – Malabarba
    Jul 11, 2011 at 23:26
  • If it doesn't get fixed, I'll just bind it to ctrl-space or something.
    – Malabarba
    Jul 11, 2011 at 23:27
1

It's just an undeveloped idea, but maybe somebody will make it real: A custom greasemonkey script, which detects space and shift-space keypresses, prevents default scroll behaviour, and programmatically scrolls half page.

1
  • Maybe a Jetpack addon?
    – Stephanie
    Jul 17, 2011 at 19:22
0

I use vimium-C add-on on Firefox which has the following keyboard shortcuts:

d       scroll down half a page
u       scroll up half a page

(There are several other similar add-ons which you might want to look into and choose the one that fits best to your needs, including the original Vimium)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .