Hack Forums Matte Black Theme (Style 5)

Changes HackForums to a dark, sleek theme! Style 5.

  1. // ==UserScript==
  2. // @name Hack Forums Matte Black Theme (Style 5)
  3. // @namespace +mK or OMGWTFISTHIS
  4. // @description Changes HackForums to a dark, sleek theme! Style 5.
  5. // @include *hackforums.net*
  6. // @exclude *x.hackforums.net*
  7. // @version 1.5
  8. // @require http://code.jquery.com/jquery-1.10.2.min.js
  9. // @run-at document-start
  10. // ==/UserScript==
  11. //I would like to thank Snorlax (Profile: http://www.hackforums.net/member.php?action=profile&uid=44755) from Hack Forum for helping me with an issue with this script.
  12.  
  13. //I would also like to thank Jason Aller (Profile: http://stackoverflow.com/users/214143/jason-aller) from Stack Overflow for helping me consolidate my script.
  14.  
  15. //For future reference: Anyone wanting to modify this script and release a new variant of it, feel free to without asking. Do NOT make it look tacky, though. I hate tacky designs.
  16.  
  17.  
  18.  
  19. function addGlobalStyle(css) {
  20. var head, style;
  21. head = document.getElementsByTagName('head')[0];
  22. if (!head) { return; }
  23. style = document.createElement('style');
  24. style.type = 'text/css';
  25. style.innerHTML = css;
  26. head.appendChild(style);
  27. }
  28.  
  29.  
  30.  
  31.  
  32. var styles = [];
  33.  
  34. styles.push('body {background: #072948 url(http://i.imgur.com/W0igxmW.png) fixed !important; }');
  35. //If you want to change the background image to your own, simply change the image link in the above line.
  36.  
  37. styles.push('.logo, div.largetext {display: none!important;}');
  38. //If you want the logo to be added back, simply remove the above line.