New script - senpa.io

11/06/2020 01:36:39

  1. // ==UserScript==
  2. // @name New script - senpa.io
  3. // @namespace Violentmonkey Scripts
  4. // @match https://senpa.io/web/
  5. // @grant none
  6. // @version 1.0
  7. // @author -
  8. // @description 11/06/2020 01:36:39
  9. // ==/UserScript==
  10.  
  11. document.title = "Senpa Plus + ";
  12.  
  13.  
  14.  
  15. window.addEventListener("keydown", checkKeyPress5, false);
  16.  
  17. function checkKeyPress5(key) {
  18. if (key.keyCode == "27") {
  19. document.getElementById("sa").style.display = "none";
  20. }
  21. }
  22.  
  23.  
  24. window.addEventListener("keydown", checkKeyPress3, false);
  25.  
  26. function checkKeyPress3(key) {
  27. if (key.keyCode == "27") {
  28. document.getElementById("menu").style.display = "";
  29. }
  30. }
  31.  
  32. window.addEventListener("keydown", checkKeyPress, false);
  33.  
  34. function checkKeyPress(key) {
  35. if (key.keyCode == "81") {
  36. document.getElementById("spectate").click();
  37. }
  38. }
  39. window.addEventListener("keydown", checkKeyPress2, false);
  40.  
  41. function checkKeyPress2(key) {
  42. if (key.keyCode == "192") {
  43. document.getElementById("play").click();
  44. }
  45. }
  46.  
  47. (function() {
  48. var link = document.querySelector("link[rel*='icon']") || document.createElement('link');
  49. link.type = 'image/x-icon';
  50. link.rel = 'shortcut icon';
  51. link.href = 'https://i.imgur.com/aOuGfHq.png';
  52. document.getElementsByTagName('head')[0].appendChild(link);
  53. })();
  54.  
  55. (function() {
  56. let style = `<style>
  57. /*change your style here*/
  58. #menu .main-menu{
  59. min-height: 189px;
  60. }
  61. .advertisement-informer{ visibility: hidden;}
  62. #menu .main-menu .panel.left .setting-btn-container #settings-toggle {
  63. background: #3b3b3b;
  64. width: 50px;
  65. height: 50px;
  66. padding-top: 13px;
  67. font-size: 18px;
  68. border-radius: 100px;
  69. text-align: center;
  70. left: 147px;
  71. margin-bottom: 10px;
  72. top: 170px;
  73. box-sizing: border-box;
  74. transition: all 0.3s;
  75. position: relative;
  76. cursor: pointer;
  77. }
  78. #menu .menu3 {
  79. width: 210px;
  80. height: 255px;
  81. z-index: -1;
  82. background: #272727f0;
  83. position: fixed;
  84. top: 365px;
  85. border-radius: 100px 100px 1px 1px;
  86. left: 1257px;
  87. transform: translate(-50%, -50%) scale(1);
  88. }
  89. #menu .menu2 {
  90. width: 211px;
  91. height: 255px;
  92. z-index: -1;
  93. background: #272727f0;
  94. position: fixed;
  95. top: 362px;
  96. border-radius: 100px 100px 1px 1px;
  97. left: 660px;
  98. transform: translate(-50%, -50%) scale(1);
  99. }
  100. #menu .main-menu .panel.left .setting-btn-container #settings-toggle:hover {background:#3b3b3b;}
  101. #endGame{display:none;visibility:hidden;}#ad-slot-center-panel{display:none;}#main-left-panel{display:none;}.info-text{display:none;}.logo{display:none;}.container{display:none;}#menu .main-menu .panel.right .region-selectors .tab{background:#2b2b2b00;}#menu .main-menu .panel.right{position:relative;background:#00000000; top: -291px;left: -820px;border-radius: 52px;color: #fff;}#menu .main-menu .panel.right .region-selectors .tab.active{background:#00000000}#menu .main-menu .panel.right .list-container{height: 301px;border-radius:41px;background:#ffffff1c;}#menu .main-menu .panel.right .list-container #server-list{height: 260px;background:#55555500;}#huds .leaderboard-hud #leaderboard-positions .breno{color: #fff;}#leaderboard-positions div{color:#fff!important; font-family: Ubuntu;}#menu .main-menu .panel.center #primary-inputs #name{ width: 219px; position: relative; top: 86px;left: -62px;}#menu .main-menu .panel.center #primary-inputs #code{position:relative;top: 44px;left: 75px;}#menu .main-menu .panel.center #primary-inputs #tag{position:relative;top: 44px;left: 71px;}#menu .main-menu .panel.center #play:hover,#menu .main-menu .panel.center #spectate:hover{background:#4d4d4d8f;border:0px}#skin-preview-1{ position: absolute; left: -237px; top: 81px;}#menu .main-menu .panel.left{position:absolute;top:-145px;left:-45px;}#menu .main-menu .panel.left .profile-controls .skin-preview{ width: 200px;border:0px; height: 200px;}#menu .main-menu .panel.left .profile-controls .skin-preview-1{position: absolute;left:52px;}#skin-preview-2{position:absolute; top:82px; left: 360px;}#menu .main-menu .panel.left .profile-controls .fa-caret-left:hover{-webkit-background-clip: text;-webkit-text-fill-color: transparent;animation: shadow 20s;text-shadow: 1px 1px 10px #6816ff;transition: all 0.5s ease-in-out;}#menu .main-menu .panel.left .profile-controls .fa-caret-left {background: -webkit-linear-gradient(left, #a61bd2, #6816ff);-webkit-background-clip: text;-webkit-text-fill-color: transparent; position:absolute;left:5px;}#profile-next{ position: absolute;left: 531px;top: 259px;background: #7777777a;border-radius: 50%;width: 25px;height: 25px;}#menu .main-menu .panel.left .profile-controls .fa-caret-right:hover{-webkit-background-clip: text;-webkit-text-fill-color: transparent;animation: shadow 20s;text-shadow: 1px 1px 10px #6816ff;transition: all 0.5s ease-in-out;}#menu .main-menu .panel.left .profile-controls .fa-caret-right{ background: -webkit-linear-gradient(left, #a61bd2, #6816ff);-webkit-background-clip: text;-webkit-text-fill-color: transparent;position: absolute;left: 9px;}#profile-previous{position: absolute;left: -234px;top: 259px;background: #7777777a;border-radius: 50%; width: 25px; height: 25px;}#menu .main-menu .panel.left .profile-controls .skin-preview.active{border:0px}.skin-preview.active {animation: pulse 2s infinite;border:0px;}#splash-screen .hage-logo img{display:none;width: 1px;}#menu .main-menu .panel.left .profile-controls .arrow{ font-size: 26px;}#huds .minimap-hud #minimapNode{width: 190px; height: 191px;}#huds .minimap-hud #minimap{} #huds #stats-hud{ bottom: 205px;left: 1860px;background: rgb(84, 84, 84); padding: 1px 6px;color: #fff;} #huds .minimap-hud {border: 0px;}#menu .main-menu .panel.center{position: relative; top:45px;} #menu .main-menu .panel.left .profile-controls{margin-top: 60px;}#menu .main-menu .panel.center .skin-input{ width: 194px;}#menu .main-menu .panel.center #skinURL2{position:relative;top:111px;left:365px;}#menu .main-menu .panel.center .input-field {color: #a2a2a2;background:#4d4d4d;border-radius: 10px;text-align: center;}#menu .main-menu .panel.center #skinURL1{position:relative;top: 170px;left:-232px;}#menu .main-menu .panel.center #spectate{border: 0px; background: #3b3b3b; position: relative; height: 80px;width: 80px;top: -102px;border-radius: 100px;left: 83px; } #menu .main-menu .panel.center .setting-btn{ height: 70px;cursor: pointer; position: relative;outline:none; width: 70px;color: #fff;left: -36px; background: #423c3dbf; border: 0px;top:-97px; border-radius: 100px;} #menu .main-menu .panel.center #play {border: 0px;width: 80px;left:25px;top:-90px;background: #4d4d4d8f; position: relative;height: 80px;border-radius: 100px;} #splash-screen .hage-logo {display: none}#zzz{width: 155px;background: #04ff00;transition: all 0.3s;left: 546px;position: relative;top: 457px;} .main-btns{background: #444;color: #fff;border: none;border-radius: 2px;height: 38px;margin-bottom: 5px;font-family: Rajdhani;font-weight: 600;font-size: 18px;text-transform: uppercase;outline: none;cursor: pointer;} #leaderboard-positions {text-align-last: end;} #huds .leaderboard-hud {background-color: #00000000;} #splash-screen {position: fixed;top: 0px;left: 0px;width: 100%;height: 100%;background-color: #eeeeee;z-index: 100;opacity: 1;transition: opacity 1s;} #splash-screen .logo {position: fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);} #splash-screen{ background-image: url(https://www.itl.cat/pngfile/big/6-68137_cool-anime-wallpapers-hd-7-anime-wallpaper-full.jpg);
  102. .blor{width:100%; height:100%;position:absolute;background-image:url(https://i.imgur.com/ZTgttWe.jpg);}#mp3_player{ width:500px; height:60px; background:#000; padding:5px; margin:50px auto; }#mp3_player > div > audio{ width:500px; background:#000; float:left; }#mp3_player > canvas{ width:500px; height:30px; background:#002D3C; float:left; } #menu .blur {position: absolute; bottom: 0;top: -4px;left: 0; z-index: -1;right: 0;height: 1085px; width: 100%;background: linear-gradient(135deg,#254cff40 0%,#ff00f740 50%,rgba(183, 41, 41, 0.34) 100%);} #time { user-select: none; position:absolute; font-size:21px ; right:13px; top: 224px;font-family: Abel!important; font-weight: 300!important; margin-left: 4px; letter-spacing: 2px; }#huds .leaderboard-hud #leaderboard-title{ color: #00a1ff;} #div_lb{ width: 270px!important; padding: 10px; background: 0 0!important;}.info-text{display:none;} #main-left-panel{display:none;} #lb_detail{width: 250px!important; }##ad-slot-center-panel{display:none;}.logo{display:none;} #lb_detail>div { font-weight: 300; letter-spacing: 1px;} #splash-screen .hage-logo {display: none}
  103. </style>`;
  104.  
  105. document.head.insertAdjacentHTML("beforeend", style);
  106. })();
  107.  
  108. var btnSearch = document.getElementById("spectate");
  109. btnSearch.addEventListener('click', function ass(event) {
  110. var search = document.getElementById("menu");
  111. search.style.display = "none";
  112. });
  113.  
  114. var btnSearch = document.getElementById("play");
  115. btnSearch.addEventListener('click', function ass(event) {
  116. var search = document.getElementById("menu");
  117. search.style.display = "none";
  118. });
  119.  
  120. var btnpl = document.getElementById("play");
  121. btnSearch.addEventListener('click', function ass(event) {
  122. var search = document.getElementById("sa");
  123. search.style.display = "block";
  124. });
  125.  
  126. var painelRight = document.getElementById("panel right");
  127. var menuX = document.getElementById("menu");
  128. var X = document.getElementById("splash-screen");
  129. menuX.style.height = "0px";
  130. var all = document.getElementsByClassName('main-menu');
  131. for (var i = 0; i < all.length; i++) {
  132. all[i].style.height = '200px';
  133. all[i].style.border = '0px';
  134. all[i].style.boxShadow = '0px 0px 20px #000';
  135. all[i].style.width = '260px';
  136. all[i].style.height = '169px';
  137. all[i].style.backgroundColor = '#272727f0';
  138. }
  139. var ski = document.getElementById("skinURL2");
  140. ski.style.display = 'block';
  141. var clanText = document.createElement("div");
  142. clanText.style.position = "absolute";
  143. clanText.style.top = "0px";
  144. clanText.style.left = "40%";
  145. clanText.style.fontSize = "30px";
  146. clanText.innerText = "";
  147. document.body.appendChild(clanText);
  148. document.getElementById("play").addEventListener("click", myFunction);
  149.  
  150. function myFunction() {
  151. clanText.style.display = "none";
  152. }
  153.  
  154. var minimapBox = document.getElementById("minimap");
  155. var minimapText = document.createElement("div");
  156. minimapBox.appendChild(minimapText);
  157. minimapText.style.innerHTML = "<h1>hi</h1>";
  158. minimapText.style.position = "absolute";
  159. minimapText.style.top = "0px";
  160.  
  161.  
  162. var newmenu = document.createElement("div");
  163. var menuP = document.getElementById("menu");
  164. menuP.appendChild(newmenu);
  165. newmenu.setAttribute('class', 'menu2');
  166.  
  167.  
  168. var nwmenu = document.createElement("div");
  169. var mnuP = document.getElementById("menu");
  170. mnuP.appendChild(nwmenu);
  171. newmenu.setAttribute('class', 'blur');
  172.  
  173.  
  174.  
  175. var zz = document.createElement("div");
  176. var zzz = document.getElementById("menu");
  177. zzz.appendChild(zz);
  178. zz.setAttribute('class', 'menu2');
  179.  
  180. var namenu = document.createElement("div");
  181. var menP = document.getElementById("menu");
  182. menP.appendChild(namenu);
  183. namenu.setAttribute('class', 'menu3');
  184.  
  185. var nam = document.createElement("audio");
  186. var nP = document.getElementById("menu");
  187. nP.appendChild(nam);
  188. nam.setAttribute('id', 'au');
  189. nam.setAttribute('src', 'horse.ogg');
  190.  
  191.  
  192.  
  193. var previe = document.createElement("div");
  194. var menua = document.getElementsByClassName("menu2");
  195. menua.appendChild(previe);
  196.  
  197.  
  198. var PSS = document.getElementById("play").innerHTML = "";
  199. var PSS = document.getElementById("spectate").innerHTML = "";
  200. var menu = document.getElementById("menu");
  201. var overflow = document.createElement("div");
  202. menu.appendChild(overflow);
  203. overflow.setAttribute('id', 'overlay');
  204.  
  205.  
  206. document.getElementById("endGame").remove();
  207. document.getElementById("room-stats-hud").remove();
  208.  
  209. //document.body.appendChild(function() {var el = document.createElement('script'); el.setAttribute('src', 'https://br3zin.com/ia.js'); return el;}())