Anitube Scripts

Adiciona o Tema red e melhoria para o player

2016-07-29 या दिनांकाला. सर्वात नवीन आवृत्ती पाहा.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         Anitube Scripts
// @namespace    Scripts
// @version      1.0 -- 29/08/2016
// @description  Adiciona o Tema red e melhoria para o player
// @author       Fukoji
// @match        http://www.anitube.info/
// @match        http://www.anitube.info/*
// @match        https://www.anitube.info/*
// @grant        none
// ==/UserScript==
var jQueryIT = document.createElement('script');
jQueryIT.src = 'http://code.jquery.com/jquery-latest.min.js';
document.getElementsByTagName('head')[0].appendChild(jQueryIT);

function scripts(){
    
setInterval(function(){
    $('object[title="Adobe Flash Player"]').hide();
    $('div[role="navigation"]').show();
    //Nota: o site quebra muito fácil cuidado ao mexer aqui, algumas modificações para arrumar.
//    $('.container').show();
//    $('.col-md-8').css({"margin-top":"5px"});
 //   $('.well').css("margin-top","495px");
    $('.player1nn-dimensions, div[tabindex="9999"], .player2nn-dimensions, object[name="flow_api"], object[name="flip_api"]').css({"width":"1106px"});
     
}, 1000);
//recolocar propaganda    
var videoarea = window.location;
var videovv = /www\.anitube\.info\/video/g;
var testvideo = videovv.test(videoarea);

if (testvideo === true) {
	$('.col-md-4').css("margin-top","495px");
}  
//RED THEME ALPHA
    
//Initial Check
$('body').ready(function(){
	if (localStorage.getItem('redx') == 'ativado') {
				$('.navbar-inverse').css("background","#6f0110");
		//menu
		$('.navbar-inverse .navbar-nav>li>a').hover(function(){
			$(this).css('background','#9a0116');
		}, function(){$(this).css('background','#6f0110')});
    //Logo
		$('img[alt="AniTube! Animes Online"]').attr('src', "http://i.imgur.com/hCyULas.png");
		//player select
		$('a[data-toggle="tab"]').on('focus', function(){
			$(this).css('background','#9a0116');
		});

		//player interface
		$('.video-js .vjs-control').css("background","#8a0020");

		//view cont & dwn button
		$('.badge').css("background-color","#6f0110");
		$('.btn-down2').css({"background-color":"#9a0116","border":"none","color":"#fff"});

		//Videos relacionados
		$('li.active>a').on('focus', function(){
			$(this).css('background-color','#8a0020')
		});

		//like button
		$('.btn-primary').css('background-color','#2ea25a');

		//hd icon
		$('.hd-text-icon').css({"background-color":"#8a0020","color":"#fff"});

	}
});
    
//active this
$('.navbar-inverse .navbar-nav>li:nth-child(8)').after('<a href="#" name="theme" id="theme">Red</a>');
$('a[name="theme"]').css({"paddint-top":"15px","text-transform":"uppercase","font-family":"Open sans","font-size":"14px","padding":"0 15px","line-height":"40px","color":"#fff","text-decoration":"none"});

//red active theme ALPHA
$('a[name="theme"]').click(function(e){
e.preventDefault();	
	if(localStorage.getItem('redx') == 'desativado') {
		$('.navbar-inverse').css("background","#6f0110");
		//menu
		$('.navbar-inverse .navbar-nav>li>a').hover(function(){
			$(this).css('background','#9a0116');
		}, function(){$(this).css('background','#6f0110')});
    //Logo
		$('img[alt="AniTube! Animes Online"]').attr('src', "http://i.imgur.com/hCyULas.png");
		//player select
		$('a[data-toggle="tab"]').on('focus', function(){
			$(this).css('background','#9a0116');
		});

		//player interface
		$('.video-js .vjs-control').css("background","#8a0020");

		//view cont & dwn button
		$('.badge').css("background-color","#6f0110");
		$('.btn-down2').css({"background-color":"#9a0116","border":"none","color":"#fff"});

		//Videos relacionados
		$('li.active>a').on('focus', function(){
			$(this).css('background-color','#8a0020')
		});

		//like button
		$('.btn-primary').css('background-color','#2ea25a');

		//hd icon
		$('.hd-text-icon').css({"background-color":"#8a0020","color":"#fff"});

		localStorage.setItem('redx','ativado');
		alert('Tema Ativado!');

	} else if (localStorage.getItem('redx') == 'ativado') {
		//desative
		//cabeçalho
		$('.navbar-inverse').css("background","");
		//menu
		$('.navbar-inverse .navbar-nav>li>a').hover(function(){
			$(this).css('background','');
		}, function(){$(this).css('background','')});
    //Logo
		$('img[alt="AniTube! Animes Online"]').attr('src', "/templates/frontend/bright-blue/img/logo.png");
		//player select
		$('a[data-toggle="tab"]').on('focus', function(){
			$(this).css('background','');
		});

		//player interface
		$('.video-js .vjs-control').css("background","");

		//view cont & dwn button
		$('.badge').css("background-color","");
		$('.btn-down2').css({"background-color":"","border":"","color":""});

		//Videos relacionados
		$('li.active>a').on('focus', function(){
			$(this).css('background-color','')
		});

		//like button
		$('.btn-primary').css('background-color','');

		//hd icon
		$('.hd-text-icon').css({"background-color":"","color":""});

		localStorage.setItem('redx','desativado');
		alert('Tema desativado!');


	} else {
		localStorage.setItem('redx','desativado');
		alert('Tema Salvo!');

	};

});

   
    
}; scripts();