I would like to ask you how to fake screen resolution given to web page. I've just kept trying googling it for 20 minutes to no avail. Thank you in advance.
-
Try googling for "User Agent Change". It would help if you specify the browser that you are using.– amicitasCommented Dec 4, 2013 at 14:41
-
1He is asking about screen resolution. For example 1024x768. User Agent Change just fakes what user agent your browser is using.– falconspyCommented Dec 4, 2013 at 19:17
-
True, however the options to change the reported screen resolution are usually in the same place as the options to change the User Agent. Searching for "User Agent" will usually lead to the right place.– amicitasCommented Dec 5, 2013 at 8:20
3 Answers
In Firefox you can access it through
Tools → Web Developer → Responsive Design View
You can choose a pre defined screen size, or input your own.
-
1Is there an api for this option ? For enabling it through js code ? Commented Jul 18, 2014 at 15:20
In google chrome, you can do this in the developer tools.
- Go to View->Developer->Developer Tools
- Click on the settings button in the lower right corner.
- Select Overrides from the settings
Here you can change the reported screen resolution among other setting.
In Internet Explorer you can access the Developer tools in these ways:
Hit the F12 key
Or
Tools > Developer Tools
Once you are in the Developer Tools sections:
Click Tools > Resize
This allows you to pick the resolution you want to display as.