{"id":3186,"date":"2013-08-16T15:15:53","date_gmt":"2013-08-16T22:15:53","guid":{"rendered":"http:\/\/g-liu.com\/blog\/?p=3186"},"modified":"2015-05-01T23:43:53","modified_gmt":"2015-05-02T06:43:53","slug":"firefox-responsive-design-view-presets","status":"publish","type":"post","link":"https:\/\/g-liu.com\/blog\/2013\/08\/firefox-responsive-design-view-presets\/","title":{"rendered":"Add more presets to Firefox responsive design view"},"content":{"rendered":"<p><a href=\"http:\/\/g-liu.com\/blog\/wp-content\/uploads\/2013\/08\/rdm-resolutions-2.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3189\" data-permalink=\"https:\/\/g-liu.com\/blog\/2013\/08\/firefox-responsive-design-view-presets\/rdm-resolutions-2\/\" data-orig-file=\"https:\/\/g-liu.com\/blog\/wp-content\/uploads\/2013\/08\/rdm-resolutions-2.png\" data-orig-size=\"131,324\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"rdm-resolutions-2\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/g-liu.com\/blog\/wp-content\/uploads\/2013\/08\/rdm-resolutions-2-121x300.png\" data-large-file=\"https:\/\/g-liu.com\/blog\/wp-content\/uploads\/2013\/08\/rdm-resolutions-2.png\" class=\"alignleft size-full wp-image-3189\" src=\"http:\/\/g-liu.com\/blog\/wp-content\/uploads\/2013\/08\/rdm-resolutions-2.png\" alt=\"rdm-resolutions-2\" width=\"131\" height=\"324\" srcset=\"https:\/\/g-liu.com\/blog\/wp-content\/uploads\/2013\/08\/rdm-resolutions-2.png 131w, https:\/\/g-liu.com\/blog\/wp-content\/uploads\/2013\/08\/rdm-resolutions-2-121x300.png 121w\" sizes=\"(max-width: 131px) 100vw, 131px\" \/><\/a>For us web developers, Firefox ships with a really nice Developer Tools interface (<kbd>Shift+F5<\/kbd>, <kbd>Cmd+Shift+I<\/kbd>), which includes the Responsive Design View (<kbd>Ctrl+Shift+M<\/kbd>, <kbd>Alt+Shift+M<\/kbd>). Unfortunately, RDV is disappointing in its paltry selection of preset resolutions. It&#8217;s a shame that the Firefox developers didn&#8217;t include more common resolutions, such as 1920&#215;1080 or 1366&#215;768.<\/p>\n<p>They didn&#8217;t make it easy to add presets either. You have to manually resize the window, and getting the dimensions down to the pixel isn&#8217;t that easy with a mouse.<\/p>\n<p>That&#8217;s why I compiled a list of common resolutions that you can use in RDM. Here&#8217;s how to add these common resolutions:<br \/>\n<!--more--><\/p>\n<ol>\n<li>Open a new Firefox tab or window, and type <code>about:config<\/code><\/li>\n<li>(If a warning message comes up, just click OK or &#8220;I&#8217;ll be careful, I promise!&#8221;.)<\/li>\n<li>Now, we have to find the setting for RDM&#8217;s presets. In the search bar, type in <code>devtools.responsiveUI.presets<\/code>. If this setting does not exist, create it. To create the setting, right-click in the empty area, click New -&gt; String, enter the name and leave the value blank.<br \/>\n<em>(Hat tip to commenter Aldi, it&#8217;s &#8220;responsiveUI&#8221;, <span style=\"text-decoration-line: underline;\">not<\/span> &#8220;responsive.UI&#8221;)<\/em><\/li>\n<li>Right click -&gt; <strong>Modify<\/strong>.<\/li>\n<li>Copy and paste the following into the text field, replacing the original contents:<br \/>\n<script src=\"https:\/\/gist.github.com\/g-liu\/fc24beb335afa6862cd5.js\"><\/script><br \/>\nOr, <a href=\"https:\/\/gist.githubusercontent.com\/g-liu\/fc24beb335afa6862cd5\/raw\/e826f574eaec34a3e3d55f074b1f57ed70ceab3d\/settings.json\" target=\"_BLANK\">view this code on GitHub<\/a> and copy and paste from there.<\/p>\n<p><em>Hat tip to commenter Yoni Sudwerts who pointed out that &#8220;key&#8221; should be &#8220;name&#8221;. This is a change in FF 37 onwards.<\/em>\n<\/li>\n<li>Click OK. If you have any tabs open with RDM, close and reopen them to see the changes.<\/li>\n<\/ol>\n<p>Now when you use RDV, you&#8217;ll have all of the common screen resolutions at your disposal. No more manually resizing the frame!<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content --><!-- AddThis Related Posts generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>For us web developers, Firefox ships with a really nice Developer Tools interface (Shift+F5, Cmd+Shift+I), which includes the Responsive Design View (Ctrl+Shift+M, Alt+Shift+M). Unfortunately, RDV is disappointing in its paltry selection of preset resolutions. It&#8217;s a shame that the Firefox developers didn&#8217;t include more common resolutions, such as 1920&#215;1080 or 1366&#215;768. They didn&#8217;t make it easy to add presets either. &#8230;<!-- AddThis Advanced Settings generic via filter on wp_trim_excerpt --><!-- AddThis Share Buttons generic via filter on wp_trim_excerpt --><!-- AddThis Related Posts generic via filter on wp_trim_excerpt --><\/p>\n","protected":false},"author":2,"featured_media":5269,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"#howto Add more presets to Firefox responsive design mode","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[830,115],"tags":[],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/g-liu.com\/blog\/wp-content\/uploads\/2013\/08\/firefox.jpg","jetpack_shortlink":"https:\/\/wp.me\/p2Zt3y-Po","_links":{"self":[{"href":"https:\/\/g-liu.com\/blog\/wp-json\/wp\/v2\/posts\/3186"}],"collection":[{"href":"https:\/\/g-liu.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/g-liu.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/g-liu.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/g-liu.com\/blog\/wp-json\/wp\/v2\/comments?post=3186"}],"version-history":[{"count":6,"href":"https:\/\/g-liu.com\/blog\/wp-json\/wp\/v2\/posts\/3186\/revisions"}],"predecessor-version":[{"id":5272,"href":"https:\/\/g-liu.com\/blog\/wp-json\/wp\/v2\/posts\/3186\/revisions\/5272"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/g-liu.com\/blog\/wp-json\/wp\/v2\/media\/5269"}],"wp:attachment":[{"href":"https:\/\/g-liu.com\/blog\/wp-json\/wp\/v2\/media?parent=3186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/g-liu.com\/blog\/wp-json\/wp\/v2\/categories?post=3186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/g-liu.com\/blog\/wp-json\/wp\/v2\/tags?post=3186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}