Anti Kick Gartic.io

Simple Script Anti Kick For Gartic.io Game

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         Anti Kick Gartic.io
// @namespace    http://tampermonkey.net/
// @version      0.5
// @description  Simple Script Anti Kick For Gartic.io Game
// @author       haifa0000
// @grant        none
// @match        https://gartic.io/
// ==/UserScript==
function y(x,y="boş"){
	if(x.indexOf(" ")==-1){
    	if(y=="boş"){
        	return document.querySelectorAll(x);
        }else{
        	return document.querySelectorAll(x)[y];
        }
    }else{
    	return document.getElementsByClassName(x);
    }
}
if(window.location.href.indexOf("viewer")==-1){
    document.cookie = "otof5=true";
    var old,c,readyfor=0,name,kik,i,much,kactane,link;
    var root="‌ ‌ ‌";

    function unsavedChangesWarning(){
        window.onbeforeunload = function(){
            console.log("ygm");
        };
    }

    if(window.location.href.indexOf("https://gartic.io/49z2x8")!==-1 && window.location.href.indexOf("?bot")==-1){
        c = setInterval(function(){
            if(document.title.indexOf("#") !== -1){
                if(y("#popUp")[0].style.display == "block"){
                    clearInterval(c);
                }
                y('btYellowBig ic-playHome')[0].click();
            }
        });

        setTimeout(function(){
            clearInterval(c);
        },6000);

        setInterval(function(){
            if(y("contentPopup roomCreated").length > 0 || y("contentPopup rules").length > 0){
                y("btYellowBig ic-yes")[0].click();
                setTimeout(function(){
                    if(y("msg alert").length > 0){
                        y("msg alert")[y("msg alert").length-1].innerText = "‌ ‌ ‌";
                        readyfor = 1;
                    }
                    readyfor = 1;
                    y("user you")[0].style.backgroundColor = "#ffee00";
                    if(y(".off").length==0){
                        y("#sounds")[0].click();
                    }
                },500);
            }

            if(document.body.innerText.indexOf("BEKLE")!==-1){
                window.location.href=window.location.href;
            }

            if(y("contentPopup confirm").length > 0){
                y("btYellowBig ic-yes")[0].click();
            }

            if(y(".selected").length > 0){
                y("btYellowBig ic-playHome")[0].click();
                y(".selected")[0].setAttribute("class","");
            }

            if(y("content profile").length > 0){
                name = y(".contentPopup")[0].innerText;
                if(document.cookie.indexOf(name)==-1){
                    document.cookie = "a="+name;
                    y("input",4).value = name;
                    y(".close")[0].click();
                    y("input",4).value = "‌ ‌ ‌" + name;
                    y("input",4).select();
                    document.execCommand("copy");
                    y("input",4).value = "";
                }else{
                    if(y("btYellowBig ic-votekick").length > 0){
                        y("btYellowBig ic-votekick")[0].click();
                    }else{
                        y(".close")[0].click();
                    }
                }
            }

            if(y("msg alert").length > 0 && readyfor == 1){
                if(document.cookie.indexOf("otof5=true")!==-1 && y("msg alert")[y("msg alert").length-1].innerText.split(" ").indexOf(root) > 0){
                    y("msg alert")[y("msg alert").length-1].innerText = "‌ ‌ ‌";
                    old=window.location.href;
                    y("#exit")[0].click();
                    setTimeout(function(){
                        unsavedChangesWarning();
                        window.location.href=old;
                    },300);
                }
            }
        },100);
    }
}