Page 1 of 1

"Do not allow scripts to hide scrollbars" option

Posted: Mon Jul 25, 2011 8:49 am
by Nemoar
Hi,
Some sites hide vertical/horizontal scrollbars which is annoying.
This also problematic, essecially computers with small displays (ie. netbooks),
when there is content below but you can not scroll. Thus, you are stuck.

"Do not allow scripts to hide scrollbars" option would be helpful.
(Or two seperate options for horizontal and vertical scroll bar, since vertical
scrolling is more crutial. Anyway this is cosmetic.)

Infact, there is a extension called "Javascript Options" providing this.
But it is old and does not work with Firefox 5.0 now.

And I googled for an about:config entry for this, and had no luck.

Thanks in advance............Nemoar

Re: "Do not allow scripts to hide scrollbars" option

Posted: Mon Jul 25, 2011 9:56 am
by Giorgio Maone
Unfortunately (?) scrollbar behavior can be set without any scripting at all, by using the overflow CSS property.
On the other hand, you an use userContent.css or the Stylish extension to override whatever CSS is set by websites.

Re: "Do not allow scripts to hide scrollbars" option

Posted: Mon Jul 25, 2011 11:18 am
by Alan Baxter
Nemoar wrote: Infact, there is a extension called "Javascript Options" providing this.
But it is old and does not work with Firefox 5.0 now.
The JavaScript Options extension still works in Fx 5.0 if you override its compatibility check. I do that by disabling compatibility checking with the Add-on Compatibility Reporter extension. Install Add-on Compatibility Reporter first, restart Firefox, then install Javascript Options.

Another option is to toggle the dom.disable_window_open_feature.scrollbars pref to true with about:config. That's all Javascript Options does.

Re: "Do not allow scripts to hide scrollbars" option

Posted: Mon Jul 25, 2011 8:11 pm
by Nemoar
Compatibility check is disabled and browser is frozen at restart
after installing "Javascript Options" extension. May be, it has some
problems with other extensions.

Anyway, I prefer about:config entry which you provide. Thanks alot.

But I still think, this setting may be included somewhere in NoScript
since it exists for controlling unwanted actions from sites and
disabling scrollbars is one of them.

This is the last thing I can say about it, since I'm done with about:config
entry above. However it may be a neat and easy "feature" for NoScript.
Decision is upto developers.

Thanks again............Nemoar

Re: "Do not allow scripts to hide scrollbars" option

Posted: Tue Jul 26, 2011 1:18 am
by Alan Baxter
You're welcome.