Created
February 4, 2014 16:59
-
-
Save Ruzzz/8807774 to your computer and use it in GitHub Desktop.
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 Center txt | |
// @author Ruzzz | ruzzzua@gmail.com | |
// @include http://*/*.txt | |
// @version 0.0.1 | |
// @date 2014-02-04 | |
// ==/UserScript== | |
(function () { | |
var e=document.getElementsByTagName('pre')[0]; | |
e.style.fontFamily="Consolas"; | |
e.style.fontSize="12"; | |
e.style.backgroundColor="#FFF"; | |
e.style.padding="35px"; | |
e.style.width="640px"; | |
e.style.margin="0 auto 150px auto"; | |
e.style.boxShadow="0 0 10px rgba(0,0,0,0.5)"; | |
e=document.getElementsByTagName('body')[0]; | |
e.style.backgroundColor="#DDD"; | |
e.style.padding="0"; | |
e.style.margin="0"; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment