Reddit Hide Moderator Comments

Hides Reddit Moderator Comments

  1. // ==UserScript==
  2. // @name Reddit Hide Moderator Comments
  3. // @namespace http://userstyles.org
  4. // @description Hides Reddit Moderator Comments
  5. // @author 636597
  6. // @include *://*reddit.com/*
  7. // @run-at document-start
  8. // @version 0.1
  9. // ==/UserScript==
  10.  
  11. function add_css() {
  12. try{
  13. var styles = `
  14. div.locked.comment { display: none !important; }
  15. `;
  16. var styleSheet = document.createElement( "style" );
  17. styleSheet.type = "text/css";
  18. styleSheet.innerText = styles;
  19. document.head.appendChild( styleSheet );
  20. }
  21. catch(e) {
  22. console.log( e );
  23. }
  24. }
  25.  
  26. function init() {
  27. console.log( "Loading Reddit Moderator Comment Hider" );
  28. add_css();
  29. }
  30.  
  31. ( function() {
  32. //window.addEventListener ( "load" , init );
  33. init();
  34. })();