Force Justify

In modern times there really is no reason not to use justified text alignment always!

  1. // ==UserScript==
  2. // @name Force Justify
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description In modern times there really is no reason not to use justified text alignment always!
  6. // @author YStanislav Stankovic
  7. // @match http://*/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. var x = document.querySelectorAll("p");
  14. for (var i = 0; i < x.length; i++) {
  15. x[i].style.textAlign = "justify";
  16. }
  17. // Your code here...
  18. })();