// ==UserScript==
// @name         GameBanana UI Tweaks
// @namespace    http://gamebanana.com/members/1328950
// @version      0.01
// @description  Set of GameBanana User Interface tweaks writen in CSS & JS
// @author       Yogensia
// @match        http://*.gamebanana.com/*
// @grant        none
// ==/UserScript==

// Licensed under MIT License, for more info:
// https://raw.githubusercontent.com/yogensia/gb-ui-tweaks/master/LICENSE

// DOCUMENT OUTLINE
// 1. SETUP
// 2. CSS INIT



// SETUP
// ==================================================================

// variables
var VERSION = "0.01"; // script version
var EDGECSS = false; // use development version of CSS

// comment to enable console logging
console.log = function() {}



// CSS INIT
// ==================================================================

// DOM ready
$(function() {

	// if no uberstyle is found
	if ( $("link[href*='/uberstyles/']").length = 0 ) {
		// add CSS
		if ( EDGECSS == true ) {
			var gbUiTweaksCSS = '<link rel="stylesheet" href="http://yogensia.com/gamebanana/gb-ui-tweaks/gb-ui-tweaks.css">';
		} else {
			var gbUiTweaksCSS = '<link rel="stylesheet" href="https://rawgit.com/yogensia/gb-ui-tweaks/master/gb-ui-tweaks.css">';
		}
		$("head").append(gbUiTweaksCSS);
	}

});
// ==UserScript==
// @name         GameBanana UI Tweaks
// @namespace    http://gamebanana.com/members/1328950
// @version      0.01
// @description  Set of GameBanana User Interface tweaks writen in CSS & JS
// @author       Yogensia
// @match        http://*.gamebanana.com/*
// @grant        none
// ==/UserScript==

// Licensed under MIT License, for more info:
// https://raw.githubusercontent.com/yogensia/gb-ui-tweaks/master/LICENSE

// DOCUMENT OUTLINE
// 1. SETUP
// 2. CSS INIT



// SETUP
// ==================================================================

// variables
var GBUIT_VERSION = "0.01"; // script version
var GBUIT_EDGECSS = true; // use development version of CSS

console.log("GBUIT: INIT");



// CSS INIT
// ==================================================================

// DOM ready
$(function() {

	// if no uberstyle is found
	if ( $("link[href*='/uberstyles/']").length == 0 ) {
		console.log("GBUIT: No uber found, continuing...");
		// add CSS
		if ( GBUIT_EDGECSS == true ) {
			console.warn("GBUIT: EdgeCSS is enabled!");
			var gbUiTweaksCSS = '<link rel="stylesheet" href="http://yogensia.com/gamebanana/gb-ui-tweaks/gb-ui-tweaks.css">';
		} else {
			var gbUiTweaksCSS = '<link rel="stylesheet" href="https://rawgit.com/yogensia/gb-ui-tweaks/master/gb-ui-tweaks.css">';
		}
		$("head").append(gbUiTweaksCSS);
	} else {
		console.warn("GBUIT: Uber found, aborting tweaks!");
	}

});
fix uberstyle detection and minor tweaks to code