Moomoo.io modded UI

Removes unnecessary cards and ads, and makes changelog text bigger when updated, adds "reset" to server list (Working as of Apr 18)

目前为 2017-04-18 提交的版本。查看 最新版本

// ==UserScript==
// @name         Moomoo.io modded UI
// @version      1.2.1
// @description  Removes unnecessary cards and ads, and makes changelog text bigger when updated, adds "reset" to server list (Working as of Apr 18)
// @author       someRandomGuy
// @match        *://moomoo.io/*
// @namespace https://gf.qytechs.cn/users/117222
// ==/UserScript==
g('setupCard').id='SetupCard';
var day=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"], Mo=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];
var a=new Date(), b=day[a.getDay()]+", "+a.getDate()+" "+Mo[a.getMonth()]+" "+(a.getFullYear()+2)+" 12:00:00 UTC",
	cardsx=[g('adCard'),g("youtuberOf"),g('twitterFollow'),g('linksContainer1'),g('guideCard'),g('setupCard')], card=cardsx.slice();
card.push(g('linksContainer2')); card.push(g('serverSelect'));

function g(e){return document.getElementById(e);}
function remove(e){
	if(e.push===undefined){
		if(e){
			e.parentElement.removeChild(e);
			return true;
		}else{
			return false;
		}
	}else{
		e.forEach(function(ob){
			remove(ob);
			var gg=document.createElement('div');
			gg.id=ob.id;
			gg.style='display:none !important';
			document.body.appendChild(gg);
		});
	}
}
function getCookie(e){
	var c=document.cookie,g;
	c=c.split('; ');
	c.forEach(function(ob){
		var f=ob.split('=');
		if(f[0]==e){
			g=f[1];
			return;
		}
		return;
	}
			 );
	if(g!==undefined){
		return g;
	}else{
		return null;
	}
}
function add(f){
	if(f.push===undefined){
		if(f){
			var hh=document.createElement('div');
			hh.id=f;
			hh.style='display:none !important';
			document.body.appendChild(hh);
			return true;
		}else{
			return false;
		}
	}else{
		f.forEach(function(ob){
			add(ob);
		});
	}
}
document.onreadystatechange=function(){
	g('SetupCard').id='setupCard';
	g('setupCard').appendChild(card[7]);
	card[7].style="margin-top:8px;";
	card[7].innerHTML="<option value=''> Reset </option><option disabled></option>"+card[7].innerHTML;
	card[7].addEventListener('click', function(){
		//location.replace('http://moomoo.io/');
	}, true);
	remove(cardsx);
	add(["youtubeContainer","featuredYoutube"]);
	g('menuCardHolder').style="opacity: 0.9;display: block;";
	card[6].style="opacity: 0.5;display: block;";
	card[6].innerHTML=card[6].innerHTML.substring(0,86);
	if(getCookie("tampermoneySaveChangelog")){
		if(card[6].innerText!=getCookie("tampermoneySaveChangelog")){
			card[6].style="opacity: 1; display: block;";
			card[6].children[0].style="font-size: 50px;";
			card[6].children[0].addEventListener('click',function(){
				document.cookie=('tampermoneySaveChangelog='+card[6].innerText+"; expires="+b+"; path=/");
				card[6].children[0].style="";
				card[6].style="opacity: 0.5;display: block;";
			},false);
		}else{
			document.cookie=('tampermoneySaveChangelog='+card[6].innerText+"; expires="+b+"; path=/");
		}
	}else{
		document.cookie=('tampermoneySaveChangelog='+card[6].innerText+"; expires="+b+"; path=/");
	}

};

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址