🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

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!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Author
kengo321
Daily installs
0
Total installs
100
Ratings
2 0 0
Version
4
Created
2015-12-30
Updated
2017-11-12
Size
13.3 KB
License
MIT
Applies to
All sites

ユーザースクリプトコマンドに「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

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