Large

Super iGoogle

By stinkinrich88 Last update Apr 9, 2012 — Installed 56,512 times.

White space at bottom of iGoogle

in
Subscribe to White space at bottom of iGoogle 8 posts, 2 voices



lkpcampion User
FirefoxWindows

Hi,

Thanks for this script.

I am using the latest (as of today) version of Firefox 6. I mainly use the script to hide the footer and sidebar. I notice there are white space at the bottom of page that force out my scroll bar, which I'd like to be rid of.

I am also using another extension called NoSquint to adjust page/text zoom on my laptop screen. Previously, I adjust the following line to successfully remove the white space:

waitForClass(pageToShorten, function(elm) {elm.style.marginBottom = '-2em';}); // Reduce white-space at bottom of page

But recently this adjustment seems to have no effect at all. May I know if there's anyway to remove the white space at the bottom of page? Thanks in advance

 
stinkinrich88 Script's Author
ChromeX11

Hi,

I really can't figure this out, sorry! There is literally nothing in that white space, though. I've checked on firefox and chrome. It actually happens even without Super iGoogle. The original iGoogle page ends straight under the last links in the footer, but there is still lots of white space under it (in chrome, if you right-click this area and click "inspect" it suddenly disappears!) So maybe this is a browser problem, or a problem in the iGoogle code. Anyway, my best guess is that it is something to do with the chat app in the sidebar. Can't pin it down though...

 
lkpcampion User
FirefoxWindows

Hi,

Thanks for checking. It's a pity this particular glitch lies within iGoogle's realm. Though, I had previously been able to remedy it by altering the above line. Do you have any idea why that line has no effect whatsoever now?

 
stinkinrich88 Script's Author
ChromeX11

Basically, on the old iGoogle page, some element had a big margin at the bottom which made the page bigger. my old code fixed that, but now that element isn't on the new page and I can't figure out what it making the page longer. Weird!

Anyway, it just so happens that a few minutes ago I got a comment on the Chrome version from "Kevin" to tell me that he modified my script to remove the scroll bar from the page using this line:

document.getElementsByTagName("body")[0].style.overflow = "hidden";

Try pasting that into Super iGoogle somewhere (let me know if you don't know how to do this). I would put this into the official Super iGoogle, but it disables scrollbars even if you can't see the bottom of the page, so it may be a problem for some users. Hope this helps!

 
stinkinrich88 Script's Author
FirefoxX11

Ooh! I managed to fix it! Found a little iFrame with nothing in it causing the trouble. update to version 3.0.1 and it should be fixed :-)

 
lkpcampion User
FirefoxWindows

SUPERB! Thanks a lot! Now my iGoogle page is MUCH cleaner and I can finally afford to zoom in the text to a more eye-strain friendly size.

It may not be necessary anymore, but I am curious - which line/section does the above 'scroll bar hiding' line go to in your script? It seems a useful piece of knowledge still.

Once again, thank you for making this script better and better. Your ongoing and frequent maintenance truly separates your work from others. I sincerely appreciate the effort you put in!

 
stinkinrich88 Script's Author
ChromeX11

oh thanks a lot, glad you like it.

Yeah, the script is a little messy atm as I've just commented out the autohide code for now while I wait to see if anyone wants it back. But basically, the majority of the script is functions that are called (on page load or with the menu, etc). (and there is quite a lot of code at the bottom of the script that I didn't write, this is for keyboard shortcuts). But the actual "main" code (the code that is run on page load) can be found between the comments: "START OF PROGRAM" (line 80) and "END OF PROGRAM" (line 102). In there is an if-statement to check if the user is signed in before the script is run. Simply put the scrollbar-hide code anywhere inside that if statement (just like the current code is for getting rid of the white-space at the bottom, look at the comments to find it).

Hope this helps!

 
lkpcampion User
FirefoxWindows

Thanks for the clear explanation. I will keep this in mind. Again, this is a great utility and I wish you all the best keeping it on!!