wings.io Auto Respawn

Auto respawn on wings.io

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name           wings.io Auto Respawn
// @namespace      https://github.com/AbdurazaaqMohammed
// @version        1.0
// @author         Abdurazaaq Mohammed
// @description    Auto respawn on wings.io
// @match          https://wings.io/
// @icon           https://wings.io/images/favicon.png
// @homepage       https://github.com/AbdurazaaqMohammed/userscripts
// @supportURL     https://github.com/AbdurazaaqMohammed/userscripts/issues
// @license        The Unlicense
// @grant          GM_addStyle
// ==/UserScript==
(function() {
	'use strict';

  const playButton = document.querySelector("#playButton");

  function setup() {
    const myCSS = '#overlay { display: none !important; }';
    if (typeof GM_addStyle === 'function') GM_addStyle(myCSS);
    else if (typeof PRO_addStyle === 'function') PRO_addStyle(myCSS);
    else if (typeof addStyle === 'function') addStyle(myCSS);
    else {
      var node = document.createElement("style"); node.type = "text/css"; node.appendChild(document.createTextNode(myCSS));
      var heads = document.getElementsByTagName("head");
      heads.length > 0 ? heads[0].appendChild(node) ? (document.documentElement) : document.documentElement.appendChild(node) : new MutationObserver(function () { if (document.documentElement) { obs.disconnect(); document.documentElement.appendChild(node); } }).observe(document, {childList: true});
    }
    setInterval(function() {
      clickPlay(document.getElementById('nick').value);
    }, 200)
  }

  playButton.addEventListener("click", setup);
})();