Created
May 23, 2021 13:51
-
-
Save arpruss/e66f23b252e9c0a3c1a34662822cf99e to your computer and use it in GitHub Desktop.
Justify
This file contains hidden or 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
| (function(){ | |
| var nodes=document.body.getElementsByTagName('*'); | |
| for (var i=0; i<nodes.length; i++) { | |
| if (nodes[i].style) { | |
| cs = getComputedStyle(nodes[i]); | |
| if (cs.textAlign == "left" || cs.textAlign == "start") { | |
| nodes[i].style.textAlign = "justify"; | |
| } | |
| } | |
| } | |
| })() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment