Greasy Fork 支持简体中文。

Hack Forums Matte Black Theme (Style 2)

Changes Hack Forums to a dark, sleek theme! Style 2.

  1. // ==UserScript==
  2. // @name Hack Forums Matte Black Theme (Style 2)
  3. // @namespace +mK or OMGWTFISTHIS
  4. // @description Changes Hack Forums to a dark, sleek theme! Style 2.
  5. // @include http://www.hackforums.net/*
  6. // @include http://hackforums.net/*
  7. // @version 1.5
  8. // @run-at document-start
  9. // ==/UserScript==
  10. //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.
  11.  
  12. //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.
  13.  
  14. //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.
  15.  
  16. function addGlobalStyle(css) {
  17. var head, style;
  18. head = document.getElementsByTagName('head')[0];
  19. if (!head) { return; }
  20. style = document.createElement('style');
  21. style.type = 'text/css';
  22. style.innerHTML = css;
  23. head.appendChild(style);
  24. }
  25.  
  26. var styles = [];
  27.  
  28. styles.push('body {background: #072948 url(http://i.imgur.com/D7s6Acp.png) fixed !important; }');
  29. //If you want to change the background image to your own, simply change the image link in the above line.
  30.  
  31. styles.push('.logo, div.largetext {display: none!important;}');
  32. //If you want the logo to be added back, simply remove the above line.
  33.  
  34.  
  35.  
  36.  
  37.