Last active
September 5, 2015 20:50
-
-
Save noromanba/6802d3a6be14061f1598 to your computer and use it in GitHub Desktop.
centering images for UserScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name img centering | |
// @namespace http://noromanba.flavors.me | |
// @description centering images for UserScript | |
// @include http://book.geocities.jp/monene39/paperakyu* | |
// @grant none | |
// @run-at document-start | |
// @noframes | |
// @version 2015.9.6.2 | |
// @homepage https://gist.github.com/noromanba/6802d3a6be14061f1598 | |
// @downloadURL https://gist.github.com/noromanba/6802d3a6be14061f1598/raw/img-centering.user.js | |
// @license MIT License http://nrm.mit-license.org/2015 | |
// @author noromanba http://noromanba.flavors.me | |
// @icon https://upload.wikimedia.org/wikipedia/commons/thumb/5/5e/Format-justify-center.svg/32px-Format-justify-center.svg.png | |
// @icon64 https://upload.wikimedia.org/wikipedia/commons/thumb/5/5e/Format-justify-center.svg/64px-Format-justify-center.svg.png | |
// ==/UserScript== | |
// Icon (PD by The people from the Tango! project) | |
// https://commons.wikimedia.org/wiki/File:Format-justify-center.svg | |
// Devel | |
// https://gist.github.com/noromanba/6802d3a6be14061f1598 | |
// Bookmarklet | |
// http://let.hatelabo.jp/noromanba/let/hLHX8--x5Ok9 | |
// e.g. | |
// http://book.geocities.jp/monene39/paperakyu00.html | |
(function () { | |
document.body.style.textAlign = 'center'; | |
document.body.style.marginLeft = 'initial'; | |
document.body.style.marginRight = 'initial'; | |
})(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment