Sleazy Fork is available in English.

Anti Kick Gartic.io

Simple Script Anti Kick For Gartic.io Game

  1. // ==UserScript==
  2. // @name Anti Kick Gartic.io
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.5
  5. // @description Simple Script Anti Kick For Gartic.io Game
  6. // @author haifa0000
  7. // @grant none
  8. // @match https://gartic.io/
  9. // ==/UserScript==
  10. function y(x,y="boş"){
  11. if(x.indexOf(" ")==-1){
  12. if(y=="boş"){
  13. return document.querySelectorAll(x);
  14. }else{
  15. return document.querySelectorAll(x)[y];
  16. }
  17. }else{
  18. return document.getElementsByClassName(x);
  19. }
  20. }
  21. if(window.location.href.indexOf("viewer")==-1){
  22. document.cookie = "otof5=true";
  23. var old,c,readyfor=0,name,kik,i,much,kactane,link;
  24. var root="‌ ‌ ‌";
  25.  
  26. function unsavedChangesWarning(){
  27. window.onbeforeunload = function(){
  28. console.log("ygm");
  29. };
  30. }
  31.  
  32. if(window.location.href.indexOf("https://gartic.io/49z2x8")!==-1 && window.location.href.indexOf("?bot")==-1){
  33. c = setInterval(function(){
  34. if(document.title.indexOf("#") !== -1){
  35. if(y("#popUp")[0].style.display == "block"){
  36. clearInterval(c);
  37. }
  38. y('btYellowBig ic-playHome')[0].click();
  39. }
  40. });
  41.  
  42. setTimeout(function(){
  43. clearInterval(c);
  44. },6000);
  45.  
  46. setInterval(function(){
  47. if(y("contentPopup roomCreated").length > 0 || y("contentPopup rules").length > 0){
  48. y("btYellowBig ic-yes")[0].click();
  49. setTimeout(function(){
  50. if(y("msg alert").length > 0){
  51. y("msg alert")[y("msg alert").length-1].innerText = "‌ ‌ ‌";
  52. readyfor = 1;
  53. }
  54. readyfor = 1;
  55. y("user you")[0].style.backgroundColor = "#ffee00";
  56. if(y(".off").length==0){
  57. y("#sounds")[0].click();
  58. }
  59. },500);
  60. }
  61.  
  62. if(document.body.innerText.indexOf("BEKLE")!==-1){
  63. window.location.href=window.location.href;
  64. }
  65.  
  66. if(y("contentPopup confirm").length > 0){
  67. y("btYellowBig ic-yes")[0].click();
  68. }
  69.  
  70. if(y(".selected").length > 0){
  71. y("btYellowBig ic-playHome")[0].click();
  72. y(".selected")[0].setAttribute("class","");
  73. }
  74.  
  75. if(y("content profile").length > 0){
  76. name = y(".contentPopup")[0].innerText;
  77. if(document.cookie.indexOf(name)==-1){
  78. document.cookie = "a="+name;
  79. y("input",4).value = name;
  80. y(".close")[0].click();
  81. y("input",4).value = "‌ ‌ ‌" + name;
  82. y("input",4).select();
  83. document.execCommand("copy");
  84. y("input",4).value = "";
  85. }else{
  86. if(y("btYellowBig ic-votekick").length > 0){
  87. y("btYellowBig ic-votekick")[0].click();
  88. }else{
  89. y(".close")[0].click();
  90. }
  91. }
  92. }
  93.  
  94. if(y("msg alert").length > 0 && readyfor == 1){
  95. if(document.cookie.indexOf("otof5=true")!==-1 && y("msg alert")[y("msg alert").length-1].innerText.split(" ").indexOf(root) > 0){
  96. y("msg alert")[y("msg alert").length-1].innerText = "‌ ‌ ‌";
  97. old=window.location.href;
  98. y("#exit")[0].click();
  99. setTimeout(function(){
  100. unsavedChangesWarning();
  101. window.location.href=old;
  102. },300);
  103. }
  104. }
  105. },100);
  106. }
  107. }
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.