您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Changes HackForums to a dark, sleek theme! Style 5.
- // ==UserScript==
- // @name Hack Forums Matte Black Theme (Style 5)
- // @namespace +mK or OMGWTFISTHIS
- // @description Changes HackForums to a dark, sleek theme! Style 5.
- // @include *hackforums.net*
- // @exclude *x.hackforums.net*
- // @version 1.5
- // @require http://code.jquery.com/jquery-1.10.2.min.js
- // @run-at document-start
- // ==/UserScript==
- //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.
- //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.
- //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.
- function addGlobalStyle(css) {
- var head, style;
- head = document.getElementsByTagName('head')[0];
- if (!head) { return; }
- style = document.createElement('style');
- style.type = 'text/css';
- style.innerHTML = css;
- head.appendChild(style);
- }
- var styles = [];
- styles.push('body {background: #072948 url(http://i.imgur.com/W0igxmW.png) fixed !important; }');
- //If you want to change the background image to your own, simply change the image link in the above line.
- styles.push('.logo, div.largetext {display: none!important;}');
- //If you want the logo to be added back, simply remove the above line.