Scroll down half the screen size in Firefox

19

3

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.

Malabarba

Posted 2011-07-07T16:43:44.633

Reputation: 7 588

This would also help with sites with a banner overlay that hides 2-3 lines of the page. – Noumenon – 2019-07-19T04:04:12.283

Hey, adjust your wheel mouse to scroll for example 10 lines, 20 lines... If you want to scroll one line, hold shift. – kokbira – 2011-07-07T17:38:35.250

@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 – 2011-07-07T18:22:30.913

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 – 2011-07-11T21:57:23.473

Answers

7

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

Posted 2011-07-07T16:43:44.633

Reputation: 564

Would this affect typing into a textbox in Firefox? – Darth Android – 2011-07-11T19:34:15.467

Probably :( Missed that. But maybe you could extend the script. Scrollmode hotkey. – droidgren – 2011-07-11T20:13:05.500

I have updated script now so it detects textboxes. ;-) – droidgren – 2011-07-11T21:44:05.953

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 – 2011-07-11T23:26:27.580

If it doesn't get fixed, I'll just bind it to ctrl-space or something. – Malabarba – 2011-07-11T23:27:42.060

Yep, it's designed that way. But I'm gonna see what I can do. – droidgren – 2011-07-12T18:48:20.960

Well, wasn't the solution I was hoping to see here, but definitely an A for effort - doesn't look like there's going to be any easy way to do this in the browser itself. – Stephanie – 2011-07-17T19:22:12.037

Any idea how to do this in Linux? – Luc – 2014-01-12T23:50:20.330

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.

user188421

Posted 2011-07-07T16:43:44.633

Reputation: 129

Maybe a Jetpack addon? – Stephanie – 2011-07-17T19:22:30.680