NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name NGU Halloween Theme // @namespace // @version 0.1 // @description // @author SonOfABeach // @match http://www.nextgenupdate.com/forums/ // @grant none // ==/UserScript== //Colours var Background = "#252525"; var MainColour = "#FF8040"; var MainColourDark = "#FF5C0A"; 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 Images = document.getElementsByTagName('img'); var i; for (i = 0; i < Images.length; i++) { if (Images[i].getAttribute("src") == "http://www.nextgenupdate.com/EE/images/ngu-postbit.png") Images[i].setAttribute("src", "http://i.imgur.com/HMJ0BWi.png"); } var style = document.createElement("STYLE"); style.innerHTML = "#shoutbox_window font[color='black'],#shoutbox_window font[color='#182735']{ color: " + MainColour + " !important; }"; document.body.appendChild(style); document.getElementsByTagName("body")[0].setAttribute("style", "background-color: " + Background); document.getElementById("shoutbox_notice_message") .setAttribute("style", "color: " + MainColour + ";"); document.getElementById("fhsidebar_popular_forums_ block").setAttribute("style", "margin-bottom: 20px; border: 2px solid " + MainColour + "; padding: 16px; font-family: 'Open Sans', sans-serif; padding-bottom: 2px;"); document.getElementById("fhsidebar_popular_forums_ block").children[0].setAttribute("style", "font-size: 16px;font-weight: 600; color: " + MainColour + ";"); document.getElementById("fhsidebar_popular_forums_ block").children[1].setAttribute("style", "font-size: 12px;font-weight: 400; color: " + MainColour + ";"); addGlobalStyle('.forumhome_forum_block_head { border-top: 4px solid ' + MainColour + ' !important; }'); addGlobalStyle('.forumhome_forum_block_title { color: ' + MainColour + ' !important; background-color: ' + Background + ' !important; }'); addGlobalStyle('.forumhome_forum_block { background-color:' + Background + ' !important; border:2px solid ' + MainColour + ' !important; }'); addGlobalStyle('.body_wrapper { background-color:' + Background + ' !important; }'); addGlobalStyle('#nguheader .container-fluid.shoutbox_head { background:' + MainColour + ' !important; }'); addGlobalStyle('#nguheader .divide-nav { background-color:' + MainColourDark + ' !important; }'); addGlobalStyle('#nguheader .navbar-static-top { background-color:' + MainColour + ' !important; }'); addGlobalStyle('#nguheader .form-control { background-color:' + Background + ' !important; border-color: ' + Background + ' !important; color: ' + MainColour + ' !important; }'); addGlobalStyle('.forumhome_left { background-color:' + Background + ' !important; }'); addGlobalStyle('#nguheader .btn-default { background-color:' + Background + ' !important; color: ' + MainColour + ' !important; border-color: ' + Background + ' !important; }'); addGlobalStyle('.highlight { background: ' + MainColour + ' none repeat-x !important; padding: 1px !important; border-radius: 5px !important; }'); addGlobalStyle('.notification-container { background-color:' + Background + ' !important; border-top: 4px solid ' + MainColour + ' !important; }'); addGlobalStyle('#nguheader .divide-nav>.container>.nav>li>a { color: ' + Background + ' !important; }'); addGlobalStyle('#nguheader .navbar-default .navbar-nav>li>a { color: ' + Background + ' !important; }'); addGlobalStyle('#nguheader .notification-icon .glyphicon { color: ' + Background + ' !important; }'); addGlobalStyle('#nguheader .notification-icon .notification-badge { color: ' + MainColour + ' !important; background-color: ' + Background + ' !important; }'); addGlobalStyle('.shoutbox_body { border: 2px solid ' + MainColour + ' !important; }'); addGlobalStyle('#nguheader .nav-tabs { border-bottom: 1px solid ' + MainColour + ' !important; }'); addGlobalStyle('#nguheader a { color: ' + MainColour + ' !important; }'); addGlobalStyle('.forumhome_forum_text { color: ' + MainColour + ' !important; }'); addGlobalStyle('.forumhome_forum_bit { border-bottom: 2px solid ' + MainColour + ' !important; }'); addGlobalStyle('#nguheader .label { background-color: ' + MainColour + ' !important; color: ' + Background + ' !important; }'); addGlobalStyle('#nguheader .alert-info { background-color: ' + Background + ' !important; border-color: ' + MainColour + ' !important; color: ' + MainColour + ' !important;}'); addGlobalStyle('#nguheader .dropdown-menu { background-color: ' + Background + ' !important; }'); addGlobalStyle('#nguheader .dropdown-menu>li>a { background-color: ' + Background + ' !important; }'); addGlobalStyle('#nguheader .dropdown-menu .divider { background-color: ' + MainColour + ' !important; }'); addGlobalStyle('.shoutbox_vbshout { color: ' + MainColour + ' !important; }'); addGlobalStyle('#forumhome_forumbit_subforums:hove r .forumhome_subforum_text { color: ' + MainColour + ' !important; }'); addGlobalStyle('#forumhome_forumbit_subforums:hove r .forumhome_subforum_indicator { background-color: ' + MainColour + ' !important; }'); addGlobalStyle('.jb_footer_col_header { background-color: ' + Background + ' !important; color: ' + MainColour + ' !important; }'); addGlobalStyle('.jb_footer_col_body { border: 2px solid ' + MainColour + ' !important; }'); addGlobalStyle('.jb_footer_col.scol { height: 480px !important; border-top: 4px solid ' + MainColour + ' !important; }'); addGlobalStyle('.jb_footer_hot_forum_box { color: ' + MainColour + ' !important; border-bottom: 2px solid ' + MainColour + ' !important; }'); addGlobalStyle('.jb_footer_stats_box { background-color: ' + MainColour + ' !important; color: ' + Background + ' !important; }'); addGlobalStyle('.jb_footer_col.lcol { height: 480px !important; border-top: 4px solid ' + MainColour + ' !important; }'); addGlobalStyle('.block2 a { color: ' + MainColour + ' !important; }'); addGlobalStyle('.jb_footer_staffuser_box { border-bottom: 2px solid ' + MainColour + ' !important; }'); addGlobalStyle('.jb_footer_staffuser_avatar { height: 25px !important; width: 25px !important; }'); addGlobalStyle('#jb_footer_staffonline a.username { font-size: 10pt !important; }'); addGlobalStyle('.shoutbox_window { color: ' + MainColour + ' !important; }'); addGlobalStyle('.time { color: ' + MainColour + ' !important; }');