CCDarkMode

Change some styles in ChopCoin interface

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==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);}
}