// ==UserScript==
// @name SS
// @namespace http://tampermonkey.net/
// @version 0.1
// @description SS clan extension(shit)
// @author Hunter. Only Hunter
// @match *://agarlist.com/*
// @match *://alis.io/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
// @run-at document-start
// @grant none
// @downloadURL none
// ==/UserScript==
$(function(r) {
var music = new Audio("http://158.69.227.214:8041/;");
var background_main ="#222";
function init() {
$("form>.card-nav-tabs>.content").append('
');
$("#audio-player-stop").hide();
$("#audio-player-play").click(function() {
$(this).hide();
$("#audio-player-stop").show();
music.play();
});
$("#audio-player-stop").click(function() {
$(this).hide();
$("#audio-player-play").show();
music.pause();
});
$("#volume").change(function() {
music.volume = parseFloat(this.value / 100);
});
$("a[href=#theming]").click(function() {
$("#extension-div, .btn-spectate, .btn-respawn, .btn-play").hide();
});
$("a[href=#settings]").click(function() {
$("#extension-div, .btn-spectate, .btn-respawn, .btn-play").hide();
});
$("a[href=#home]").click(function() {
setTimeout(function() {
$("#extension-div, .btn-spectate, .btn-respawn, .btn-play").delay(150).fadeIn(250);
}, 0);
});
}
var date = new Date();
$("#lb_detail").after(''+ date.toLocaleString() +'
');
r("head").append("");
r("body").append('');
document.body.oncontextmenu = function(e) {
return true;
};
document.getElementById("nick").maxLength = "15";
document.getElementById("team_name").placeholder = "Team";
document.getElementById("nick").placeholder = "Nickname";
document.getElementById("skinurl").placeholder = "Skin (imgur)";
r(".btn-play").html("Play");
r(".btn-spectate").html("Spectate");
r(".btn-respawn").html("Respawn");
r("#nick,#team_name,#skinurl").parent().attr("class", "form-controles");
r(".skin").parent().attr("class", "col-sm-12");
r("#team_container").parent().attr("class", "col-sm-12");
r("#nickname_container>.control-label").css("padding-left", "5px");
init();
setInterval(function() {
$('img[src="/assets/img/adblocker.png"]').remove();
$("#ad_bottom").remove();
$("#footer").remove();
$(".content>.text-center>.tab-pane>div#ad_main").remove();
}, 400);
});
//font-family: "Exo 2", sans-serif!important;
window.addEventListener('keydown', keydown);
window.addEventListener('keyup', keyup);
var EjectDown = false;
var speed = 1; //in ms
function keydown(event) {
if (event.keyCode == 87 && EjectDown === false) { // key W
EjectDown = true;
setTimeout(eject, speed);
}
}
function keyup(event) {
if (event.keyCode == 87) { // key W
EjectDown = false;
}
if (event.keyCode == 81) {
player.mouseRawX = canvas.width;
player.mouseRawY = canvas.height;
}
}
function eject() {
if (EjectDown) {
window.onkeydown({keyCode: 87}); // key W
window.onkeyup({keyCode: 87});
setTimeout(eject, speed);
}
}