Page Centering

ウェブページを中央配置

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

Forfatter
kengo321
Daglige installasjoner
0
Totale installasjoner
100
Vurderinger
2 0 0
Versjon
4
Lagd
30.12.2015
Oppdatert
12.11.2017
Size
13,3 kB
Lisens
MIT
Gjelder
Alle sider

ユーザースクリプトコマンドに「Page Centering 設定」を追加します。

一致する URL が複数あるときは、一番長い URL の設定を使用します。

html 要素の style 属性に max-width: [設定した最大幅]; position: relative; margin: 0px auto; を設定して中央配置します。

正しく中央配置されるかどうかはウェブページによります。

動作確認環境

  • Firefox + Greasemonkey
  • Google Chrome + Tampermonkey

更新履歴

  • 2017-11-12 v4

    • Greasemonkey4.0 に対応
    • このページのスクリプト名の最後に設定ボタンを追加
  • 2016-01-03 v3

    • セットボタンをクリックしたときに、最大幅の入力欄をフォーカスするように変更した
  • 2016-01-02 v2

    • 無効な値を最大幅に設定できないようにした