CCDarkMode

Change some styles in ChopCoin interface

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name		CCDarkMode
// @namespace	HPrivakosScripts
// @description	Change some styles in ChopCoin interface
// @author		HPrivakos
// @include		http://chopcoin.io/*
// @version		0.3
// @grant		none
// ==/UserScript==

addCSS();
ifDark();

setInterval(function(){ifDark();}, 100);

function addCSS(){
	var sheet = document.createElement('style')
	sheet.innerHTML = "#chopcoinlogonew {animation-name: animationcc;animation-duration: 3s;animation-delay: 1s;} #coindadiframe {animation: ads 2s infinite alternate} @keyframes animationcc {0% {transform: rotate(0deg);} 100% {transform: rotate(360deg);}} @keyframes ads {0%  {transform: rotateY(0);} 100% {transform: rotateY(360);}}";
	document.body.appendChild(sheet);
}

function ifDark(){
	try{
	var wrap = document.getElementById("wrapper");
	if(document.body.className == "dark" || document.body.className == "dark interface_hidden" || document.body.className == "dark loading" ){
		if(document.body.className == "dark" && wrap.className != "dark"){wrap.style.filter = "hue-rotate(100deg) invert(1)";}
		else if(document.body.className == "dark interface_hidden"){wrap.style.filter = "hue-rotate(100deg) invert(1)"; wrap.style.display = "none";}
		else if(document.body.className == "dark loading"){wrap.style.filter = "hue-rotate(100deg) invert(1)";}
		
		wrap.className = "dark";
		//document.getElementById("chatroom").style.filter =  "hue-rotate(100deg) invert(1)";
		//document.getElementById("chatshowhide").style.filter =  "hue-rotate(100deg) invert(1)";
	}
	else {
		wrap.style.filter = "";
		wrap.className = "light";
	}
	}catch(err){console.log(err);}
}