Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Zeta-alis0001
- // @namespace http://tampermonkey.net/
- // @version 1.0
- // @description provides a tricksplit with F, triplesplit with V And Radio in settings
- // @author Nexus
- // @match http://alis.io/
- // @grant none
- // @run-at document-end
- // ==/UserScript==
- var radioIndex = 0;
- var radios = [
- "http://frshoutcast.comunicazion.eu:8815/;",
- "http://pulseedm.cdnstream1.com:8124/1373_128",
- "http://uk1.internet-radio.com:8118/stream",
- "http://stream2.dancewave.online:8080/dance.mp3",
- "http://176.31.240.87:8000/rp.mp3",
- "http://5.39.71.159:8430/stream",
- "http://89.105.32.27/beat128.mp3?icy=http"
- ];
- $("body").append("<audio id='radio' src='http://stream2.dancewave.online:8080/dance.mp3'></audio>");
- $("#chatroom").css("height", "300px");
- $(document).ready(function () {
- $("#settingscontent").after("<div style='margin-top: 10px; background-color: #212121; z-index: 20;'><h4>Radio</h4><audio src='http://frshoutcast.comunicazion.eu:8815/;' style='width: 90px;' controls=''></audio> <a style='font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;font-size: 16px;'>Or<a> <audio src='http://stream.trap.fm:6004/;stream.mp3' style='width: 90px;' controls=''></audio><a style='font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;font-size: 16px; margin-bottom: 5px;'>Or<a> <audio src='http://www.partyviberadio.com:8016/;stream/2' style='width: 90px; 'controls=''></audio><a style='font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;font-size: 16px; margin-bottom: 5px;'>Or<a> <audio src='http://frshoutcast.comunicazion.eu:8815/;' style='width: 90px; 'controls=''></audio></div> ");
- });
- window.addEventListener('keydown', keydown);
- window.addEventListener('keyup', keyup);
- var Feed = false;
- var Dingus = false;
- var imlost = 25;
- document.getElementById("instructions").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_e'> Press <b>E</b> or <b>4</b> to split 4x</span></span></center>";
- document.getElementById("instructions").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_3'> Press <b>3</b> to split 3x</span></span></center>";
- document.getElementById("instructions").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_d'> Press <b>D</b> or <b>2</b> to split 2x</span></span></center>";
- document.getElementById("instructions").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_q'> Press and hold <b>Q</b> for macro feed</span></span></center>";
- load();
- function load() {
- if (document.getElementById("overlays").style.display!="none") {
- document.getElementById("settings").style.display = "block";
- if (document.getElementById('showMass').checked) {document.getElementById('showMass').click();}
- document.getElementById('showMass').click();
- if (document.getElementById('darkTheme').checked) {document.getElementById('darkTheme').click();}
- document.getElementById('darkTheme').click();
- // I changed the above because now agario 'remembers' your preferences, but doesn't actually work, so if they're already set to be true, you need to undo it, then re click to true
- } else {
- setTimeout(load, 100);
- }
- }
- function keydown(event) {
- switch(event.keyCode) {
- case 16:
- if (document.getElementById("radio").paused) {
- document.getElementById("radio").play();
- } else {
- document.getElementById("radio").pause();
- }
- case 38:
- document.getElementById("radio").volume += 0.1;
- break;
- case 40:
- document.getElementById("radio").volume -= 0.1;
- break;
- case 37:
- if (--radioIndex <= 0) {
- radioIndex = radios.length-1;
- }
- $("#radio").attr("src", radios[radioIndex]);
- document.getElementById("radio").play();
- break;
- case 39:
- if (++radioIndex == radios.length) {
- radioIndex = 0;
- }
- $("#radio").attr("src", radios[radioIndex]);
- document.getElementById("radio").play();
- break;
- }
- if (event.keyCode == 81) {
- Feed = true;
- setTimeout(fukherriteindapussie, imlost);
- } // Tricksplit
- if (event.keyCode == 70 || event.keyCode == 70) { //( ͡° ͜ʖ ͡°)
- ilikedick();
- setTimeout(ilikedick, imlost);
- setTimeout(ilikedick, imlost*2);
- setTimeout(ilikedick, imlost*3);
- } // Triplesplit
- if (event.keyCode == 86 || event.keyCode == 86) {
- ilikedick();
- setTimeout(ilikedick, imlost);
- setTimeout(ilikedick, imlost*2);
- } // Doublesplit
- if (event.keyCode == 68 || event.keyCode == 50) {
- ilikedick();
- setTimeout(ilikedick, imlost);
- } // Split
- if (event.keyCode == 49) {
- ilikedick();
- } // PopSplit
- if (event.keyCode == 82) {
- ilikedick();
- setTimeout(ilikedick, imlost*5.32232210323424323);
- }
- }// When Player Lets Go Of Q, It Stops Feeding
- function keyup(event) {
- if (event.keyCode == 81) {
- Feed = false;
- }
- if (event.keyCode == 79) {
- Dingus = false;
- }
- }
- // Feed Macro With Q
- function fukherriteindapussie() {
- if (Feed) {
- window.onkeydown({keyCode: 87});
- window.onkeyup({keyCode: 87});
- setTimeout(fukherriteindapussie, imlost);
- }
- }
- function ilikedick() {
- $("body").trigger($.Event("keydown", { keyCode: 32}));
- $("body").trigger($.Event("keyup", { keyCode: 32}));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement