Disabling browser browsing by some elements in Firefox.

Is it possible to disable the full-scale zoom in Firefox (activated by Ctrl +) for a web page? What about some elements on a web page? I just notice that sometimes elements look really weird when they are enlarged, and it would be nice to just turn off scaling for these elements completely.

Note. I know that there are several ways to find the level of scaling, but this is really very important in order to actively work on it (this may not be a good idea).

+6
firefox
source share
1 answer

Using information collected mainly on this issue: In the browser browser, "zoom in" in JavaScript

I played with trying to track browser zoom for the last day or so, and it's about as close as you can get without the standard onZoom event, which you can kill.

document.observe('keydown', function (ev) { var key, keys = ['0']; var isApple = (navigator.userAgent.indexOf('Mac') > -1), isCmmd, isCtrl; if (window.event) { key = window.event.keyCode; isCtrl = window.event.ctrlKey ? true : false; isCmmd = window.event.metaKey ? true : false; } else { key = e.which; isCtrl = ev.ctrlKey ? true : false; isCmmd = ev.metaKey ? true : false; } if (isCtrl || (isCmmd && isApple)) { switch (key) { case 48: // 0 // do not stop, or user could get stuck break; case 187: // + case 189: // - ev.stop() break; default: break; } } }); 

Unfortunately, I have been playing with this for a while now, and there is no surefire way to really disable it. Scaling options are still available in the main application menus, so there’s a real way to track scaling (including after reloading the page, which is basically impossible now, and in addition, webkit shows odd behavior when trying to track the increase).

Despite the fact that many people would like to keep a hidden snapshot of the browser, I personally can see the possible advantages associated with the ability to scale separately from resizing, because at the moment they are in most cases indistinguishable (and this, if not for any other reason in general).

+4
source share

All Articles