Den här webbplatsen har begränsad funktionalitet medan vi utför underhåll för att förbättra din upplevelse. Om en artikel inte löser ditt problem och du vill ställa en fråga har vi vår gemenskap som väntar på att hjälpa dig på @FirefoxSupport på Twitter, /r/firefox på Reddit.

Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Läs mer

I use non fullscreen Firefox window - have to scroll horizontally. Can I spoof screen resolution information?

  • 1 svar
  • 5 har detta problem
  • 14 visningar
  • Senaste svar av cor-el

more options

Screen resolution information captured by Javascript shows the full monitor resolution. Meanwhile I don't maximize my Firefox (use Windows left and right snap). It seems to me that many websites use this info to decide how to render a page. Thus rendering wide pages that require me to scroll horizontally - even on https://support.mozilla.org/en-US/home

I have tried the FireSizer add on but it did not help. FireSizer only changes my browser windows size, websites (e.g. http://www.whatismyscreenresolution.com/) still reported my full screen resolution and not the browser windows size.

I know that I can use the zoom functionality, but that tends to render text too small for comfort.

Additional info: - monitor resolution: 1920x1200

Screen resolution information captured by Javascript shows the full monitor resolution. Meanwhile I don't maximize my Firefox (use Windows left and right snap). It seems to me that many websites use this info to decide how to render a page. Thus rendering wide pages that require me to scroll horizontally - even on https://support.mozilla.org/en-US/home I have tried the FireSizer add on but it did not help. FireSizer only changes my browser windows size, websites (e.g. http://www.whatismyscreenresolution.com/) still reported my full screen resolution and not the browser windows size. I know that I can use the zoom functionality, but that tends to render text too small for comfort. Additional info: - monitor resolution: 1920x1200

Alla svar (1)

more options

That depends which window and screen properties a website checks via JavaScript.

You can check out on the browserspy website how websites see your windows settings:

Copy and paste this code in the command line in the Web Console (Web Developer > Web Console; Ctrl+Shift+K) and press the Enter key.

alert("Current Window: "+window.outerWidth+" x "+window.outerHeight+"\nScreen Available: "+screen.availWidth+" x "+screen.availHeight+"\nFull Screen Size: "+screen.width+" x "+screen.height+"\n\nwindow.outerWidth="+window.outerWidth+"\nwindow.outerHeight="+window.outerHeight+"\n\nwindow.innerWidth="+window.innerWidth+"\nwindow.innerHeight="+window.innerHeight);