Wikipedia Content Max Width

Limit Wikipedia main content width to 1024px.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Wikipedia Content Max Width
// @description  Limit Wikipedia main content width to 1024px.
// @match        *://*.wikipedia.org/*
// @version      0.1
// @namespace https://greasyfork.org/users/658805
// ==/UserScript==

(function() {
    'use strict';
    var node = document.createElement('style');
    node.innerHTML = '@media screen and (min-width: 1280px) { #mw-head { max-width: calc(1024px + 160px + 82px) !important; right: auto !important; left: calc((100vw - (1024px + 160px + 16px * 6)) / 2) !important; } #content { max-width: 1024px !important; border-right-width: 1px !important; margin-left: calc((100vw - (1024px + 160px + 16px * 6)) / 2 + 160px + 16px) !important; } #mw-panel { left: calc((100vw - (1024px + 160px + 16px * 6)) / 2) !important; } }';
    document.head.appendChild(node);
})();