Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question
    
+1. Thanks for the tip. –  Xavierjazz Jul 7 '11 at 16:55
    
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 '11 at 17:38
    
@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 '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

2 Answers 2

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

share|improve this answer
    
Would this affect typing into a textbox in Firefox? –  Darth Android Jul 11 '11 at 19:34
    
Probably :( Missed that. But maybe you could extend the script. Scrollmode hotkey. –  droidgren Jul 11 '11 at 20:13
    
I have updated script now so it detects textboxes. ;-) –  droidgren Jul 11 '11 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 '11 at 23:26
    
If it doesn't get fixed, I'll just bind it to ctrl-space or something. –  Malabarba Jul 11 '11 at 23:27

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.

share|improve this answer
    
Maybe a Jetpack addon? –  Stephanie Jul 17 '11 at 19:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.