Created
March 24, 2013 19:04
-
-
Save enplotz/5233081 to your computer and use it in GitHub Desktop.
Code for a bookmarklet to de-justify the text on 28blogslater.de
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
javascript: | |
( | |
function() | |
{ | |
var entries = document.getElementsByClassName("entry-content"); | |
for (var i=0; i < entries.length; ++i) { | |
var entry = entries[i]; | |
if( entry.style.textAlign === "left" ){ | |
entry.style.textAlign = "justify"; | |
} else { | |
entry.style.textAlign = "left"; | |
} | |
} | |
} | |
)(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment