Wikipedia Content Max Width

Limit Wikipedia main content width to 1024px.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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);
})();