nwolf / Trakt+

// ==UserScript==
// @name		Trakt+
// @namespace	http://trakt.com
// @description	Get the new Trakt calendar back to its old style! Select 'monthly/grid/logo' on your user settings before installing.
// @include		http://trakt.tv/calendars/*
// @include		https://trakt.tv/calendars/*
// @updateURL	https://openuserjs.org/install/nwolf/Trakt+.user.js
// @downloadURL	https://openuserjs.org/install/nwolf/Trakt+.user.js
// @version		0.0.2
// @grant		none
// @require		https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js
// ==/UserScript==

this.$ = this.jQuery = jQuery.noConflict(true);
setTimeout(start, 1000);

function start() {
	console.log('Running Trakt+');
	hideStuff();
	removeSidenav();
	moveDateNav();
	fixBorders();
}

function hideStuff() {
	//$('div[class*="fade"]').parent('div.posters').hide(); //faded stuff (watched, etc)
	$('div.no-episodes').hide(); //no episodes warning
	$('div.huckster').hide(); //ads
	$('form#header-search').hide(); //search
	$('div.titles>h4').hide(); //series name/time
}

function removeSidenav(){
	$('div.sidenav').hide();
	$('div.frame.grid').css({'margin-left':'0px'});
}

function moveDateNav() {
	var dateNav = $('div#date-nav').detach();
	dateNav.addClass('navbar-left');
	$('header#top-nav').prepend(dateNav);
}

function fixBorders() {
	$('div.flex-item').css({'border-left': '0px'});
	$('div.posters').css({'border-bottom': '0px'});
	$('div.quick-icons').attr('style', 'border-bottom: 0px !important');
}