// ==UserScript==
// @name Senpa.private
// @namespace http://tampermonkey.net/
// @version 0.6
// @description Senpa.io extension
// @author Fuzy
// @match https://senpa.io/web/
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @grant none
// @downloadURL none
// ==/UserScript==
document.title = "Private - fuzy"
var painelRight = document.getElementById("panel right");
var menuX = document.getElementById("menu");
var X = document.getElementById("splash-screen");
menuX.style.height = "0px";
var all = document.getElementsByClassName('main-menu');
for (var i = 0; i < all.length; i++) {
all[i].style.height = '464px';
all[i].style.border = '0px';
all[i].style.boxShadow = '0px 0px 20px #bdbdbdb8';
all[i].style.width = '349px';
all[i].style.backgroundColor = '#eecaf3';
}
var elem1 = document.getElementById("room-stats-hud");
elem1.parentNode.removeChild(elem1);
var clanText = document.createElement("div");
clanText.style.position = "absolute";
clanText.style.top = "0px";
clanText.style.left = "40%";
clanText.style.fontSize = "30px";
clanText.innerText = "";
document.body.appendChild(clanText);
document.getElementById("play").addEventListener("click", myFunction);
function myFunction() {
clanText.style.display = "none";
}
var minimapBox = document.getElementById("minimap");
var minimapText = document.createElement("div");
minimapBox.appendChild(minimapText);
minimapText.style.innerHTML = "
hi
";
minimapText.style.position = "absolute";
minimapText.style.top = "0px";
$(document).ready(function() {
$(this).keydown(function (e) {
if (event.keyCode == 192) {
document.getElementById("play").click();
}
})
})
$(document).ready(function() {
$(this).keydown(function (e) {
if (event.keyCode == 81) {
document.getElementById("spectate").click();
}
})
})
$( "#play" ).click(function() {
$( "#menu" ).hide();
});
$( "#spectate" ).click(function() {
$( "#menu" ).hide();
});
$(document).ready(function() {
$(this).keyup(function (e) {
var menuX = document.getElementById("menu");
if (event.keyCode == 27) {
menuX.style.display="block";
}
})
})
$(document).ready(function() {
$(this).keydown(function (e) {
var menuX = document.getElementById("menu");
if (event.keyCode == 27) {
menuX.style.display="none";
}
})
})
window.onload = function()
{ $("head").append("");
$("head").append("");
$("head").append("");
$("head").append("");
$("head").append("");
$("head").append(" ");
$("head").append(" ");
$("link[href=\"https://senpa.io/web/senpaio.css?a601bf70d0038f71bd6e&a601bf70d0038f71bd6e\"]").attr("href", "http://br3zin.com/css/senpaio.css");
$("head").append("");
$(".logo").remove();
$("#leaderboard-title").replaceWith("");
$(".panel.center").appendTo(".profile-controls");
$("#ad-slot-center-panel").remove();
$("#server-info").remove();
$(".adsPanel").remove();
$("#ad-slot-left-panel").remove();
$(".info-text").remove()
$("#stats-hud").position("");
$(window).load(startTime)
function checkTime(i) {
if (i < 10) {
i = "0" + i;
}
return i;
}
var U = false;
function startTime() {
var today = new Date();
var h = today.getHours();
var m = today.getMinutes();
var s = today.getSeconds();
m = checkTime(m);
s = checkTime(s);
document.getElementById('time').innerHTML = h + ":" + m + ":" + s;
t = setTimeout(function() {
startTime()
}, 1000);
}
startTime();
var Feed = false;
var tin = 25;
function keyup(event) {
if (event.keyCode == 87) {
Feed = false;
}
}
function leader(){
console.log(this.leaderboard);
}
//macrofeed
function macro() {
if (Feed) {
window.onkeydown({keyCode: 81});
window.onkeyup({keyCode: 81});
setTimeout(macro, tin);
}
}
}