JavaScript Disabled
You currently have JavaScript disabled. Several functions do not work. Please re-enable JavaScript to access full functionality of this website.
CROSSFIRE.NU THEMES
Here I have collected some user scripts I have made to enhance your browsing experience on the
Crossfire.nu website. These scripts have been designed to work best with
Greasemonkey extension on
Firefox browser, but they should also work on
Chrome ,
Opera and
Safari browsers. Install instructions on how to install these scripts are provided below for each browser:
Firefox
Install the Greasemonkey extension.
Click the Install button of the script you wish to install.
Chrome
Install the Tampermonkey extension.
Click the Install button of the script you wish to install.
Opera
Install the Violentmonkey extension.
Click the Install button of the script you wish to install.
Safari
Install the NinjaKit extension.
Click the Install button of the script you wish to install.
Script
Crossfire 4.0 Gray
Summary
Crossfire 4.0 Gray Theme
Version
1.1.2
Description
This script modifies the layout of the
Crossfire.nu 4.0 site. The current changes include:
page is 1200px wide instead of 1000px
changed the font
darker background
lots of tweaking in colors (mostly making it darker)
removed some annoyances (sidebar rotators and a few other things)
Screenshots
Options
Script
Crossfire 4.0 Dark
Summary
Crossfire 4.0 Dark Theme
Version
1.9.1
Description
This script modifies the layout of the
Crossfire.nu 4.0 site. The current changes include:
changed the font
darker background
minor tweaking in colors (mostly making it darker)
removed some annoyances (the rotators and a few other things)
added boxes to the comments (easier to follow the comment tree)
Screenshots
Options
Script
Crossfire 4.0 Blue
Summary
Crossfire 4.0 Blue Theme
Version
1.1.1
Description
This script modifies the layout of the
Crossfire.nu 4.0 site. The current changes include:
changed the font
blue background
tweaking in colors (changed from orange to blue)
removed some annoyances (the rotators and a few other things)
added boxes to the comments (easier to follow the comment tree)
Screenshots
Options
Script
Crossfire 4.0 to 3.2
Summary
Crossfire 4.0 to 3.2 Lookalike Theme
Version
1.3.1
Description
This script modifies the layout of the
Crossfire.nu 4.0 site. The current changes include:
plenty of tweaking in colors, fonts and layout
removed some annoyances (the rotators and a few other things)
added "Back to Top" -button
Screenshots
Options
Script
Crossfire 4.0 to 2.0
Summary
Crossfire 4.0 to 2.0 Lookalike Theme
Version
1.1.1
Description
This script modifies the layout of the
Crossfire.nu 4.0 site. The current changes include:
plenty of tweaking in colors, fonts and layout
removed some annoyances (the rotators and a few other things)
Screenshots
Options
// ==UserScript==
// @name Crossfire 4.0 Gray
// @namespace created by antman
// @description Crossfire 4.0 Gray Theme
// @include http://crossfire.nu/*
// @include http://www.crossfire.nu/*
// @include https://crossfire.nu/*
// @include https://www.crossfire.nu/*
// @icon https://antman.info/images/scripts/crossfire40.png
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js
// @updateURL https://antman.info/userscripts/crossfire40_gray.user.js
// @grant unsafeWindow
// @version 1.1.5
// ==/UserScript==
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head').item(0);
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
function addJQuery(callback) {
var script = document.createElement("script");
script.setAttribute("src", "//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js");
script.addEventListener('load', function() {
var script = document.createElement("script");
script.textContent = "window.jQ=jQuery.noConflict(true);(" + callback.toString() + ")();";
document.body.appendChild(script);
}, false);
document.body.appendChild(script);
}
function backtop() {
$("#back-top").hide();
$(function () {
$(window).scroll(function () {
if ($(this).scrollTop() > 100) { $('#back-top').fadeIn(); }
else { $('#back-top').fadeOut(); }
});
$('#back-top a').click(function () {
$('body,html').animate({ scrollTop: 0 }, 800);
return false;
});
});
}
// Common page
addGlobalStyle('@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; src: local("Roboto"), local("Roboto-Regular"), url("https://fonts.gstatic.com/s/roboto/v15/CWB0XYA8bzo0kSThX0UTuA.woff2") format("woff2"), url("https://fonts.gstatic.com/s/roboto/v15/2UX7WLTfW3W8TclTUvlFyQ.woff") format("woff"); }');
addGlobalStyle('* { word-wrap: break-word !important; font-family: Roboto, Verdana, Arial, Helvetica, sans-serif !important; box-shadow: none !important; text-shadow: none !important; }');
addGlobalStyle('body { background-color: #000000 !important; background-image: url("https://antman.info/images/scripts/bgr_body.jpg") !important; background-repeat: no-repeat !important; background-attachment: fixed; font-size: 70% !important; }');
addGlobalStyle('.commonPageWidth { width: 1200px !important; }');
// Hide stuff
addGlobalStyle('#headerAd, .contentItem .imageWrapper, #sidebarSwitcher, .sidebarSwitcherContainer, #sidebarVideosAndAlbums, .rtgx_smartbox, .tip, #sidebar .item .content table thead th, #backToTopButton, .tagsWrapper, .controlsWrapper .overlay, #forum-detail .tabsPanel, #online-guests-list, #flag-list .tabsPanel { display: none !important; }');
addGlobalStyle('#footer, #copyrightBox { background: transparent !important; }');
// Header
addGlobalStyle('#logoAndAd { width: 1200px; height: 150px !important; margin: 10px auto 0 auto; background: #000000 url("https://antman.info/images/scripts/bgr_header.jpg") !important; border: 1px solid #777777; }');
addGlobalStyle('#headerLogo { top: 20px !important; left: 20px; }');
addGlobalStyle('#onlineCounterBox { position: static !important; float: right !important; margin: 120px 10px 0 0 !important; }');
addGlobalStyle('#onlineCounterBox .counter { background: transparent !important; border: none !important; }');
addGlobalStyle('#mainMenuAndCp { width: 1200px; margin: 0 auto; border-left: 1px solid #777777; border-right: 1px solid #777777; border-bottom: 1px solid #777777; background-color: #323232; background-image: -webkit-linear-gradient(#3d3d3d 0,#050505 100%); background-image: -o-linear-gradient(#3d3d3d 0,#050505 100%); background-image: -moz-linear-gradient(#3d3d3d 0,#050505 100%); background-image: -ms-linear-gradient(#3d3d3d 0,#050505 100%); }');
addGlobalStyle('#mainMenu { width: 900px !important; background: transparent !important; }');
addGlobalStyle('#mainMenu .item { color: #ffffff; font-weight: bold; padding: 0 2em !important; }');
addGlobalStyle('#mainMenu .item.news { padding: 0 2em 0 4em !important; }');
addGlobalStyle('#mainMenu .item:hover, #mainMenu .item.active { color: #ff6600 !important; }');
addGlobalStyle('#mainMenuAndCp.fixed { border-left: 1px solid #777777; border-right: 1px solid #777777; border-bottom: 1px solid #777777; margin-left: -1px !important; }');
addGlobalStyle('#cp { width: 300px !important; background: transparent !important; }');
addGlobalStyle('#cp .item { border: 0 !important; }');
addGlobalStyle('#cp .item [class^="icon-"], #cp .item [class*=" icon-"] { color: #999999 !important; }');
addGlobalStyle('#cp a.item.profile, #cp span.label { text-transform: none !important; color: #ffffff !important; }');
addGlobalStyle('#cp a.item.profile:hover, #cp span.label:hover { text-transform: none !important; color: #ff6600 !important; }');
addGlobalStyle('#cp #notifications a, #cp #superglobal-notifications a { color: #ff6600 !important; text-decoration: none !important; }');
addGlobalStyle('#cp #notifications a:hover, #cp #superglobal-notifications a:hover { color: #ffffff !important; text-decoration: none !important; }');
addGlobalStyle('#cp #notifications .notification { background: transparent !important; }');
addGlobalStyle('#cp #quicklogin #identity-label label, #cp #quicklogin #credentials-label label { color: #000000 !important; background-color: #fff !important; }');
// Main Content
addGlobalStyle('#pageBody .commonPageWidth { width: 1202px !important; box-shadow: none !important; }');
addGlobalStyle('#contentBackground { background: none !important; left: 0 !important; width: 900px !important; margin-right: 10px !important; }');
addGlobalStyle('#contentWrapper { background: #none !important; width: 890px !important; margin-top: 10px !important; }');
addGlobalStyle('#mainPageContent { margin-right: 0 !important; }');
addGlobalStyle('.featuredNews { margin: 0 0 1.5em 0 !important; overflow: hidden !important; }');
addGlobalStyle('.featuredNews .item:first-child { margin: 0 !important; }');
addGlobalStyle('.featuredNews .item { width: 200px !important; border: 1px solid #777777; float: left; }');
addGlobalStyle('.featuredNews .item { clear: left; margin: 10px 10px 0 0 !important; }');
addGlobalStyle('.featuredNews .item:hover label { color: #ff6600; border-bottom: none !important; }');
addGlobalStyle('#rotator { background: #4a5155 !important; border: 1px solid #777777 !important; height: 360px !important; margin: -379px 0 0 210px !important; }');
addGlobalStyle('#rotator-items > .item { height: 320px !important; }');
addGlobalStyle('#rotator-items > .item .caption { padding: .5em 1em .5em 1em !important; }');
if ($(".contentItem")[0]) { } else { addGlobalStyle('#content { border: 1px solid #777777 !important; background: #4a5155; padding: 1px !important; }'); }
addGlobalStyle('.contentItem:first-child { margin: 0 !important; }');
addGlobalStyle('.contentItem { margin: 10px 0 0 0 !important; border: 1px solid #777777 !important; background: #4a5155; padding: 1px !important; }');
addGlobalStyle('.contentItem .imageWrapper+.body { float: none !important; width: 100% !important; }');
addGlobalStyle('.contentItem .highlight.icon-pushpin { color: #ff6600 !important; line-height: 18px !important; }');
addGlobalStyle('.contentItem .body h2 { background: #000000 url("https://antman.info/images/scripts/cfg-topic-top.png"); padding: 0 0 0 4px; font-size: 1.4em !important; line-height: 26px !important; }');
addGlobalStyle('.contentItem .body h2 a, #content h1, #content h1 a, #pm-detail h1 { color: #ffffff !important; }');
addGlobalStyle('.contentItem .body h2 a:hover, #content h1 a:hover { color: #ff6600 !important; }');
addGlobalStyle('.contentInfo { color: #999999 !important; background: #000000 url("https://antman.info/images/scripts/cfg-topic-bottom.png") !important; padding: 0 4px !important; line-height: 26px; border: 0 !important; }');
addGlobalStyle('.contentInfo a { color: #ffffff !important; text-decoration: none !important; }');
addGlobalStyle('.contentInfo a:hover { color: #ff6600 !important; }');
addGlobalStyle('.contentInfo .authorBy { font-style: normal !important; }');
addGlobalStyle('.contentItem .body .text { margin: 5px !important; color: #cccccc; }');
addGlobalStyle('.contentItem .body .text > .bb-container, #content .content > .bb-container { padding-right: 0 !important; text-align: justify; }');
addGlobalStyle('.contentItem .body .text a, #content .content a { color: #ffffff !important; text-decoration: underline !important; }');
addGlobalStyle('.contentItem .body .text a:hover, #content .content a:hover { color: #ff6600 !important; text-decoration: none !important; }');
addGlobalStyle('.readMore a { color: #ff6600 !important; font-weight: bold !important; }');
addGlobalStyle('.readMore a:before { padding-left: 5px; }');
addGlobalStyle('.readMore a:hover { color: #ffffff !important; border: none !important; }');
addGlobalStyle('#content, #content .bb-container { color: #cccccc !important; }');
addGlobalStyle('#content .content { margin: 1em 5px !important; padding: 0 !important; font-size: 1em !important; }');
addGlobalStyle('#content h1 { background: #000000 url("https://antman.info/images/scripts/cfg-topic-top.png"); padding: 0 0 0 4px; font-size: 1.4em !important; line-height: 26px; font-weight: bold !important; font-style: normal !important; margin: 0 !important; }');
addGlobalStyle('#content h2, #content h3 { border: none !important; color: #ffffff; }');
// Content controls
addGlobalStyle('.controlsWrapper { position: static !important; float: right; }');
addGlobalStyle('.controlsWrapper .panel { background: none !important; border: none !important; box-shadow: none !important; }');
addGlobalStyle('.adminControls a:hover, .adminControls button:hover { color: #ff6600 !important; }');
// Comments
addGlobalStyle('#content .commentsBlock { margin-top: 50px !important; color: #cccccc !important; }');
addGlobalStyle('#content .commentsBlock .fatPanel { background: #000000 url("https://antman.info/images/scripts/cfg-content.png") !important; border: 0 !important; line-height: 52px !important; max-height: 52px !important; margin: 0 !important; }');
addGlobalStyle('#content .commentsBlock .fatPanel .icon-pencil { color: #ff6600 !important; }');
addGlobalStyle('#content .commentsBlock .fatPanel .header.dark { color: #ffffff !important; text-transform: none !important; }');
addGlobalStyle('#content .commentsBlock .fatPanel.comments .commentsCount { color: #ff6600 !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .body { padding: 0 10px !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .flagWrapper img { padding-bottom: 5px !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .headerWrapper { border-bottom: 1px solid #777777 !important; height: 17px !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .header .subavatarWrapper { height: 17px !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .header .subavatarWrapper img.avatar, #content .commentsBlock .comment-box .header .subavatarWrapper img.avatar_comments { border: 1px solid #777777 !important; height: 17px !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .header .subavatarWrapper img.avatar.empty { background: #4a5155 url("https://antman.info/images/scripts/avatar.png") center !important }');
addGlobalStyle('#content .commentsBlock a { color: #ffffff !important; text-decoration: none !important; }');
addGlobalStyle('#content .commentsBlock a:hover { color: #ff6600 !important; text-decoration: none !important; }');
addGlobalStyle('#content .commentsBlock a.edit { color: #ff6600 !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .menu .trigger { color: #ffffff !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .menu .trigger:after{ border: none !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .menu .trigger:hover { color: #ff6600 !important; background: none !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .text { margin-top: 2px !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .text .userQuote { background-color: #4a5155 !important; border: 1px solid #777777 !important; }');
addGlobalStyle('#content .commentsBlock .comment-box.comment-single-unread .body { border: 1px dotted #000000 !important; background: #999999 !important; margin: auto 5px !important; padding: 5px !important; }');
addGlobalStyle('#content .commentsBlock .comment-box.comment-single-unread .body .text .bb-container { color: #000000 !important; }');
// Comment form
addGlobalStyle('#field-replyTo { border: none !important; }');
addGlobalStyle('#field-replyTo label { color: #cccccc !important; }');
addGlobalStyle('#field-body { background: #4a5155 !important; border: none !important; }');
addGlobalStyle('textarea { background: #f8f8f8; }');
addGlobalStyle('textarea:focus { border: 1px solid #f56600 !important; }');
// tabsPanel
addGlobalStyle('#news-list .tabsPanel, #article-list .tabsPanel, #tutorial-list .tabsPanel, #poll-list .tabsPanel, #video-list .tabsPanel { border: 1px solid #777777 !important; background: #4a5155; color: #999999; padding: 1px !important; }');
addGlobalStyle('#content .tabsPanel, #journal-list .tabsPanel { background: #4a5155; color: #999999; }');
addGlobalStyle('.tabsPanel:before { left: 0 !important; }');
addGlobalStyle('.tabsPanel:after { height: 0 !important; }');
addGlobalStyle('.tabsPanel { background: #4a5155 !important; }');
addGlobalStyle('.tabsPanel .tab { color: #999999 !important; }');
addGlobalStyle('.tabsPanel .tab.active, .tabsPanel .tab:hover { color: #000000 !important; background: #999999 !important; }');
// fatPanel
addGlobalStyle('.fatPanel > .item, .fatPanel > .item > .body { border: none !important; }');
addGlobalStyle('.fatPanel.forumListHeader:before, .fatPanel.rtl:before, #content .commentsBlock .fatPanel:before, #event-list .fatPanel { border: 0 !important; }');
addGlobalStyle('.fatPanel.forumListHeader, .fatPanel.rtl { background: #4a5155 !important; border-width: 1px !important; border-style: none none solid none !important; margin: 0 !important; }');
addGlobalStyle('.fatPanel.forumListHeader:last-child { border: none !important; }');
addGlobalStyle('.fatPanel.forumListHeader .header, .fatPanel.rtl .header { color: #ffffff !important; text-transform: none !important; font-size: 1.3em !important; }');
addGlobalStyle('.fatPanel.forumListHeader .header:hover, .fatPanel.rtl .header:hover { color: #ff6600 !important; }');
addGlobalStyle('.fatPanel.forumListHeader .body, .forumList tbody, .forumThreads tbody { color: #cccccc !important; }');
addGlobalStyle('.fatPanel.forumThreadsHeader { background: #4a5155 !important; border: none !important; margin: 0 0 5px 0 !important; }');
// Journals list
addGlobalStyle('table.list thead { background-color: #4a5155 !important; }');
addGlobalStyle('table.list thead tr th, .fatPanel .item.th { color: #ffffff !important; }');
addGlobalStyle('table.list thead tr th, table.list tbody tr td { border: none !important; }');
addGlobalStyle('table.list tbody tr td a { color: #ffffff !important; text-decoration: none !important; }');
addGlobalStyle('table.list tbody tr td a:hover { color: #ff6600 !important; text-decoration: none !important; }');
addGlobalStyle('table.list tbody tr:first-child td, table.list+table.list tbody tr:first-child td { border: none !important; }');
addGlobalStyle('table.list tbody tr, table.list tbody tr:nth-child(2n) { background: #4a5155 !important; }');
addGlobalStyle('table.list tbody td.date { color: #cccccc !important; }');
// Articles
addGlobalStyle('.articleBody .articleSummary { border: none !important; margin: 0 !important; }');
addGlobalStyle('.articleSummary h2 a, .articleSummary ol a { color: #ffffff !important; }');
addGlobalStyle('.articleSummary ol, .articleSummary h2 a:hover, .articleSummary ol a:hover { color: #ff6600 !important; text-decoration: none !important; }');
// Forums
addGlobalStyle('#forum-list table.forumList.list { margin-top: 2px; padding-left: 20px; border-bottom: 1px solid #777777 !important; }');
addGlobalStyle('#forum-detail h3 { padding: 10px 0 0 10px !important; }');
addGlobalStyle('#forum-detail .fatPanel.forumListHeader { background: #4a5155 !important; border: none !important; margin: 10px 0 0 0 !important; }');
addGlobalStyle('#forum-detail table.forumList.list { margin-top: 1px; }');
// Events
addGlobalStyle('#calendar-month { border: none !important; }');
addGlobalStyle('#calendar-month thead th { border-bottom: 1px solid #777777 !important; }');
addGlobalStyle('#calendar-month thead th span, #calendar-week thead th span, #calendar-week tbody tr td.date { color: #ffffff !important; }');
addGlobalStyle('#calendar-month tbody tr td { background-color: #4a5155 !important; border-right: 1px solid #777777 !important; }');
addGlobalStyle('#calendar-month tbody tr td:first-child { border-left: 1px solid #777777 !important; }');
addGlobalStyle('#calendar-month tbody tr:nth-child(5n) td, #calendar-week thead tr th, #calendar-week tbody tr td.date, #calendar-week tbody tr.bottom td { border-bottom: 1px solid #777777 !important; }');
addGlobalStyle('#calendar-week tbody tr td.date.today { color: #000000 !important; }');
addGlobalStyle('#calendar-week tbody tr td.alt { background-color: #4a5155 !important; }');
addGlobalStyle('#calendar-month tbody tr td.occupied a, #calendar-week tbody tr td.occupied a { margin: 2px !important; }');
// Polls
addGlobalStyle('.progressBar .line { background: #ff6600 !important; }');
addGlobalStyle('.progressTable .cellValues .percentage { color: #ff6600 !important; }');
addGlobalStyle('.progressTable .votesCount { color: #cccccc !important; font-size: .9em !important; }');
// Albums
addGlobalStyle('.tabsPanel > .opposite { padding-right: 0 !important }');
addGlobalStyle('.videoList > .item { width: 433px !important; margin: 5px !important; }');
addGlobalStyle('.videoList > .item .footer > .item.info .authorBy { font-size: 1.2em !important; font-style: normal !important; }');
addGlobalStyle('.videoList > .item .footer > .item.info .author a { font-size: 1.2em !important; color: #ff6600 !important; text-transform: none !important; }');
addGlobalStyle('.videoList > .item .footer > .item.info .author a:hover { color: #000000 !important; }');
addGlobalStyle('.videoList.thumbnails > .item { width: 211px !important; margin: 5px !important; }');
addGlobalStyle('#album-detail h3 { padding: 10px 0 0 10px !important; }');
addGlobalStyle('.contentBox { margin: -2px 0 0 -2px; border: 1px solid #777777 !important; color: #cccccc; background: #4a5155; padding: 1px !important; width: 100% !important; }');
addGlobalStyle('.contentBox div { width: 100% !important; }');
// Videos
addGlobalStyle('.bb-container iframe { width: 100% !important; }');
addGlobalStyle('.media-player { background: #4a5155 !important; padding: 1em 1em 5em 1em !important; }');
addGlobalStyle('#video-detail .overview-container > .body h1, #video-detail .overview-container > .body .contentInfo { width: 885px !important; }');
addGlobalStyle('#video-detail .overview-container > .sidebar { top: 53px !important; }');
addGlobalStyle('#video-detail .overview-container > .sidebar:before { background: #4a5155 !important; box-shadow: none !important; }');
// Online users
addGlobalStyle('#online-users-list .username a { color: #ffffff !important; text-decoration: none !important; }');
addGlobalStyle('#online-users-list .username a:hover { color: #ff6600 !important; text-decoration: none !important; }');
addGlobalStyle('#online-users-list tbody { color: #cccccc !important; }');
// Profiles
addGlobalStyle('#profile-container, #profile-container .content { color: #cccccc !important; }');
addGlobalStyle('#profile-container .tabsPanel, #flag-detail .tabsPanel, #group-list .tabsPanel, #user-account .tabsPanel { background: #4a5155 !important; padding: 0 0 1px 0 !important; }');
addGlobalStyle('#profile-information .information { padding: 10px 0 0 15px; }');
addGlobalStyle('#profile-information .information a, #profile-activity .information a, .items ol li a, .items .info a, .columnSecondary .body .section ul li a, .flagsList h2 a, #group-list-items .title, .guidelines a { color: #ffffff !important; text-decoration: underline !important; }');
addGlobalStyle('#profile-information .information a:hover, .items ol li a:hover, .items .info a:hover, .columnSecondary .body .section ul li a:hover, .flagsList h2 a:hover, #group-list-items .title:hover, .guidelines a:hover { color: #ff6600 !important; text-decoration: none !important; }');
addGlobalStyle('#profile-information .flags a, #profile-information .groups a { color: #ffffff !important; text-decoration: none !important; }');
addGlobalStyle('#flag-list h1 { background: #000000 url("https://antman.info/images/scripts/cfg-content.png") !important; border: 0 !important; line-height: 44px !important; max-height: 52px !important; margin: 0 !important; padding: 0 0 0 4px; }');
addGlobalStyle('#flag-list .icon-flag { color: #ffffff !important; }');
addGlobalStyle('#profile-container .columnSecondary { background: #4a5155 !important; }');
addGlobalStyle('.contentColumns .columnSecondary > .body > .section { border: none !important; }');
addGlobalStyle('.contentColumns .columnSecondary > .body > .section.friends a.user, .contentColumns .columnSecondary > .body > .section.fan-of a.user { font-size: 1em !important; text-decoration: none !important; }');
addGlobalStyle('.username a.user, .journals.section h3 a { color: #ffffff !important; }');
addGlobalStyle('.username a.user:hover, .journals.section h3 a:hover { color: #ff6600 !important; }');
addGlobalStyle('.section.friends .header, .section.fan-of .header, .section.description .header, .section.members .header { color: #ffffff !important; }');
addGlobalStyle('.section.friends .header .altColor, .section.fan-of .header .altColor { color: #ff6600 !important; }');
addGlobalStyle('.icon-minus-sign { color: #999999 !important; text-decoration: none !important; }');
addGlobalStyle('.journals.section h3, .flagsList .uflag { padding: 0 0 0 10px !important; }');
addGlobalStyle('.flash.info a.user { text-decoration: none !important; }');
addGlobalStyle('.flagsList .content, .hint, label.main { color: #cccccc !important; }');
addGlobalStyle('.element-container, .element-container .element, .navBehaviour, .password, .email, .type_1, .type_2, .type_3, .type_4, .type_5, .type_6, .type_7, .type_8, .type_9, .notification, .duration, .addTags, .required, .headline, .field.image, .custom, .editform, .recs, .send { background: #4a5155 !important; color: #cccccc !important; }');
addGlobalStyle('#pm-create h3 { padding: 10px 0 0 10px !important; }');
addGlobalStyle('#pm-create h3 a { color: #ffffff !important; }');
addGlobalStyle('#pm-create h3 a:hover { color: #ff6600 !important; }');
addGlobalStyle('.button.light { color: #000000 !important; }');
// Groups
addGlobalStyle('#group-list-items .item-box { padding: 0 0 10px 10px !important; }');
addGlobalStyle('#group-detail .columnSecondary { background: #4a5155 !important; }');
addGlobalStyle('.groupName a { color: #ffffff !important; }');
addGlobalStyle('.groupName a:hover { color: #ff6600 !important; }');
addGlobalStyle('.contentColumns .columnSecondary > .body > .section.members a.user { font-size: 1em !important; text-decoration: none !important; }');
// Drafts
addGlobalStyle('.content-header-left h2 { background: #000000 url("https://antman.info/images/scripts/cfg-content.png") !important; border: 0 !important; line-height: 52px !important; max-height: 52px !important; margin: 0 !important; padding: 0 0 0 4px; }');
addGlobalStyle('.content-header-left h2 a { color: #ffffff !important; text-decoration: none !important; }');
addGlobalStyle('.content-header-left h2 a:hover { color: #ff6600 !important; text-decoration: none !important; }');
addGlobalStyle('#drafts .content-body, #draft-create { margin: 5px; text-align: justify; color: #cccccc; }');
addGlobalStyle('.drafts .create a { color: #ffffff !important; text-decoration: underline !important; }');
addGlobalStyle('.drafts .create a:hover { color: #ff6600 !important; text-decoration: none !important; }');
// Search and Error pages
addGlobalStyle('#searchWrapper, .errorContainer { margin: -2px 0 0 -2px; border: 1px solid #777777 !important; background: #4a5155; padding: 1px !important; width: 100% !important; }');
addGlobalStyle('#searchWrapper tbody { color: #cccccc !important; }');
addGlobalStyle('#advancedSearchForm label { color: #cccccc !important; }');
addGlobalStyle('#content .form-body .field, #content .form-body dt, #content .form-body dd { border: none !important; }');
// Terms of Service
addGlobalStyle('#tos h2 { background: #000000 url("https://antman.info/images/scripts/cfg-content.png") !important; border: 0 !important; line-height: 52px !important; max-height: 52px !important; margin: 0 !important; padding: 0 0 0 4px; }');
addGlobalStyle('#tos h2 a { color: #ffffff !important; text-decoration: none !important; }');
addGlobalStyle('#tos h2 a:hover { color: #ff6600 !important; text-decoration: none !important; }');
addGlobalStyle('#tos .content-body { margin: 5px; text-align: justify; color: #cccccc; }');
// Sidebar
addGlobalStyle('#sidebarBackground { background: none !important; left: 0 !important; border: 0 !important; }');
addGlobalStyle('#sidebarWrapper { margin: 10px 0 0 0; background: #4a5155 !important; width: 300px !important; border: 1px solid #777777; }');
addGlobalStyle('#sidebar { padding: 0 !important; }');
addGlobalStyle('#searchBox { padding: 10px !important; }');
addGlobalStyle('#searchBox input[type=text] { background: #f8f8f8; border: 1px solid #000000 !important; }');
addGlobalStyle('#searchBox input:focus { border: 1px solid #ff6600 !important; }');
addGlobalStyle('#sidebar .item .header { font-size: .9em !important; line-height: 3em !important; margin-left: 0 !important; margin-right: 0 !important; border-top: 1px solid #777777; border-bottom: 1px solid #777777; background-color: #323232; background-image: -webkit-linear-gradient(#3d3d3d 0,#050505 100%); background-image: -o-linear-gradient(#3d3d3d 0,#050505 100%); background-image: -moz-linear-gradient(#3d3d3d 0,#050505 100%); background-image: -ms-linear-gradient(#3d3d3d 0,#050505 100%); }');
addGlobalStyle('#sidebar .item .header a:hover { color: #ff6600 !important; }');
addGlobalStyle('#sidebar .item .header .addContent { margin-right: 12px !important; }');
addGlobalStyle('#sidebar .item .content tbody tr td, #sidebar .item .content tbody tr:nth-child(2n+1) td { border: 0 !important; }');
addGlobalStyle('#sidebar .item .content tbody tr:nth-child(2n) { background: transparent !important; }');
addGlobalStyle('#sidebar a { color: #ffffff !important; }');
addGlobalStyle('#sidebar a:hover { color: #ff6600 !important; text-decoration: none !important; }');
addGlobalStyle('#sidebar a.button { color: #ffffff !important; }');
addGlobalStyle('#sidebar a.button:hover { color: #ffffff !important; text-decoration: none !important; }');
addGlobalStyle('#sidebar a.button.light { color: #000000 !important; }');
addGlobalStyle('#sidebar a.button.light:hover { color: #000000 !important; text-decoration: none !important; }');
addGlobalStyle('#sidebar .comments { color: #cccccc !important; }');
addGlobalStyle('.contentContribute > .button { margin: 0 0 10px 17px !important; }');
addGlobalStyle('.contentContribute > .button.dark { float: none !important; height: 19px !important; line-height: 20px !important; }');
addGlobalStyle('.highlight { color: #ff6600 !important; text-decoration: none !important; border: none !important; }');
addGlobalStyle('.highlight.icon-pushpin { color: #ff6600 !important; text-decoration: none !important; border: none !important; }');
// Footer
addGlobalStyle('#footer { border-top: none !important; }');
addGlobalStyle('#footerMenu .item { color: #999999 !important; text-shadow: none !important; border-bottom: 0 !important; }');
addGlobalStyle('#footerMenu .item:hover, #footerMenu .item:focus { color: #ff6600 !important; background: none !important; }');
addGlobalStyle('#copyrightBox { font-size: 1em !important; color: #4a5155 !important; text-transform: none !important; font-weight: bold; }');
// Script notice
addGlobalStyle('.notice { margin: 0 auto 5px auto; width: 1200px; padding-left: 20px; font-size: 1em; font-weight: bold; color: #4a5155; }');
addGlobalStyle('.notice a { color: #999999; text-decoration: none; }');
addGlobalStyle('.notice a:hover { color: #ff6600; text-decoration: none; }');
var scriptby = document.createElement("div");
scriptby.innerHTML = 'Crossfire 4.0 Gray Theme by
antman ';
document.body.insertBefore(scriptby, document.body.lastChild);
// Back to Top button
addGlobalStyle('#back-top { position: fixed; bottom: 10px; right: 10px; }');
addGlobalStyle('#back-top a { width: 30px; display: block; -webkit-transition: 1s; -moz-transition: 1s; -ms-transition: 1s; -o-transition: 1s; transition: 1s; }');
addGlobalStyle('#back-top span { width: 30px; height: 30px; display: block; background: #000000 url("https://antman.info/images/scripts/arrow-up.png") no-repeat center center; -webkit-border-radius: 8px; -moz-border-radius: 8px; -ms-border-radius: 8px; -o-border-radius: 8px; border-radius: 8px; -webkit-transition: 1s; -moz-transition: 1s; -ms-transition: 1s; -o-transition: 1s; transition: 1s; }');
addGlobalStyle('#back-top a:hover span { background-color: #ffffff; }');
var backtotop = document.createElement("p");
backtotop.innerHTML = '
';
document.body.insertBefore(backtotop, document.body.lastChild);
addJQuery(backtop);
// ==UserScript==
// @name Crossfire 4.0 Dark
// @namespace created by antman
// @description Crossfire 4.0 Dark Theme
// @include http://crossfire.nu/*
// @include http://www.crossfire.nu/*
// @include https://crossfire.nu/*
// @include https://www.crossfire.nu/*
// @icon https://antman.info/images/scripts/crossfire40.png
// @updateURL https://antman.info/userscripts/crossfire40.user.js
// @grant unsafeWindow
// @version 1.9.3
// ==/UserScript==
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head').item(0);
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
// backgrounds
addGlobalStyle('html, body, #pageBody { background: #363636 url("https://antman.info/images/scripts/bgr_waves_light.jpg") repeat-x 0 0 !important; }');
addGlobalStyle('#header, #logoAndAd { background: #1f1f1f !important; }');
addGlobalStyle('#sidebar { background: #eee !important; }');
addGlobalStyle('#sidebarWrapper { background: #cccccc !important; }');
addGlobalStyle('#sidebarBackground, .controlsWrapper .overlay { visibility: hidden !important; }');
addGlobalStyle('#sidebar .item .header > .tab.active { background: #c4c7c9 !important; }');
addGlobalStyle('#footer, #copyrightBox { background: #363636 !important; }');
addGlobalStyle('.contentItem .imageWrapper { background: none !important; }');
addGlobalStyle('.tabsPanel:before { background: transparent !important; }');
// borders, margins and paddings
addGlobalStyle('#logoAndAd, #mainMenuAndCp { border-bottom: none !important; }');
addGlobalStyle('#logoAndAd, #footer { border-top: none !important; }');
addGlobalStyle('#mainPageContent { margin-right: 0 !important; }');
addGlobalStyle('#content { margin-right: 1em; }');
addGlobalStyle('#sidebar .item .content tbody tr td { padding: 0 0 0 1em !important; }');
addGlobalStyle('#content .commentsBlock .comment-create, #content .commentsBlock .note-create, .fatPanel { border-style: solid solid solid solid !important; }');
addGlobalStyle('#content .commentsBlock form.reply.inline-reply .close-inline-reply-form { margin-top: -8px !important; }');
addGlobalStyle('#profile-wall, #profile-activity, #profile-albums { margin-right: 1em !important; }');
addGlobalStyle('.tabsPanel > .opposite { padding: 4px 10px 0 0 !important; height: 18px; }');
addGlobalStyle('.icon-pencil { float: right; margin-right: 15px !important; }');
// positioning
addGlobalStyle('#headerLogo { top: 33px !important; }');
addGlobalStyle('#onlineCounterBox { top: 72px !important; }');
addGlobalStyle('#contentWrapper { max-width: 680px !important; }');
// fonts and colors
addGlobalStyle('body { font-size: 69% !important; }');
addGlobalStyle('body, h1, h2, h3, p, select, input, textarea, pre { font-family: Verdana, Helvetica, Arial, sans-serif !important; }');
addGlobalStyle('#sidebar .item .content tbody .comments { font-family: Verdana, Helvetica, Arial, sans-serif !important; font-size: .75em !important; font-weight: bold !important; }');
addGlobalStyle('#mainMenu, #cp { font-size: 12px !important; }');
addGlobalStyle('#sidebar .title a { font-size: 0.9em !important; }');
addGlobalStyle('#footerMenu .item, #copyrightBox > span { text-shadow: none !important; color: #fff !important; }');
addGlobalStyle('#footerMenu .item:hover, #footerMenu .item:focus { color: #ef7812 !important; background: #363636 !important; }');
addGlobalStyle('a, #content .content a, #content .commentsBlock .comment-box .header .author { color: #ff5a00; text-decoration: none !important; }');
addGlobalStyle('a:hover, #content .content a:hover, #content .commentsBlock .comment-box .header .author:hover { color: #000000; }');
addGlobalStyle('.title a:hover, .author a:hover, .type a:hover, .time a:hover { color: #ff5a00 !important; }');
addGlobalStyle('.author, .comments, .counter { font-size: 10px !important; }');
addGlobalStyle('.bb-container { text-align: justify; margin-right: 5px; }');
addGlobalStyle('.button.dark { float: none !important; height: 19px !important; line-height: 20px !important; }');
addGlobalStyle('button.reply, button.delete { cursor: pointer; line-height: 3em; margin: 0; padding: 0 1.5em; background-color: #ff8b2d; border-radius: .5em; font-size: 0.9em; font-weight: bold; text-decoration: none; text-transform: uppercase; text-shadow: #ff7700 0 -1px 0; color: #ffffff; border-style: none; background-image: -webkit-linear-gradient(top, #FF9F5A, #FF7700); background-image: -moz-linear-gradient(top, #FF9F5A, #FF7700); background-image: -o-linear-gradient(top, #FF9F5A, #FF7700); background-image: -ms-linear-gradient(top, #FF9F5A, #FF7700); vertical-align: middle; }');
addGlobalStyle('button.reply:hover, button.delete:hover { color: #000000 !important; }');
addGlobalStyle('.tagsWrapper .tag { font-size: 0.8em !important; padding: .25em .5em .25em .5em !important; }');
addGlobalStyle('#content .content .bb-container { font-size: 11px !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .header .author { font-size: 11px !important; }');
addGlobalStyle('.contentInfo, #cp .item { text-transform: none !important; }');
addGlobalStyle('.contentInfo { font-size: 0.9em !important; }');
addGlobalStyle('.contentInfo .authorBy { font-size: 1em !important; }');
// comment boxes
addGlobalStyle('.comment-create { border: 1px #ccc !important; }');
addGlobalStyle('.comment-box { border: 1px solid #ccc; background: #f7f5f5; padding: 4px 0 4px 4px; }');
addGlobalStyle('.comment-box.comment-single-unread { border: 1px solid #ff5a00 !important; background: #ffb993 !important; padding: 4px 0 4px 4px; }');
addGlobalStyle('#content .commentsBlock .comment-box .headerWrapper { height: 17px !important; }');
addGlobalStyle('#content .commentsBlock .comment-box.comment-single-unread .body { border-left: 0 !important; }');
addGlobalStyle('#content .commentsBlock .comment-box { margin: .5em 0 .5em 0 !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .header { border-top: 0 !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .text .userQuote { background-color: #f0f9ff !important; border: 1px solid #82cffa !important; }');
addGlobalStyle('img.avatar, img.avatar.empty, img.avatar_comments { background: none !important; border: none !important; width: 43px !important; height: 17px !important; overflow: hidden !important; }');
// miscellaneous fixes
addGlobalStyle('* { word-wrap: break-word !important; }');
addGlobalStyle('.social, .tip, #sidebar .item .content table thead th { display: none !important; }');
addGlobalStyle('#sidebarSwitcher, .sidebarSwitcherContainer, #sidebarVideosAndAlbums { display: none !important; }');
addGlobalStyle('.columnSecondary { background: transparent !important; border-top: 26px solid #f4f3f3; }');
// Script notice
addGlobalStyle('.notice { margin: 0 auto 5px auto; width: 1000px; padding-left: 20px; font-size: 1em; font-weight: bold; color: #c0c0c0; }');
addGlobalStyle('.notice a { color: #ff5a00 !important; text-decoration: none; }');
addGlobalStyle('.notice a:hover { color: #000000 !important; text-decoration: none; }');
var scriptby = document.createElement("div");
scriptby.innerHTML = 'Crossfire Dark Theme by
antman ';
document.body.insertBefore(scriptby, document.body.lastChild);
// ==UserScript==
// @name Crossfire 4.0 Blue
// @namespace created by antman
// @description Crossfire 4.0 Blue Theme
// @include http://crossfire.nu/*
// @include http://www.crossfire.nu/*
// @include https://crossfire.nu/*
// @include https://www.crossfire.nu/*
// @icon https://antman.info/images/scripts/crossfire40.png
// @updateURL https://antman.info/userscripts/crossfire40_blue.user.js
// @grant unsafeWindow
// @version 1.1.3
// ==/UserScript==
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head').item(0);
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
// backgrounds
addGlobalStyle('html { background: #2c4166; background-image: -webkit-gradient(linear, left top, left bottom, from(#2c4166), to(#3c5a99)); background: -webkit-linear-gradient(top, #2c4166, #3c5a99); background: -moz-linear-gradient(top, #2c4166, #3c5a99); background: -o-linear-gradient(top, #2c4166, #3c5a99); background: -ms-linear-gradient(top, #2c4166, #3c5a99); background: linear-gradient(#2c4166, #3c5a99); }');
addGlobalStyle('body { background: transparent !important; }');
addGlobalStyle('.commonPageWidth { box-shadow: none !important; }');
addGlobalStyle('#header, #logoAndAd { background: #000000 !important; }');
addGlobalStyle('#contentBackground, #contentWrapper, #sidebar, #cp.floatfix { background: #eeeeee !important; }');
addGlobalStyle('#sidebarWrapper { background: #cccccc !important; }');
addGlobalStyle('#sidebarBackground, .controlsWrapper .overlay { visibility: hidden !important; }');
addGlobalStyle('#sidebar .item .header > .tab.active { background: #c4c7c9 !important; }');
addGlobalStyle('#footer, #copyrightBox { background: #3c5a99 !important; }');
addGlobalStyle('.contentItem .imageWrapper { background: none !important; }');
addGlobalStyle('.tabsPanel:before { background: transparent !important; }');
addGlobalStyle('.header.floatfix { background: url("https://antman.info/images/scripts/cf4bar.png") !important; }');
// borders, margins and paddings
addGlobalStyle('#logoAndAd, #mainMenuAndCp { border-bottom: none !important; }');
addGlobalStyle('#logoAndAd, #footer { border-top: none !important; }');
addGlobalStyle('#mainPageContent { margin-right: 0 !important; }');
addGlobalStyle('#content { margin-right: 1em; }');
addGlobalStyle('#sidebar .item .content tbody tr td { padding: 0 0 0 1em !important; }');
addGlobalStyle('.addContent { margin-right: 16px !important; }');
addGlobalStyle('#content .commentsBlock .comment-create, #content .commentsBlock .note-create, .fatPanel { border-style: solid solid solid solid !important; }');
addGlobalStyle('#content .commentsBlock form.reply.inline-reply .close-inline-reply-form { margin-top: -8px !important; }');
addGlobalStyle('#profile-wall, #profile-activity, #profile-albums { margin-right: 1em !important; }');
addGlobalStyle('.tabsPanel > .opposite { padding: 4px 10px 0 0 !important; height: 18px; }');
addGlobalStyle('.icon-pencil { float: right; margin-right: 2px 0 2px -2px !important; }');
// positioning
addGlobalStyle('#headerLogo { top: 25px !important; }');
addGlobalStyle('#onlineCounterBox { top: 65px !important; }');
addGlobalStyle('#contentWrapper { max-width: 680px !important; }');
// fonts and colors
addGlobalStyle('body { font-size: 69% !important; }');
addGlobalStyle('body, h1, h2, h3, p, select, input, textarea, pre { font-family: Verdana, Helvetica, Arial, sans-serif !important; }');
addGlobalStyle('#sidebar .item .content tbody .comments { font-family: Verdana, Helvetica, Arial, sans-serif !important; font-size: .75em !important; font-weight: bold !important; }');
addGlobalStyle('.addContent:hover { color: #ffffff !important; }');
addGlobalStyle('.header.floatfix a, #mainMenuAndCp a, .button a { color: #cccccc !important; }');
addGlobalStyle('.header.floatfix a:hover, #mainMenuAndCp a:hover, span.number { color: #ffffff !important; }');
addGlobalStyle('a, .highlight, #cp .item [class^="icon-"],#cp .item [class*=" icon-"], #cp.floatfix span, .readMore > a { color: #004490 !important; text-decoration: none !important; border: none !important; }');
addGlobalStyle('a:hover, .readMore > a, .articleSummary ol, span.header { color: #0066dd !important; }');
addGlobalStyle('a, #content .content a, #content .commentsBlock .comment-box .header .author, .commentsCount, .altColor, th { color: #004490 !important; text-decoration: none !important; }');
addGlobalStyle('a:hover, #content .content a:hover, #content .commentsBlock .comment-box .header .author:hover { color: #000000; }');
addGlobalStyle('#mainMenu, #cp { font-size: 12px !important; }');
addGlobalStyle('#sidebar .title a { font-size: 0.9em !important; }');
addGlobalStyle('.author, .comments, .counter { font-size: 10px !important; }');
addGlobalStyle('.bb-container { text-align: justify; margin-right: 5px; }');
addGlobalStyle('a.button { color: #ffffff !important; font-weight: bold !important; text-decoration: none !important; font-size: 0.9em !important; text-shadow: none !important; }');
addGlobalStyle('.contentContribute > .button.dark { float: none !important; height: 19px !important; line-height: 20px !important; }');
addGlobalStyle('.button, input[type=button], input[type=submit], input[type=reset], input#commentCreate, input[type=button].light, input[type=submit].light, input[type=reset].light, .button.light, input[type=button].dark, input[type=submit].dark, input[type=reset].dark, .button.dark, input[type=button]:hover, input[type=submit]:hover, input[type=reset]:hover, .button:hover, .tagsWrapper .tag { color: #ffffff !important; background-color: #004490 !important; border-radius: .5em !important; border-style: none !important; background-image: -webkit-linear-gradient(top, #004490, #0066dd) !important; background-image: -moz-linear-gradient(top, #004490, #0066dd) !important; background-image: -o-linear-gradient(top, #004490, #0066dd) !important; background-image: -ms-linear-gradient(top, #004490, #0066dd) !important; vertical-align: middle !important; text-shadow: none !important; }');
addGlobalStyle('.button:hover, input#commentCreate:hover, .element input:hover, .button.current.page, input[type=button]:hover.light, input[type=submit]:hover.light, input[type=reset]:hover.light, .button.light:hover, input[type=button]:hover.dark, input[type=submit]:hover.dark, input[type=reset]:hover.dark, .button.dark:hover, input[type=button].disabled, input[type=submit].disabled, input[type=reset].disabled, input[type=button][disabled=disabled], input[type=submit][disabled=disabled], input[type=reset][disabled=disabled], .button.disabled { background-color: #3e3c3f !important; background-image: -webkit-linear-gradient(top,#676668,#171117) !important; background-image:-moz-linear-gradient(top,#676668,#171117) !important; background-image:-o-linear-gradient(top,#676668,#171117) !important; background-image:-ms-linear-gradient(top,#676668,#171117) !important; }');
addGlobalStyle('.tagsWrapper .tag { color: #ffffff !important; font-size: 0.8em !important; padding: .25em .5em .25em .5em !important; }');
addGlobalStyle('#content .content .bb-container { font-size: 11px !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .header .author { font-size: 11px !important; }');
addGlobalStyle('.contentInfo, #cp .item { text-transform: none !important; }');
addGlobalStyle('.contentInfo { font-size: 0.9em !important; }');
addGlobalStyle('.contentInfo .authorBy { font-size: 1em !important; }');
addGlobalStyle('.featuredNews .item:hover label { border-bottom: 3px solid #0066dd !important; }');
addGlobalStyle('#footerMenu .item, #copyrightBox > span, .button.current.page { text-shadow: none !important; color: #ffffff !important; }');
addGlobalStyle('#footerMenu .item:hover, #footerMenu .item:focus { color: #ffffff !important; background: none !important; border-color: #004490 !important; }');
addGlobalStyle('.articleBody .articleSummary { border-top:4px solid #0066dd !important; }');
addGlobalStyle('textarea:focus { border: 1px solid #0066dd !important; box-shadow: none !important; }');
// comment boxes
addGlobalStyle('.comment-create { border: 1px #cccccc !important; }');
addGlobalStyle('.comment-box { border: 1px solid #cccccc; background: #ffffff; padding: 4px 0 4px 4px; }');
addGlobalStyle('.comment-box.comment-single-unread { border: 1px solid #0052ac !important; background: #7bbaff !important; padding: 4px 0 4px 4px; }');
addGlobalStyle('#content .commentsBlock .comment-box .headerWrapper { height: 17px !important; }');
addGlobalStyle('#content .commentsBlock .comment-box.comment-single-unread .body { border-left: 0 !important; }');
addGlobalStyle('#content .commentsBlock .comment-box { margin: .5em 0 .5em 0 !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .header { border-top: 0 !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .text .userQuote, .userQuote { background-color: #a7d0fd !important; border: 1px solid #0066dd !important; }');
addGlobalStyle('img.avatar, img.avatar.empty, img.avatar_comments { background: none !important; border: none !important; width: 43px !important; height: 17px !important; overflow: hidden !important; }');
// miscellaneous fixes
addGlobalStyle('* { word-wrap: break-word !important; }');
addGlobalStyle('.social, .tip, #sidebar .item .content table thead th { display: none !important; }');
addGlobalStyle('#sidebarSwitcher, .sidebarSwitcherContainer, #sidebarVideosAndAlbums { display: none !important; }');
addGlobalStyle('.columnSecondary { background: transparent !important; border-top: 26px solid #f4f3f3; }');
// Script notice
addGlobalStyle('.notice { margin: 0 auto 5px auto; width: 1000px; padding-left: 20px; font-size: 1em; font-weight: bold; color: #c0c0c0; }');
addGlobalStyle('.notice a { color: #ffffff !important; text-decoration: none; }');
addGlobalStyle('.notice a:hover { color: #000000 !important; text-decoration: none; }');
var scriptby = document.createElement("div");
scriptby.innerHTML = 'Crossfire Blue Theme by
antman ';
document.body.insertBefore(scriptby, document.body.lastChild);
// ==UserScript==
// @name Crossfire 4.0 to 3.2
// @namespace created by antman
// @description Crossfire 4.0 to 3.2 Lookalike Theme
// @include http://crossfire.nu/*
// @include http://www.crossfire.nu/*
// @include https://crossfire.nu/*
// @include https://www.crossfire.nu/*
// @icon https://antman.info/images/scripts/cf32icon.png
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js
// @updateURL https://antman.info/userscripts/crossfire40_32.user.js
// @grant unsafeWindow
// @version 1.3.3
// ==/UserScript==
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head').item(0);
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
function addJQuery(callback) {
var script = document.createElement("script");
script.setAttribute("src", "//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js");
script.addEventListener('load', function() {
var script = document.createElement("script");
script.textContent = "window.jQ=jQuery.noConflict(true);(" + callback.toString() + ")();";
document.body.appendChild(script);
}, false);
document.body.appendChild(script);
}
function backtop() {
$("#back-top").hide();
$(function () {
$(window).scroll(function () {
if ($(this).scrollTop() > 100) { $('#back-top').fadeIn(); }
else { $('#back-top').fadeOut(); }
});
$('#back-top a').click(function () {
$('body,html').animate({ scrollTop: 0 }, 800);
return false;
});
});
}
// Common page
addGlobalStyle('* { word-wrap: break-word !important; }');
addGlobalStyle('body { background: #f2f2f2 url("https://antman.info/images/scripts/cf32background.gif") !important; font-size: 69% !important; }');
addGlobalStyle('body, h1, h2, h3, p, select, input, textarea, pre, #mainMenu .item, #content h1 { font-family: Tahoma, "Bitstream Vera Sans" !important; }');
// Header
addGlobalStyle('#logoAndAd { width: 1000px; height: 129px !important; margin: 0 auto; background: #282526 url("https://antman.info/images/scripts/cf32logo.png") no-repeat 0 0 !important; border-top: 1px solid #444444; border-left: 1px solid #444444; border-right: 1px solid #444444; }');
addGlobalStyle('#headerLogo { top: 55px !important; background: transparent !important; }');
addGlobalStyle('#headerAd { display: none !important; }');
addGlobalStyle('#onlineCounterBox { position: static !important; float: right !important; margin: 10px 10px 0 0 !important; }');
addGlobalStyle('#onlineCounterBox .counter { background: #282526 !important; border: none !important; }');
addGlobalStyle('#onlineCounterBox .counter:hover { background: #282526 !important; }');
addGlobalStyle('#mainMenuAndCp { width: 1000px; margin: 0 auto; box-shadow: none !important; background: #323232 url("https://antman.info/images/scripts/cf32bar-nav.png") !important; border-left: 1px solid #444444; border-right: 1px solid #444444; border-bottom: 1px solid #444444; }');
addGlobalStyle('#mainMenu { width: 720px !important; }');
addGlobalStyle('#mainMenu .item { color: #f2f2f2; font-weight: bold; padding: 0 1em !important; }');
addGlobalStyle('#mainMenu .item.news { padding: 0 1em 0 3.5em !important; }');
addGlobalStyle('#mainMenu .item:hover, #mainMenu .item.active { color: #ff6600 !important; }');
addGlobalStyle('#mainMenuAndCp.fixed { border-left: 1px solid #444444; border-right: 1px solid #444444; border-bottom: 1px solid #444444; margin-left: -1px !important; }');
addGlobalStyle('#cp { width: 280px !important; background: #323232 url("https://antman.info/images/scripts/cf32bar-nav.png") !important; }');
addGlobalStyle('#cp .item { border: 0 !important; }');
addGlobalStyle('#cp .item [class^="icon-"], #cp .item [class*=" icon-"] { color: #999999 !important; }');
addGlobalStyle('#cp a.item.profile, #cp span.label { text-transform: none !important; color: #ffffff !important; }');
addGlobalStyle('#cp a.item.profile:hover, #cp span.label:hover { text-transform: none !important; color: #ff6600 !important; }');
addGlobalStyle('#cp #notifications a, #cp #superglobal-notifications a { color: #ff6600 !important; text-decoration: none !important; }');
addGlobalStyle('#cp #notifications a:hover, #cp #superglobal-notifications a:hover { color: #ffffff !important; text-decoration: none !important; }');
// Main Content
addGlobalStyle('#pageBody .commonPageWidth { width: 1002px !important; box-shadow: none !important; }');
addGlobalStyle('#contentBackground { background: none !important; left: 0 !important; width: 710px !important; margin-right: 10px !important; }');
addGlobalStyle('#contentWrapper { background: #none !important; width: 710px !important; margin-top: 10px !important; }');
addGlobalStyle('#mainPageContent { margin-right: 0 !important; }');
addGlobalStyle('.featuredNews { margin: 0 0 1.5em 0 !important; }');
addGlobalStyle('.featuredNews .item { width: 228px !important; margin-left: 10px !important; border: 1px solid #000000; }');
addGlobalStyle('.featuredNews .item:first-child { margin-left: 0 !important; }');
addGlobalStyle('.featuredNews .item:hover label { border-bottom: 3px solid #ff6600 !important; }');
addGlobalStyle('#rotator { display: none !important; }');
if ($(".contentItem")[0]) { } else { addGlobalStyle('#content { border: 1px solid #000000 !important; background: #f0f0f0; padding: 1px !important; }'); }
addGlobalStyle('.contentItem { border: 1px solid #000000 !important; background: #f0f0f0; padding: 1px !important; }');
addGlobalStyle('.contentItem .imageWrapper { display: none !important; }');
addGlobalStyle('.contentItem .imageWrapper+.body { float: none !important; width: 100% !important; }');
addGlobalStyle('.contentItem .highlight.icon-pushpin { color: #ff6600 !important; line-height: 18px !important; }');
addGlobalStyle('.contentItem .body h2 { background: #000000 url("https://antman.info/images/scripts/cf32bar-topic-top.png"); padding: 2px 4px 0 4px; font-size: 1.25em !important; line-height: 23px; }');
addGlobalStyle('.contentItem .body h2 a, #content h1 a, #pm-detail h1 { color: #ffffff !important; }');
addGlobalStyle('.contentInfo { color: #d8d8d8 !important; background: #000000 url("https://antman.info/images/scripts/cf32bar-topic-bottom.png") !important; padding: 0 4px !important; line-height: 19px; border: 0 !important; }');
addGlobalStyle('.contentInfo a { color: #ffffff !important; text-decoration: none !important; }');
addGlobalStyle('.contentInfo .authorBy { font-style: normal !important; }');
addGlobalStyle('.contentItem .body .text { margin: 5px !important; }');
addGlobalStyle('.contentItem .body .text > .bb-container, #content .content > .bb-container { padding-right: 0 !important; text-align: justify; }');
addGlobalStyle('.contentItem .body .text a, #content .content a { color: #761318 !important; text-decoration: none !important; }');
addGlobalStyle('.contentItem .body .text a:hover, #content .content a:hover { color: #bb0000 !important; }');
addGlobalStyle('.readMore a { color: #761318 !important; font-weight: bold !important; }');
addGlobalStyle('.readMore a:before { padding-left: 5px; }');
addGlobalStyle('.readMore a:hover { color: #bb0000 !important; border: none !important; }');
addGlobalStyle('.tagsWrapper { display: none !important; }');
addGlobalStyle('#content h1 { background: #000000 url("https://antman.info/images/scripts/cf32bar-topic-top.png"); padding: 2px 4px 0 4px; font-size: 1.25em !important; line-height: 23px; font-weight: bold !important; font-style: normal !important; margin: 0 !important; }');
addGlobalStyle('#content h2, #content h3 { border: none !important; }');
addGlobalStyle('#content .content { color: #000000 !important; margin: 1em 5px !important; padding: 0 !important; font-size: 1em !important; }');
addGlobalStyle('#news-list .tabsPanel, #article-list .tabsPanel, #tutorial-list .tabsPanel, #poll-list .tabsPanel, #video-list .tabsPanel { border: 1px solid #000000 !important; background: #f0f0f0; padding: 1px !important; }');
addGlobalStyle('.tabsPanel:before { left: 0 !important; }');
addGlobalStyle('.tabsPanel:after { height: 0 !important; }');
addGlobalStyle('.tabsPanel { background: #f0f0f0 !important; }');
addGlobalStyle('.tabsPanel .tab { text-shadow: none !important; }');
addGlobalStyle('.tabsPanel .tab.active, .tabsPanel .tab:hover { background: #c0c0c0 !important; }');
// Content controls
addGlobalStyle('.controlsWrapper { position: static !important; float: right; }');
addGlobalStyle('.controlsWrapper .panel { background: none !important; border: none !important; box-shadow: none !important; }');
addGlobalStyle('.controlsWrapper .overlay { display: none !important; }');
addGlobalStyle('.adminControls a, .adminControls button { text-shadow: none !important; }');
addGlobalStyle('.adminControls a:hover, .adminControls button:hover { color: #ff6600 !important; }');
// Journals list
addGlobalStyle('table.list thead { background-color: #f0f0f0 !important; }');
addGlobalStyle('table.list thead tr th, .fatPanel .item.th { color: #000000 !important; }');
addGlobalStyle('table.list thead tr th, table.list tbody tr td { border: none !important; }');
addGlobalStyle('table.list tbody tr td a { color: #761318 !important; text-decoration: none !important; }');
addGlobalStyle('table.list tbody tr td a:hover { color: #bb0000 !important; text-decoration: none !important; }');
addGlobalStyle('table.list tbody tr:first-child td, table.list+table.list tbody tr:first-child td { border: none !important; }');
addGlobalStyle('table.list tbody tr, table.list tbody tr:nth-child(2n) { background: #f0f0f0 !important; }');
// Articles
addGlobalStyle('.articleBody .articleSummary { border: none !important; margin: 0 !important; }');
addGlobalStyle('.articleSummary ol { color: #761318 !important; }');
// Forums
addGlobalStyle('#forum-list table.forumList.list { margin-top: 2px; padding-left: 20px; border-bottom: 1px solid #cccccc !important; }');
addGlobalStyle('#forum-detail .tabsPanel { display: none !important; }');
addGlobalStyle('#forum-detail h3 { padding: 10px 0 0 10px !important; }');
addGlobalStyle('#forum-detail .fatPanel.forumListHeader { background: #f2f2f2 !important; border: none !important; margin: 10px 0 0 0 !important; }');
addGlobalStyle('#forum-detail table.forumList.list { margin-top: 1px; }');
// Polls
addGlobalStyle('.progressBar, .progressBar .line { height: 6px !important; }');
addGlobalStyle('.progressBar .line { background: #91220e url("https://antman.info/images/scripts/cf32bar-progress.png") !important; }');
addGlobalStyle('.progressTable .cellValues .percentage { color: #761318 !important; }');
// Albums
addGlobalStyle('.tabsPanel > .opposite { padding-right: 0 !important }');
addGlobalStyle('.opposite .block span { display: none !important; }');
addGlobalStyle('.videoList > .item { width: 343px !important; margin: 5px !important; }');
addGlobalStyle('.videoList > .item .footer > .item.info .authorBy { font-size: 1.2em !important; font-style: normal !important; }');
addGlobalStyle('.videoList > .item .footer > .item.info .author a { font-size: 1.2em !important; color: #761318 !important; text-transform: none !important; }');
addGlobalStyle('.videoList > .item .footer > .item.info .author a:hover { color: #bb0000 !important; }');
addGlobalStyle('.videoList.thumbnails > .item { width: 166px !important; margin: 5px !important; }');
addGlobalStyle('#album-detail h3 { padding: 10px 0 0 10px !important; }');
addGlobalStyle('.contentBox { margin: -2px 0 0 -2px; border: 1px solid #000000 !important; background: #f0f0f0; padding: 1px !important; width: 100% !important; }');
// Videos
addGlobalStyle('.bb-container iframe { width: 100% !important; }');
addGlobalStyle('.media-player { background: #f0f0f0 !important; box-shadow: none !important; padding: 1em 1em 5em 1em !important; }');
addGlobalStyle('#video-detail .overview-container > .sidebar:before { background: #f0f0f0 !important; box-shadow: none !important; }');
// Profiles
addGlobalStyle('#profile-container .tabsPanel, #flag-detail .tabsPanel, #group-list .tabsPanel, #user-account .tabsPanel { background: #f0f0f0; padding: 1px !important; }');
addGlobalStyle('#profile-information .information { padding: 10px 0 0 15px; }');
addGlobalStyle('#profile-information .information a, #profile-activity .information a, .items ol li a, .items .info a, .columnSecondary .body .section ul li a, .flagsList h2 a, #group-list-items .title, .guidelines a { color: #761318 !important; text-decoration: none !important; }');
addGlobalStyle('#profile-information .information a:hover, .items ol li a:hover, .items .info a:hover, .columnSecondary .body .section ul li a:hover, .flagsList h2 a:hover, #group-list-items .title:hover, .guidelines a:hover { color: #bb0000 !important; text-decoration: none !important; }');
addGlobalStyle('#flag-list .tabsPanel { display: none !important; }');
addGlobalStyle('#flag-list .icon-flag { color: #ffffff !important; }');
addGlobalStyle('.username a.user { color: #000000 !important; }');
addGlobalStyle('.section.friends .header, .section.fan-of .header, .section.description .header, .section.members .header { color: #000000 !important; }');
addGlobalStyle('.section.friends .header .altColor, .section.fan-of .header .altColor { color: #ff6600 !important; }');
addGlobalStyle('.section.groupName a { color: #000000 !important; text-transform: none !important; }');
addGlobalStyle('.underline { text-decoration: none !important; }');
addGlobalStyle('.icon-minus-sign { color: #999 !important; }');
// Groups
addGlobalStyle('#group-list-items .item-box { padding: 0 0 10px 10px !important; }');
addGlobalStyle('.groupName a { color: #761318 !important; }');
addGlobalStyle('.groupName a:hover { color: #bb0000 !important; }');
// Online users
addGlobalStyle('#online-users-list .username a { color: #761318 !important; text-decoration: none !important; }');
addGlobalStyle('#online-users-list .username a:hover { color: #bb0000 !important; text-decoration: none !important; }');
addGlobalStyle('#online-guests-list { display: none !important; }');
// Drafts
addGlobalStyle('.content-header-left h2 { background: #000000 url("https://antman.info/images/scripts/cf32bar-content.png") !important; border: 0 !important; line-height: 44px !important; max-height: 44px !important; margin: 0 !important; padding: 0 0 0 4px; }');
addGlobalStyle('.content-header-left h2 a { color: #ffffff !important; text-decoration: none !important; }');
addGlobalStyle('#drafts .content-body, #draft-create { margin: 5px; text-align: justify; }');
addGlobalStyle('.drafts .create a { color: #761318 !important; text-decoration: none !important; }');
addGlobalStyle('.drafts .create a:hover { color: #bb0000 !important; text-decoration: none !important; }');
// Search and Error pages
addGlobalStyle('#searchWrapper, .errorContainer { margin: -2px 0 0 -2px; border: 1px solid #000000 !important; background: #f0f0f0; padding: 1px !important; width: 100% !important; }');
addGlobalStyle('#content .form-body .field, #content .form-body dt, #content .form-body dd { border: none !important; }');
// Terms of Service
addGlobalStyle('#tos h2 { background: #000000 url("https://antman.info/images/scripts/cf32bar-content.png") !important; border: 0 !important; line-height: 44px !important; max-height: 44px !important; margin: 0 !important; padding: 0 0 0 4px; }');
addGlobalStyle('#tos h2 a { color: #ffffff !important; text-decoration: none !important; }');
addGlobalStyle('#tos .content-body { margin: 5px; text-align: justify; }');
// Common fatPanel stuff
addGlobalStyle('.fatPanel > .item, .fatPanel > .item > .body { border: none !important; }');
addGlobalStyle('.fatPanel.forumListHeader:before, .fatPanel.rtl:before, #content .commentsBlock .fatPanel:before { border: 0 !important; }');
addGlobalStyle('.fatPanel.forumListHeader, .fatPanel.rtl { background: #f2f2f2 !important; border-width: 1px !important; border-style: none none solid none !important; margin: 0 !important; }');
addGlobalStyle('.fatPanel.forumListHeader .header, .fatPanel.rtl .header { color: #761318 !important; text-transform: none !important; font-size: 1.3em !important; }');
addGlobalStyle('.fatPanel.forumListHeader .header:hover, .fatPanel.rtl .header:hover { color: #bb0000 !important; }');
addGlobalStyle('.fatPanel.forumThreadsHeader { background: #f2f2f2 !important; border: none !important; margin: 0 0 5px 0 !important; }');
// Comments
addGlobalStyle('#content .commentsBlock { margin-top: 50px !important; }');
addGlobalStyle('#content .commentsBlock .fatPanel { background: #000000 url("https://antman.info/images/scripts/cf32bar-content.png") !important; border: 0 !important; line-height: 44px !important; max-height: 44px !important; }');
addGlobalStyle('#content .commentsBlock .fatPanel .header.dark { color: #ffffff !important; text-transform: none !important; }');
addGlobalStyle('#content .commentsBlock .fatPanel.comments .commentsCount { color: #f0f0f0 !important; text-shadow: none !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .body { padding: 0 10px !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .flagWrapper img { padding-bottom: 5px !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .headerWrapper { border-bottom: 1px solid #000000 !important; height: 17px !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .header .subavatarWrapper { height: 17px !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .header .subavatarWrapper img.avatar, #content .commentsBlock .comment-box .header .subavatarWrapper img.avatar_comments { border: 1px solid #000000 !important; height: 17px !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .header .subavatarWrapper img.avatar.empty { background: #ffffff url("https://antman.info/images/scripts/avatar.png") center !important }');
addGlobalStyle('#content .commentsBlock a { color: #761318 !important; text-decoration: none !important; }');
addGlobalStyle('#content .commentsBlock a:hover { color: #bb0000 !important; text-decoration: none !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .menu .trigger { color: #000000 !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .menu .trigger:after{ border: none !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .menu .trigger:hover { color: #761318 !important; background: none !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .text { margin-top: 2px !important; }');
addGlobalStyle('#content .commentsBlock .comment-box.comment-single-unread .body { border: 1px dotted #761318 !important; background: #ffbdc0 !important; margin: auto 5px !important; padding: 5px !important; }');
addGlobalStyle('#backToTopButton { display: none !important; }');
// Sidebar
addGlobalStyle('#sidebarBackground { background: none !important; left: 0 !important; border: 0 !important; }');
addGlobalStyle('#sidebarWrapper { background: #c0c0c0 !important; width: 280px !important; border: 1px solid #444444; margin-top: 10px !important; }');
addGlobalStyle('#sidebar { padding: 0 !important; }');
addGlobalStyle('#searchBox { padding: 10px !important; }');
addGlobalStyle('#sidebar .item .header { line-height: 22px !important; background: #2a2a2a url("https://antman.info/images/scripts/cf32sidebar.png") !important; margin-left: 0 !important; margin-right: 0 !important; border-top: 1px solid #444444; }');
addGlobalStyle('#sidebar .item .header a { color: #d8d8d8 !important; font-size: 1em !important; }');
addGlobalStyle('#sidebar .item .header a:hover { color: #ffffff !important; }');
addGlobalStyle('#sidebar .item .header .addContent { margin-right: 12px !important; }');
addGlobalStyle('#sidebar .item .content table thead th, #sidebarSwitcher, .sidebarSwitcherContainer, #sidebarVideosAndAlbums, .rtgx_smartbox, .tip { display: none !important; }');
addGlobalStyle('#sidebar .item .content tbody tr td, #sidebar .item .content tbody tr:nth-child(2n+1) td { border: 0 !important; }');
addGlobalStyle('#sidebar .item .content tbody tr:nth-child(2n) { background: transparent !important; }');
addGlobalStyle('#sidebar a { color: #761318 !important; }');
addGlobalStyle('#sidebar a:hover { color: #bb0000 !important; text-decoration: none !important; }');
addGlobalStyle('#sidebar a.button { color: #ffffff !important; }');
addGlobalStyle('#sidebar a.button:hover { color: #ffffff !important; text-decoration: none !important; }');
addGlobalStyle('#sidebar a.button.light { color: #000000 !important; }');
addGlobalStyle('#sidebar a.button.light:hover { color: #000000 !important; text-decoration: none !important; }');
addGlobalStyle('.contentContribute > .button { margin: 0 0 10px 9px !important; }');
addGlobalStyle('.contentContribute > .button.dark { float: none !important; height: 19px !important; line-height: 20px !important; }');
addGlobalStyle('.contentInfo { font-size: 0.9em !important; }');
addGlobalStyle('.contentInfo .authorBy { font-size: 1em !important; }');
addGlobalStyle('.highlight { color: #761318 !important; text-decoration: none !important; border: none !important; }');
addGlobalStyle('.highlight.icon-pushpin { color: #000000 !important; text-decoration: none !important; border: none !important; }');
// Footer
addGlobalStyle('#footer, #copyrightBox { background: transparent !important; }');
addGlobalStyle('#footer { border-top: none !important; }');
addGlobalStyle('#footerMenu .item { color: #000000 !important; text-shadow: none !important; border-bottom: 0 !important; }');
addGlobalStyle('#footerMenu .item:hover, #footerMenu .item:focus { color: #bb0000 !important; background: none !important; }');
addGlobalStyle('#copyrightBox { font-size: 1em !important; color: #000000 !important; text-shadow: 0 !important; text-transform: none !important; font-weight: bold; }');
// Script notice
addGlobalStyle('.notice { margin: 0 auto 5px auto; width: 1000px; padding-left: 20px; font-size: 1em; font-weight: bold; color: #000000; }');
addGlobalStyle('.notice a { color: #761318; text-decoration: none; }');
addGlobalStyle('.notice a:hover { color: #bb0000; text-decoration: none; }');
var scriptby = document.createElement("div");
scriptby.innerHTML = '';
document.body.insertBefore(scriptby, document.body.lastChild);
// Back to Top button
addGlobalStyle('#back-top { position: fixed; bottom: 10px; right: 10px; }');
addGlobalStyle('#back-top a { width: 30px; display: block; -webkit-transition: 1s; -moz-transition: 1s; -ms-transition: 1s; -o-transition: 1s; transition: 1s; }');
addGlobalStyle('#back-top span { width: 30px; height: 30px; display: block; background: #d7d7d7 url("https://antman.info/images/scripts/arrow-up.png") no-repeat center center; -webkit-border-radius: 8px; -moz-border-radius: 8px; -ms-border-radius: 8px; -o-border-radius: 8px; border-radius: 8px; -webkit-transition: 1s; -moz-transition: 1s; -ms-transition: 1s; -o-transition: 1s; transition: 1s; }');
addGlobalStyle('#back-top a:hover span { background-color: #000000; }');
var backtotop = document.createElement("p");
backtotop.innerHTML = '
';
document.body.insertBefore(backtotop, document.body.lastChild);
addJQuery(backtop);
// ==UserScript==
// @name Crossfire 4.0 to 2.0
// @namespace created by antman
// @description Crossfire 4.0 to 2.0 Lookalike Theme
// @include http://crossfire.nu/*
// @include http://www.crossfire.nu/*
// @include https://crossfire.nu/*
// @include https://www.crossfire.nu/*
// @icon https://antman.info/images/scripts/cf32icon.png
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js
// @updateURL https://antman.info/userscripts/crossfire40_cf2.user.js
// @grant unsafeWindow
// @version 1.1.3
// ==/UserScript==
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head').item(0);
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
// Common page
addGlobalStyle('* { word-wrap: break-word !important; }');
addGlobalStyle('body { background: #c8c9c0 !important; font-size: 69% !important; }');
addGlobalStyle('body, h1, h2, h3, p, select, input, textarea, pre, #mainMenu .item, #content h1 { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif !important; }');
// Header
addGlobalStyle('#logoAndAd { width: 1000px; height: 129px !important; margin: 0 auto; background: #c8c9c0 url("https://antman.info/images/scripts/cf2logo.jpg") no-repeat 0 0 !important; }');
addGlobalStyle('#headerLogo { top: 28px !important; background: transparent !important; }');
addGlobalStyle('#headerAd { display: none !important; }');
addGlobalStyle('#onlineCounterBox { position: static !important; float: right !important; margin: 10px 10px 0 0 !important; }');
addGlobalStyle('#onlineCounterBox .counter { background: #231304 !important; border: none !important; }');
addGlobalStyle('#onlineCounterBox .counter:hover { background: #231304 !important; }');
addGlobalStyle('#mainMenuAndCp { width: 998px; margin: 0 auto; box-shadow: none !important; background: #878b7a !important; border-left: 1px solid #787b6c; border-right: 1px solid #787b6c; border-bottom: 1px solid #787b6c; }');
addGlobalStyle('#mainMenu { width: 720px !important; }');
addGlobalStyle('#mainMenu .item { color: #c8c9c0; font-weight: bold; padding: 0 1em !important; }');
addGlobalStyle('#mainMenu .item.news { padding: 0 1em 0 1.5em !important; }');
addGlobalStyle('#mainMenu .item:hover, #mainMenu .item.active { color: #96170A !important; }');
addGlobalStyle('#cp { width: 278px !important; background: #878b7a !important; margin-right: 1px !important; }');
addGlobalStyle('#cp .item { border: 0 !important; }');
addGlobalStyle('#cp .item [class^="icon-"], #cp .item [class*=" icon-"] { color: #999999 !important; }');
addGlobalStyle('#cp a.item.profile, #cp span.label { text-transform: none !important; color: #c8c9c0 !important; }');
addGlobalStyle('#cp a.item.profile:hover, #cp span.label:hover { text-transform: none !important; color: #96170a !important; }');
// Main Content
addGlobalStyle('#pageBody .commonPageWidth { width: 1000px !important; box-shadow: none !important; }');
addGlobalStyle('#contentBackground { background: none !important; left: 0 !important; width: 710px !important; margin-right: 10px !important; }');
addGlobalStyle('#contentWrapper { background: #none !important; width: 710px !important; margin-top: 10px !important; }');
addGlobalStyle('#mainPageContent { margin-right: 0 !important; }');
addGlobalStyle('.featuredNews { margin: 0 0 1.5em 0 !important; }');
addGlobalStyle('.featuredNews .item { width: 228px !important; margin-left: 10px !important; border: 1px solid #787b6c; }');
addGlobalStyle('.featuredNews .item:first-child { margin-left: 0 !important; }');
addGlobalStyle('.featuredNews .item:hover label { border-bottom: 3px solid #96170a !important; }');
addGlobalStyle('#rotator { display: none !important; }');
if ($(".contentItem")[0]) { } else { addGlobalStyle('#content { border: 1px solid #787b6c !important; background: #c8c9c0; }'); }
addGlobalStyle('.contentItem { border: 1px solid #787b6c !important; background: #c8c9c0; }');
addGlobalStyle('.contentItem .imageWrapper { display: none !important; }');
addGlobalStyle('.contentItem .imageWrapper+.body { float: none !important; width: 100% !important; }');
addGlobalStyle('.contentItem .highlight.icon-pushpin { color: #96170a !important; line-height: 18px !important; }');
addGlobalStyle('.contentItem .body h2 { background: #adb0a4; padding: 2px 4px 0 4px; font-size: 1.25em !important; line-height: 23px; }');
addGlobalStyle('.contentItem .body h2 a, #content h1 a, #pm-detail h1 { color: #96170a !important; }');
addGlobalStyle('.contentItem .body h2 a:hover, #content h1 a:hover, #pm-detail h1:hover { color: #000000 !important; }');
addGlobalStyle('.contentInfo { color: #000000 !important; background: #adb0a4 !important; padding: 0 4px !important; line-height: 19px; border: 0 !important; }');
addGlobalStyle('.contentInfo a { color: #000000 !important; text-decoration: underline !important; font-weight: normal !important; }');
addGlobalStyle('.contentInfo .authorBy { font-style: normal !important; }');
addGlobalStyle('.contentItem .body .text { margin: 5px !important; }');
addGlobalStyle('.contentItem .body .text a, #content .content a { color: #96170a !important; text-decoration: none !important; }');
addGlobalStyle('.contentItem .body .text a:hover, #content .content a:hover { color: #000000 !important; }');
addGlobalStyle('.bb-container { color: #000000 !important; padding-right: 0 !important; text-align: justify; }');
addGlobalStyle('.readMore a { color: #96170a !important; font-weight: bold !important; }');
addGlobalStyle('.readMore a:before { padding-left: 5px; }');
addGlobalStyle('.readMore a:hover { color: #000000 !important; border: none !important; }');
addGlobalStyle('.tagsWrapper { display: none !important; }');
addGlobalStyle('#content h1 { background: #adb0a4; padding: 2px 4px 0 4px; font-size: 1.25em !important; line-height: 23px; font-weight: bold !important; font-style: normal !important; margin: 0 !important; }');
addGlobalStyle('#content .content { color: #adb0a4 !important; margin: 1em 5px !important; padding: 0 !important; font-size: 1em !important; }');
addGlobalStyle('#news-list .tabsPanel, #article-list .tabsPanel, #tutorial-list .tabsPanel, #poll-list .tabsPanel, #video-list .tabsPanel { border: 1px solid #787b6c !important; background: #c8c9c0; }');
addGlobalStyle('.tabsPanel:before { left: 0 !important; }');
addGlobalStyle('.tabsPanel:after { height: 0 !important; }');
addGlobalStyle('.tabsPanel { background: #c8c9c0 !important; }');
addGlobalStyle('.tabsPanel .tab { text-shadow: none !important; }');
addGlobalStyle('.tabsPanel .tab.active, .tabsPanel .tab:hover { background: #878b7a !important; box-shadow: none !important; }');
addGlobalStyle('.controlsWrapper { position: static !important; float: right; }');
addGlobalStyle('.controlsWrapper .panel { background: none !important; border: none !important; box-shadow: none !important; }');
addGlobalStyle('.controlsWrapper .overlay { display: none !important; }');
addGlobalStyle('h2, h3 { border: none !important; }');
// Journals list
addGlobalStyle('table.list thead { background-color: #c8c9c0 !important; }');
addGlobalStyle('table.list thead tr th, .fatPanel .item.th { color: #000000 !important; }');
addGlobalStyle('table.list thead tr th, table.list tbody tr td { border: none !important; }');
addGlobalStyle('table.list tbody tr td a { color: #96170a !important; text-decoration: none !important; }');
addGlobalStyle('table.list tbody tr td a:hover { color: #000000 !important; text-decoration: none !important; }');
addGlobalStyle('table.list tbody tr:first-child td, table.list+table.list tbody tr:first-child td { border: none !important; }');
addGlobalStyle('table.list tbody tr, table.list tbody tr:nth-child(2n) { background: #c8c9c0 !important; }');
// Articles
addGlobalStyle('.articleBody .articleSummary { border: none !important; margin: 0 !important; }');
addGlobalStyle('.articleSummary ol { color: #96170a !important; }');
addGlobalStyle('.article-page .bb-container { color: #000000 !important; padding-right: 10px !important; text-align: justify; }');
// Forums
addGlobalStyle('#forum-list table.forumList.list { margin-top: 2px; padding-left: 20px; background: #c8c9c0 !important; border-bottom: 1px solid #787b6c !important; }');
addGlobalStyle('#forum-list .fatPanel.forumListHeader { background: #c8c9c0 !important; border-bottom: 1px solid #787b6c !important; }');
addGlobalStyle('#forum-detail .fatPanel.forumThreadsHeader { background: #c8c9c0 !important; }');
addGlobalStyle('#forum-detail .tabsPanel { display: none !important; }');
addGlobalStyle('#forum-detail h3 { padding: 10px 0 0 10px !important; border: 0 !important; }');
addGlobalStyle('#forum-detail .fatPanel.forumListHeader { background: #c8c9c0 !important; border: none !important; margin: 10px 0 0 0 !important; }');
addGlobalStyle('#forum-detail table.forumList.list { margin-top: 1px; }');
// Polls
addGlobalStyle('.progressBar, .progressBar .line { height: 6px !important; }');
addGlobalStyle('.progressBar .line { background: #96170a !important; }');
addGlobalStyle('.progressTable .cellValues .percentage { color: #96170a !important; }');
addGlobalStyle('#field-vote, #field-option { background: transparent !important; border: 0 !important; }');
// Albums
addGlobalStyle('.tabsPanel > .opposite { padding-right: 0 !important }');
addGlobalStyle('.opposite .block span { display: none !important; }');
addGlobalStyle('.videoList > .item { width: 343px !important; margin: 5px !important; }');
addGlobalStyle('.videoList > .item .footer > .item.info .authorBy { font-size: 1.2em !important; font-style: normal !important; }');
addGlobalStyle('.videoList > .item .footer > .item.info .author a { font-size: 1.2em !important; color: #96170a !important; text-transform: none !important; }');
addGlobalStyle('.videoList > .item .footer > .item.info .author a:hover { color: #000000 !important; }');
addGlobalStyle('.videoList.thumbnails > .item { width: 166px !important; margin: 5px !important; }');
addGlobalStyle('#album-detail h3 { padding: 10px 0 0 10px !important; border: 0 !important; }');
addGlobalStyle('.contentBox { margin: -2px 0 0 -2px; border: 1px solid #000000 !important; background: #c8c9c0; padding: 1px !important; width: 100% !important; }');
// Videos
addGlobalStyle('.bb-container iframe { width: 100% !important; }');
addGlobalStyle('.media-player { background: #c8c9c0 !important; box-shadow: none !important; padding: 1em 1em 5em 1em !important; }');
addGlobalStyle('#video-detail .overview-container > .sidebar:before { background: #c8c9c0 !important; box-shadow: none !important; }');
// Profiles
addGlobalStyle('#profile-container .tabsPanel, #flag-detail .tabsPanel, #group-list .tabsPanel, #user-account .tabsPanel { background: #c8c9c0; padding: 1px !important; }');
addGlobalStyle('#profile-information .information { padding: 10px 0 0 15px; }');
addGlobalStyle('#profile-information .information a, #profile-activity .information a, .items ol li a, .items .info a, .columnSecondary .body .section ul li a, .flagsList h2 a, #group-list-items .title, .guidelines a { color: #96170a !important; text-decoration: none !important; }');
addGlobalStyle('#profile-information .information a:hover, .items ol li a:hover, .items .info a:hover, .columnSecondary .body .section ul li a:hover, .flagsList h2 a:hover, #group-list-items .title:hover, .guidelines a:hover { color: #000000 !important; text-decoration: none !important; }');
addGlobalStyle('#flag-list .tabsPanel { display: none !important; }');
addGlobalStyle('#flag-list .icon-flag { color: #ffffff !important; }');
addGlobalStyle('.username a.user { color: #000000 !important; }');
addGlobalStyle('.section.friends .header, .section.fan-of .header, .section.description .header, .section.members .header { color: #000000 !important; }');
addGlobalStyle('.section.friends .header .altColor, .section.fan-of .header .altColor { color: #ff6600 !important; }');
addGlobalStyle('.section.groupName a { color: #000000 !important; text-transform: none !important; }');
addGlobalStyle('.underline { text-decoration: none !important; }');
addGlobalStyle('.icon-minus-sign { color: #999 !important; }');
// Online users
addGlobalStyle('#online-users-list .username a { color: #96170a !important; text-decoration: none !important; }');
addGlobalStyle('#online-users-list .username a:hover { color: #000000 !important; text-decoration: none !important; }');
addGlobalStyle('#online-guests-list { display: none !important; }');
// Drafts
addGlobalStyle('.content-header-left h2 { background: #adb0a4 !important; border: 0 !important; line-height: 44px !important; max-height: 44px !important; margin: 0 !important; padding: 0 0 0 4px; }');
addGlobalStyle('.content-header-left h2 a { color: #96170a !important; text-decoration: none !important; }');
addGlobalStyle('#drafts .content-body, #draft-create { margin: 5px; text-align: justify; }');
addGlobalStyle('.drafts .create a { color: #96170a !important; text-decoration: none !important; }');
addGlobalStyle('.drafts .create a:hover { color: #000000 !important; text-decoration: none !important; }');
// Search and Error pages
addGlobalStyle('#searchWrapper, .errorContainer { margin: -2px 0 0 -2px; border: 1px solid #787b6c !important; background: #c8c9c0; padding: 1px !important; width: 100% !important; }');
// Common fatPanel stuff
addGlobalStyle('.fatPanel > .item, .fatPanel > .item > .body { border: none !important; }');
addGlobalStyle('.fatPanel.forumListHeader:before, .fatPanel.rtl:before, #content .commentsBlock .fatPanel:before { border: 0 !important; }');
addGlobalStyle('.fatPanel.forumListHeader, .fatPanel.rtl { background: #f2f2f2 !important; border-width: 1px !important; border-style: none none solid none !important; margin: 0 !important; }');
addGlobalStyle('.fatPanel.forumListHeader .header, .fatPanel.rtl .header { color: #96170a !important; text-transform: none !important; font-size: 1.3em !important; }');
addGlobalStyle('.fatPanel.forumListHeader .header:hover, .fatPanel.rtl .header:hover { color: #000000 !important; }');
addGlobalStyle('.fatPanel.forumThreadsHeader { background: #f2f2f2 !important; border: none !important; margin: 0 0 5px 0 !important; }');
// Comments
addGlobalStyle('#content .commentsBlock { margin-top: 50px !important; }');
addGlobalStyle('#content .commentsBlock .fatPanel { background: #adb0a4 !important; border: 0 !important; line-height: 44px !important; max-height: 44px !important; }');
addGlobalStyle('#content .commentsBlock .fatPanel .header.dark { color: #525348 !important; text-transform: none !important; }');
addGlobalStyle('#content .commentsBlock .fatPanel.comments .commentsCount { color: #525348 !important; text-shadow: none !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .body { padding: 0 10px !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .flagWrapper img { padding-bottom: 5px !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .headerWrapper { border-bottom: 1px solid #787b6c !important; height: 17px !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .header .subavatarWrapper { height: 17px !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .header .subavatarWrapper img.avatar, #content .commentsBlock .comment-box .header .subavatarWrapper img.avatar_comments { border: 1px solid #787b6c !important; height: 17px !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .header .subavatarWrapper img.avatar.empty { background: none !important }');
addGlobalStyle('#content .commentsBlock a { color: #96170a !important; text-decoration: none !important; }');
addGlobalStyle('#content .commentsBlock a:hover { color: #000000 !important; text-decoration: none !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .menu .trigger { color: #96170a !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .menu .trigger:after{ border: none !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .menu .trigger:hover { color: #000000 !important; background: none !important; }');
addGlobalStyle('#content .commentsBlock .comment-box .text { margin-top: 2px !important; }');
addGlobalStyle('#content .commentsBlock .comment-box.comment-single-unread .body { border: 1px dotted #96170a !important; background: #adb0a4 !important; margin: auto 5px !important; padding: 5px !important; }');
addGlobalStyle('.form-body .field { background-color: #c8c9c0 !important; border: 0 !important; }');
addGlobalStyle('#backToTopButton { margin-left: 10px !important; }');
// Sidebar
addGlobalStyle('#sidebarBackground { background: none !important; left: 0 !important; border: 0 !important; }');
addGlobalStyle('#sidebarWrapper { background: #adb0a4 !important; width: 280px !important; border: 1px solid #787b6c; margin-top: 10px !important; }');
addGlobalStyle('#sidebar { padding: 0 !important; }');
addGlobalStyle('#searchBox { padding: 10px !important; }');
addGlobalStyle('#sidebar .item .header { line-height: 22px !important; background: #878b7a !important; margin-left: 0 !important; margin-right: 0 !important; border-top: 1px solid #787b6c; border-bottom: 1px solid #787b6c; }');
addGlobalStyle('#sidebar .item .header a { color: #c8c9c0 !important; font-size: 1em !important; text-shadow: none !important; }');
addGlobalStyle('#sidebar .item .header a:hover { color: #525348 !important; }');
addGlobalStyle('#sidebar .item .header .addContent { margin-right: 12px !important; }');
addGlobalStyle('#sidebar .item .content table thead th, #sidebarSwitcher, .sidebarSwitcherContainer, #sidebarVideosAndAlbums, .rtgx_smartbox, .tip { display: none !important; }');
addGlobalStyle('#sidebar .item .content tbody tr td, #sidebar .item .content tbody tr:nth-child(2n+1) td { border: 0 !important; }');
addGlobalStyle('#sidebar .item .content tbody tr:nth-child(2n) { background: transparent !important; }');
addGlobalStyle('#sidebar .item .content tbody .author a { color: #000000 !important; text-decoration: underline !important; }');
addGlobalStyle('#sidebar .item .content tbody .author a:hover { color: #000000 !important; text-decoration: none !important; }');
addGlobalStyle('#sidebar a { color: #96170a !important; }');
addGlobalStyle('#sidebar a:hover { color: #000000 !important; text-decoration: none !important; }');
addGlobalStyle('#sidebar a.button { color: #ffffff !important; }');
addGlobalStyle('#sidebar a.button:hover { color: #ffffff !important; text-decoration: none !important; }');
addGlobalStyle('#sidebar a.button.light { color: #000000 !important; }');
addGlobalStyle('#sidebar a.button.light:hover { color: #000000 !important; text-decoration: none !important; }');
addGlobalStyle('.contentContribute > .button { margin: 0 0 10px 9px !important; }');
addGlobalStyle('.contentContribute > .button.dark { float: none !important; height: 19px !important; line-height: 20px !important; }');
addGlobalStyle('.contentInfo { font-size: 0.9em !important; }');
addGlobalStyle('.contentInfo .authorBy { font-size: 1em !important; }');
addGlobalStyle('.highlight { color: #96170a !important; text-decoration: none !important; border: none !important; }');
addGlobalStyle('.highlight.icon-pushpin { color: #000000 !important; text-decoration: none !important; border: none !important; }');
// Footer
addGlobalStyle('#footer, #copyrightBox { background: transparent !important; }');
addGlobalStyle('#footer { border-top: none !important; }');
addGlobalStyle('#footerMenu .item { color: #000000 !important; text-shadow: none !important; border-bottom: 0 !important; }');
addGlobalStyle('#footerMenu .item:hover, #footerMenu .item:focus { color: #96170a !important; background: none !important; }');
addGlobalStyle('#copyrightBox { font-size: 1em !important; color: #000000 !important; text-shadow: 0 !important; text-transform: none !important; font-weight: bold; }');
// Terms of Service
addGlobalStyle('#tos h2 { background: #adb0a4 !important; border: 0 !important; line-height: 44px !important; max-height: 44px !important; margin: 0 !important; padding: 0 0 0 4px; }');
addGlobalStyle('#tos h2 a { color: #96170a !important; text-decoration: none !important; }');
addGlobalStyle('#tos .content-body { margin: 5px; text-align: justify; }');
// Script notice
addGlobalStyle('.notice { margin: 0 auto 5px auto; width: 1000px; padding-left: 20px; font-size: 1em; font-weight: bold; color: #000000; }');
addGlobalStyle('.notice a { color: #96170a; text-decoration: none; }');
addGlobalStyle('.notice a:hover { color: #000000; text-decoration: none; }');
var scriptby = document.createElement("div");
scriptby.innerHTML = '';
document.body.insertBefore(scriptby, document.body.lastChild);