<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://step4.site/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js</id>
	<title>MediaWiki:Common.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://step4.site/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js"/>
	<link rel="alternate" type="text/html" href="https://step4.site/index.php?title=MediaWiki:Common.js&amp;action=history"/>
	<updated>2026-11-04T02:53:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://step4.site/index.php?title=MediaWiki:Common.js&amp;diff=111&amp;oldid=prev</id>
		<title>AdamSinger: Use the device viewport instead of the fixed desktop width on mobile</title>
		<link rel="alternate" type="text/html" href="https://step4.site/index.php?title=MediaWiki:Common.js&amp;diff=111&amp;oldid=prev"/>
		<updated>2026-07-16T16:25:48Z</updated>

		<summary type="html">&lt;p&gt;Use the device viewport instead of the fixed desktop width on mobile&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/* Step 4 mobile viewport correction for Vector 2022.&lt;br /&gt;
 * The server currently emits width=1120; replace it with the device width.&lt;br /&gt;
 * No maximum-scale restriction is used, so pinch-to-zoom remains available.&lt;br /&gt;
 */&lt;br /&gt;
(function () {&lt;br /&gt;
    &amp;#039;use strict&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
    var viewport = document.querySelector(&amp;#039;meta[name=&amp;quot;viewport&amp;quot;]&amp;#039;);&lt;br /&gt;
    var content = &amp;#039;width=device-width, initial-scale=1, viewport-fit=cover&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
    if (viewport) {&lt;br /&gt;
        viewport.setAttribute(&amp;#039;content&amp;#039;, content);&lt;br /&gt;
    } else {&lt;br /&gt;
        viewport = document.createElement(&amp;#039;meta&amp;#039;);&lt;br /&gt;
        viewport.setAttribute(&amp;#039;name&amp;#039;, &amp;#039;viewport&amp;#039;);&lt;br /&gt;
        viewport.setAttribute(&amp;#039;content&amp;#039;, content);&lt;br /&gt;
        document.head.appendChild(viewport);&lt;br /&gt;
    }&lt;br /&gt;
}());&lt;/div&gt;</summary>
		<author><name>AdamSinger</name></author>
	</entry>
</feed>