ImNotSpam

Untitled

Jun 14th, 2016
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.34 KB | None | 0 0
  1. //This Extension Made By Sika <3
  2. function makeStyle(css) {
  3. var head, style;
  4. head = document.getElementsByTagName('head')[0];
  5. if (!head) { return; }
  6. style = document.createElement('style');
  7. style.type = 'text/css';
  8. style.innerHTML = css;
  9. head.appendChild(style);
  10. }
  11.  
  12. //Presets
  13. settings.background = "white";
  14. spike = "smooth";
  15. spike_mother = "smooth";
  16.  
  17. //Gui
  18. makeStyle('#chat-input { background-color:black; !important;');
  19. document.getElementById("party-panel").style.marginTop = "100px";
  20. document.getElementById("leaderboard-panel").style.borderRadius = "0";
  21. document.getElementById("leaderboard-panel").style.borderWidth = "0px";
  22. document.getElementById("leaderboard-panel").style.boxShadow = "0px 0px 0px black";
  23. document.getElementById("leaderboard-panel").style.opacity = "0.6";
  24. document.getElementById("chat-container").style.borderRadius = "0px";
  25. document.getElementById("chat-container").style.borderWidth = "0px";
  26. document.getElementById("party-panel").style.boxShadow = "0px 0px 0px black";
  27. document.getElementById("chat-input").style.borderRadius = "0px";
  28. document.getElementById("party-panel").style.opacity = "0.6";
  29. document.getElementById("chat-input").style.width = "400px";
  30. document.getElementById("chat-input").style.color = "white";
  31. document.getElementById("minimap-panel").style.borderRadius = "0";
  32. document.getElementById("party-panel").style.borderRadius = "0";
  33. document.getElementById("minimap-panel").style.borderWidth = "0px";
  34. document.getElementById("minimap-panel").style.boxShadow = "0px 0px 0px black";
  35. document.getElementById("party-panel").style.borderWidth = "0px";
  36. document.getElementById("party-panel").style.boxShadow = "0px 0px 0px black";
  37. document.getElementById("chat-panel").style.boxShadow = "0px 0px 0px black";
  38. document.getElementById("minimap-panel").style.opacity = "0.6";
  39. document.getElementById("chat-panel").style.marginBottom = "4px";
  40. document.getElementById("score-panel").style.borderRadius = "0";
  41. document.getElementById("score-panel").style.borderWidth = "0px";
  42. document.getElementById("score-panel").style.boxShadow = "0px 0px 0px black";
  43. document.getElementById("score-panel").style.opacity = "0.6";
  44. document.getElementById("minimap-panel").style.borderWidth = "0px";
  45. document.getElementById("minimap-panel").style.marginBottom = "3px";
  46. document.getElementById("score-panel").style.borderWidth = "0px";
  47. document.getElementById("leaderboard-panel").style.borderWidth = "0px";
  48. document.getElementById("minimap-panel").style.borderWidth = "0px";
  49. document.getElementById("chat-panel").style.borderWidth = "0px";
  50. document.getElementById("chat-input").style.borderWidth = "0px";
  51. document.getElementById("main-content").style.borderWidth = "0px";
  52. document.getElementById("main-content").style.borderRadius = "0";
  53. document.getElementById("main-content").style.boxShadow = "0px 0px 0px black";
  54. document.getElementById("main-side").style.boxShadow = "0px 0px 0px black";
  55. document.getElementById("main-side").style.borderWidth = "0px";
  56. document.getElementById("main-side").style.borderRadius = "0";
  57. document.getElementById("popup-party").style.borderWidth = "0px";
  58. document.getElementById("popup-party").style.borderRadius = "0";
  59. document.getElementById("popup-party").style.opacity = "0.6";
  60. document.getElementById("popup-party").style.boxShadow = "0px 0px 0px black";
  61. document.getElementById("chat-panel").style.opacity = "0.6";
  62. document.getElementById("chat-input").style.opacity = "0.8";
  63. document.getElementById("chat-panel").style.marginBottom = "5px";
  64. document.getElementById("chat-panel").style.marginBottom = "5px";
  65. document.getElementById("mCSB_1_scrollbar_vertical").style.opacity = "0";
  66. document.getElementById("chat-container").style.marginBottom = "5px";
  67. document.getElementById("main-rb").style.borderWidth = "0px";
  68. document.getElementById("main-rb").style.borderRadius = "0";
  69. document.getElementById("main-rb").style.boxShadow = "0px 0px 0px black";
  70.  
  71. //Score Panel
  72. setInterval(function() {
  73. document.getElementById("score-panel").innerText = " Score: " + player.score + " " + "\n Fps: " + fps + " " + "\n Cells: " + player.myCells.length + "/16" + " " + "\n Id: " + player.playerId + " " + "\n \n Rainbow: F2 \n Alpha: F4 \n Zoom: ALT \n Respawn: F6 \n Made By Sika \n \n kod.teamspeak.me " + " ";
  74. }, 100);
  75.  
  76. //Keypress
  77. document.addEventListener('keydown', function(e) {
  78. var key = e.keyCode || e.which;
  79. switch (key) {
  80. case 113:
  81. if (player.rainbow === false) {
  82. player.rainbow = true;
  83. } else {
  84. player.rainbow = false;
  85. }
  86. }
  87. });
  88.  
  89. document.addEventListener('keydown', function(e) {
  90. var key = e.keyCode || e.which;
  91. switch (key) {
  92. case 115:
  93. if (settings.alpha === 1) {
  94. settings.alpha = 0.4;
  95. } else {
  96. settings.alpha = 1;
  97. }
  98. }
  99. });
  100.  
  101. document.addEventListener('keydown', function(e) {
  102. var key = e.keyCod || e.which;
  103. switch (key) {
  104. case 18:
  105. player.mouseZoom = player.mouseZoom - 0.1;
  106. }
  107. });
  108.  
  109. document.addEventListener('keydown', function(e) {
  110. var key = e.keyCod || e.which;
  111. switch (key) {
  112. case 117:
  113. player.connect(player.currentServer);
  114. }
  115. });
Advertisement
Add Comment
Please, Sign In to add comment