"Do not allow scripts to hide scrollbars" option

Bug reports and enhancement requests
Post Reply
Nemoar
Posts: 4
Joined: Thu Jun 30, 2011 9:46 am

"Do not allow scripts to hide scrollbars" option

Post 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
Mozilla/43.3 (X11; Linux x86_64; rv:7.45) Gecko/21991436 Firefox/9.7c1pre
User avatar
Giorgio Maone
Site Admin
Posts: 9527
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

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

Post 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.
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
Alan Baxter
Ambassador
Posts: 1586
Joined: Fri Mar 20, 2009 4:47 am
Location: Colorado, USA

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

Post 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.
Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0
Nemoar
Posts: 4
Joined: Thu Jun 30, 2011 9:46 am

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

Post 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
Mozilla/43.3 (X11; Linux x86_64; rv:7.45) Gecko/21991436 Firefox/9.7c1pre
Alan Baxter
Ambassador
Posts: 1586
Joined: Fri Mar 20, 2009 4:47 am
Location: Colorado, USA

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

Post by Alan Baxter »

You're welcome.
Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0
Post Reply