MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
(arrrg, all other JavaScript, go away!) |
No edit summary |
||
Line 1: | Line 1: | ||
//add "Justify paragraphs" CSS code based on setting in Special:Preferences | //add "Justify paragraphs" CSS code based on setting in Special:Preferences | ||
if (mw.user.options.get('justify') === "1") { | jQuery( document ).ready( function( $ ) { | ||
if (mw.user.options.get('justify') === "1") { | |||
} | mw.util.addCSS('#article, #bodyContent, #mw_content { text-align: justify; }'); | ||
} | |||
} ); |