Skip to content

Instantly share code, notes, and snippets.

@enplotz
Created March 24, 2013 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enplotz/5233081 to your computer and use it in GitHub Desktop.
Save enplotz/5233081 to your computer and use it in GitHub Desktop.
Code for a bookmarklet to de-justify the text on 28blogslater.de
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