22

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.

Mehper C. Palavuzlar
  • 55,164
  • 49
  • 193
  • 250
Malabarba
  • 8,578
  • 21
  • 69
  • 105
  • Hey, adjust your wheel mouse to scroll for example 10 lines, 20 lines... If you want to scroll one line, hold shift. – kokbira Jul 07 '11 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 07 '11 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 '11 at 21:57
  • This would also help with sites with a banner overlay that hides 2-3 lines of the page. – Noumenon Jul 19 '19 at 04:04

2 Answers2

8

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

droidgren
  • 644
  • 1
  • 7
  • 17
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.

biziclop
  • 139
  • 3